SMIL  0.9
Watershed Extinction
+ Collaboration diagram for Watershed Extinction:

Classes

class  AreaExtinctionFlooding< T, labelT, extValType, HQ_Type >
 
struct  CrossVectorComp< T >
 
class  DynamicExtinctionFlooding< T, labelT, extValType, HQ_Type >
 
class  ExtinctionFlooding< T, labelT, extValType, HQ_Type >
 Generic extinction flooding process. More...
 
class  VolumeExtinctionFlooding< T, labelT, extValType, HQ_Type >
 

Functions

virtual void createBasins (const UINT &nbr)
 
virtual void createBasins (const UINT &nbr)
 
virtual void createBasins (const UINT &nbr)
 
 CrossVectorComp (const vector< T > &vec)
 
virtual void deleteBasins ()
 
virtual void deleteBasins ()
 
virtual void deleteBasins ()
 
virtual void finalize (const labelT &)
 
virtual void finalize (const labelT &lbl)
 
virtual void finalize (const labelT &lbl)
 
virtual void finalize (const labelT &lbl)
 
virtual RES_T flood (const Image< T > &imIn, const Image< labelT > &imMarkers, Image< labelT > &imBasinsOut, const StrElt &se=DEFAULT_SE)
 
virtual RES_T flood (const Image< T > &imIn, const Image< labelT > &imMarkers, Image< labelT > &imBasinsOut, Graph< labelT, extValType > &_graph, const StrElt &se=DEFAULT_SE)
 
template<class outT >
RES_T floodWithExtRank (const Image< T > &imIn, const Image< labelT > &imMarkers, Image< outT > &imExtRankOut, Image< labelT > &imBasinsOut, const StrElt &se=DEFAULT_SE)
 
template<class outT >
RES_T floodWithExtRank (const Image< T > &imIn, const Image< labelT > &imMarkers, Image< outT > &imExtRankOut, const StrElt &se=DEFAULT_SE)
 
template<class outT >
RES_T floodWithExtValues (const Image< T > &imIn, const Image< labelT > &imMarkers, Image< outT > &imExtValOut, Image< labelT > &imBasinsOut, const StrElt &se=DEFAULT_SE)
 
template<class outT >
RES_T floodWithExtValues (const Image< T > &imIn, const Image< labelT > &imMarkers, Image< outT > &imExtValOut, const StrElt &se=DEFAULT_SE)
 
virtual RES_T initialize (const Image< T > &imIn, Image< labelT > &imLbl, const StrElt &se)
 
virtual void insertPixel (const size_t &, const labelT &)
 
virtual void insertPixel (const size_t &offset, const labelT &lbl)
 
virtual void insertPixel (const size_t &offset, const labelT &lbl)
 
virtual labelT mergeBasins (const labelT &, const labelT &)
 
virtual labelT mergeBasins (const labelT &lbl1, const labelT &lbl2)
 
virtual labelT mergeBasins (const labelT &lbl1, const labelT &lbl2)
 
virtual labelT mergeBasins (const labelT &lbl1, const labelT &lbl2)
 
bool operator() (const T &i, const T &j)
 
virtual RES_T processImage (const Image< T > &imIn, Image< labelT > &imLbl, const StrElt &se)
 
virtual void processMerges (void)
 
virtual void processNeighbor (const size_t &curOffset, const size_t &nbOffset)
 
virtual void processPixel (const size_t &curOffset)
 
virtual void raiseLevel (const labelT &)
 
virtual void raiseLevel (const labelT &lbl)
 
virtual void updateEquTable (const labelT &lbl1, const labelT &lbl2)
 
template<class T , class labelT , class outT >
RES_T watershedExtinction (const Image< T > &imIn, const Image< labelT > &imMarkers, Image< outT > &imOut, Image< labelT > &imBasinsOut, const char *extinctionType="v", const StrElt &se=DEFAULT_SE, bool rankOutput=true)
 
template<class T , class labelT , class outT >
RES_T watershedExtinction (const Image< T > &imIn, Image< labelT > &imMarkers, Image< outT > &imOut, const char *extinctionType="v", const StrElt &se=DEFAULT_SE, bool rankOutput=true)
 
template<class T , class outT >
RES_T watershedExtinction (const Image< T > &imIn, Image< outT > &imOut, const char *extinctionType="v", const StrElt &se=DEFAULT_SE, bool rankOutput=true)
 
template<class T , class labelT , class outT >
RES_T watershedExtinctionGraph (const Image< T > &imIn, const Image< labelT > &imMarkers, Image< labelT > &imBasinsOut, Graph< labelT, outT > &graph, const char *extinctionType="v", const StrElt &se=DEFAULT_SE)
 Calculation of the minimum spanning tree, simultaneously to the image flooding, with edges weighted according to volume extinction values. More...
 
template<class T , class labelT , class outT >
RES_T watershedExtinctionGraph (const Image< T > &imIn, Image< labelT > &imBasinsOut, Graph< labelT, outT > &graph, const char *extinctionType="v", const StrElt &se=DEFAULT_SE)
 
template<class T , class labelT >
Graph< labelT, labelT > watershedExtinctionGraph (const Image< T > &imIn, const Image< labelT > &imMarkers, Image< labelT > &imBasinsOut, const char *extinctionType="v", const StrElt &se=DEFAULT_SE)
 Warning: returns a graph with ranking values.
 
template<class T , class labelT >
Graph< labelT, labelT > watershedExtinctionGraph (const Image< T > &imIn, Image< labelT > &imBasinsOut, const char *extinctionType="v", const StrElt &se=DEFAULT_SE)
 

Variables

vector< UINT > areas
 
vector< UINT > areas
 
UINT basinNbr
 
const vector< T > & compVec
 
currentLevel
 
vector< labelT > equivalentLabels
 
vector< extValType > extinctionValues
 
vector< T > floodLevels
 
Graph< labelT, extValType > * graph
 
UINT labelNbr
 
size_t lastOffset
 
std::vector< T > mergeLevels
 
vector< T > minValues
 
std::vector< std::pair< labelT, labelT > > pendingMerges
 
vector< UINT > volumes
 

Detailed Description

Function Documentation

RES_T smil::watershedExtinctionGraph ( const Image< T > &  imIn,
const Image< labelT > &  imMarkers,
Image< labelT > &  imBasinsOut,
Graph< labelT, outT > &  graph,
const char *  extinctionType = "v",
const StrElt se = DEFAULT_SE 
)

Calculation of the minimum spanning tree, simultaneously to the image flooding, with edges weighted according to volume extinction values.

Examples:
extinction_values.py