SMIL  0.8
 All Classes Functions Variables Groups Pages
Watershed
+ Collaboration diagram for Watershed:

Functions

template<class T , class labelT >
RES_T basins (const Image< T > &imIn, const Image< labelT > &imMarkers, Image< labelT > &imBasinsOut, const StrElt &se=DEFAULT_SE)
 Constrained basins. More...
 
template<class T1 , class T2 >
RES_T inflBasins (const Image< T1 > &imIn, Image< T2 > &basinsOut, const StrElt &se=DEFAULT_SE)
 Influences basins. More...
 
template<class T >
RES_T inflZones (const Image< T > &imIn, Image< T > &imOut, const StrElt &se=DEFAULT_SE)
 Influences zones. More...
 
template<class T >
RES_T lblSkiz (Image< T > &labelIm1, Image< T > &labelIm2, const Image< T > &maskIm, const StrElt &se=DEFAULT_SE)
 Skiz on label image. More...
 
template<class T >
RES_T waterfall (const Image< T > &gradIn, const Image< T > &wsIn, Image< T > &imGradOut, Image< T > &imWsOut, const StrElt &se=DEFAULT_SE)
 Waterfall. More...
 
template<class T >
RES_T waterfall (const Image< T > &gradIn, UINT nLevel, Image< T > &imWsOut, const StrElt &se=DEFAULT_SE)
 Waterfall. More...
 
template<class T , class labelT >
RES_T watershed (const Image< T > &imIn, const Image< labelT > &imMarkers, Image< T > &imOut, Image< labelT > &imBasinsOut, const StrElt &se=DEFAULT_SE)
 Constrained watershed. More...
 

Detailed Description

Function Documentation

RES_T smil::basins ( const Image< T > &  imIn,
const Image< labelT > &  imMarkers,
Image< labelT > &  imBasinsOut,
const StrElt &  se = DEFAULT_SE 
)

Constrained basins.

Hierachical queue based algorithm as described by S. Beucher (2011) [1]

Parameters
[in]imInInput image.
[in]imMarkersLabel image containing the markers.
[out]imBasinsOut(optional) Output image containing the basins. After processing, this image will contain the basins with the same label values as the initial markers.
Examples:
constrained_watershed.py
RES_T smil::inflBasins ( const Image< T1 > &  imIn,
Image< T2 > &  basinsOut,
const StrElt &  se = DEFAULT_SE 
)

Influences basins.

Performs the influence basins using the lblSkiz function. Input image is supposed to be binary.

RES_T smil::inflZones ( const Image< T > &  imIn,
Image< T > &  imOut,
const StrElt &  se = DEFAULT_SE 
)

Influences zones.

Performs the influence zones using the lblSkiz function. Input image is supposed to be binary.

RES_T smil::lblSkiz ( Image< T > &  labelIm1,
Image< T > &  labelIm2,
const Image< T > &  maskIm,
const StrElt &  se = DEFAULT_SE 
)

Skiz on label image.

Performs the influence zones on a label image as described by S. Beucher (2011) [2] If a maskIm is provided, the skiz is geodesic.

RES_T smil::waterfall ( const Image< T > &  gradIn,
const Image< T > &  wsIn,
Image< T > &  imGradOut,
Image< T > &  imWsOut,
const StrElt &  se = DEFAULT_SE 
)

Waterfall.

RES_T smil::waterfall ( const Image< T > &  gradIn,
UINT  nLevel,
Image< T > &  imWsOut,
const StrElt &  se = DEFAULT_SE 
)

Waterfall.

RES_T smil::watershed ( const Image< T > &  imIn,
const Image< labelT > &  imMarkers,
Image< T > &  imOut,
Image< labelT > &  imBasinsOut,
const StrElt &  se = DEFAULT_SE 
)

Constrained watershed.

Hierachical queue based algorithm as described by S. Beucher (2011) [1]

Parameters
[in]imInInput image.
[in]imMarkersLabel image containing the markers.
[out]imOutOutput image containing the watershed lines.
[out]imBasinsOut(optional) Output image containing the basins. After processing, this image will contain the basins with the same label values as the initial markers.
Examples:
constrained_watershed.py