SMIL  0.9
ExtinctionFlooding< T, labelT, extValType, HQ_Type > Class Template Reference

Generic extinction flooding process. More...

#include <DMorphoWatershedExtinction.hpp>

+ Inheritance diagram for ExtinctionFlooding< T, labelT, extValType, HQ_Type >:
+ Collaboration diagram for ExtinctionFlooding< T, labelT, extValType, HQ_Type >:

Public Member Functions

virtual void createBasins (const UINT &nbr)
 
virtual void deleteBasins ()
 
virtual void finalize (const labelT &)
 
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 void insertPixel (const size_t &, const labelT &)
 
virtual labelT mergeBasins (const labelT &, const labelT &)
 
virtual void raiseLevel (const labelT &)
 
virtual void updateEquTable (const labelT &lbl1, const labelT &lbl2)
 

Public Attributes

UINT basinNbr
 
currentLevel
 
vector< labelT > equivalentLabels
 
vector< extValType > extinctionValues
 
Graph< labelT, extValType > * graph
 
UINT labelNbr
 
size_t lastOffset
 
std::vector< T > mergeLevels
 
std::vector< std::pair< labelT, labelT > > pendingMerges
 
- Public Attributes inherited from BaseFlooding< T, labelT, HQ_Type >
const Image< T > * imgIn
 
Image< labelT > * imgLbl
 

Protected Member Functions

virtual RES_T initialize (const Image< T > &imIn, Image< labelT > &imLbl, const StrElt &se)
 
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)
 
- Protected Member Functions inherited from BaseFlooding< T, labelT, HQ_Type >
void getCoordsFromOffset (size_t off, size_t &x, size_t &y, size_t &z) const
 

Additional Inherited Members

- Protected Attributes inherited from BaseFlooding< T, labelT, HQ_Type >
currentLevel
 
vector< int > dOffsets
 
HQ_Type hq
 
size_t imSize [3]
 
ImDtTypes< T >::lineType inPixels
 
ImDtTypes< labelT >::lineType lblPixels
 
bool oddSE
 
size_t pixPerSlice
 
vector< IntPointsePts
 
UINT sePtsNbr
 
const labelT STAT_QUEUED
 

Detailed Description

template<class T, class labelT, class extValType = UINT, class HQ_Type = HierarchicalQueue<T>>
class smil::ExtinctionFlooding< T, labelT, extValType, HQ_Type >

Generic extinction flooding process.

Can be derivated in wrapped languages thanks to Swig directors.

Examples:
custom_extinction_value.py

The documentation for this class was generated from the following file: