MDSTk Libraries  1.1.0
Medical Data Segmentation Toolkit
Public Types | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
mds::img::CRegionMerging< I, Measure > Class Template Reference

Class providing watershed transform. More...

#include <mdsRegionMerging.h>

Inheritance diagram for mds::img::CRegionMerging< I, Measure >:
Inheritance graph
[legend]

List of all members.

Public Types

enum  { TEMPLATE_PARAMETER_IS_NOT_IMAGE = I::CLASS_IMAGE }
 Check that I is an image. More...
typedef CPixelStatsExtractor
< tPixel
tFeatureExtractor
 Used feature extractor.
typedef CPixelStats tFeatureVector
 Used feature vector.
typedef I::tImage tImage
 Input image type.
typedef I::tPixel tPixel
 Input image pixel type.
typedef CImage32 tRegionImage
 Output image containing labels of found image regions.
typedef CImage32::tPixel tRegionNumber
 Output image pixel type.

Public Member Functions

CHasOptionsaddOption (int Flag)
 Adds a given flag using bitwise OR operation.
bool checkAllOptions (int Flags) const
 Checks if all specified flags are set.
bool checkAnyOption (int Flags) const
 Checks if any of specified flags is set.
int checkOption (int Flag) const
 Checks if a single flag is set.
CHasOptionsclearOption (int Flag)
 Removes a given flag.
 CRegionMerging (int Flags=0)
 Constructor.
int getOptions () const
 Returns all flags.
bool operator() (const tImage &SrcImage, tRegionImage &RegionImage)
 Provides region merging algorithm using the region adjacency graph.
CHasOptionssetOption (int Flag)
 Adds a given flag using bitwise OR operation.
CHasOptionssetOptions (int Flags)
 Sets complete flags.
CRegionMergingsetSimilarityRatio (double dValue)
 Sets the stopping criterion.
CRegionMergingsetSimilarityThreshold (double dValue)
 Sets the similarity threshold.
 ~CRegionMerging ()
 Destructor.

Protected Types

typedef CAdjacencyGraph< double > tRAG
 Region adjacency graph.

Protected Member Functions

tRegionNumber reassignRegions (tRegionImage &RegionImage)
 Re-assignes labels to image regions so that there will be no skipped values.

Protected Attributes

double m_dSimRatio
 Stopping criterion (= maximal allowed ratio of the current similarity and the minimum similarity that has been observed in previous merging steps).
double m_dSimThreshold
 Similarity threshold (= minimal value of the similarity measure that results in region merging).
int m_Options
 Optional flags.

Detailed Description

template<class I, template< typename > class Measure = CMeanValueSimilarity>
class mds::img::CRegionMerging< I, Measure >

Class providing watershed transform.


Member Typedef Documentation

template<class I , template< typename > class Measure = CMeanValueSimilarity>
typedef CPixelStatsExtractor<tPixel> mds::img::CRegionMerging< I, Measure >::tFeatureExtractor

Used feature extractor.

template<class I , template< typename > class Measure = CMeanValueSimilarity>
typedef CPixelStats mds::img::CRegionMerging< I, Measure >::tFeatureVector

Used feature vector.

template<class I , template< typename > class Measure = CMeanValueSimilarity>
typedef I::tImage mds::img::CRegionMerging< I, Measure >::tImage

Input image type.

template<class I , template< typename > class Measure = CMeanValueSimilarity>
typedef I::tPixel mds::img::CRegionMerging< I, Measure >::tPixel

Input image pixel type.

template<class I , template< typename > class Measure = CMeanValueSimilarity>
typedef CAdjacencyGraph<double> mds::img::CRegionMerging< I, Measure >::tRAG [protected]

Region adjacency graph.

template<class I , template< typename > class Measure = CMeanValueSimilarity>
typedef CImage32 mds::img::CRegionMerging< I, Measure >::tRegionImage

Output image containing labels of found image regions.

template<class I , template< typename > class Measure = CMeanValueSimilarity>
typedef CImage32::tPixel mds::img::CRegionMerging< I, Measure >::tRegionNumber

Output image pixel type.


Member Enumeration Documentation

template<class I , template< typename > class Measure = CMeanValueSimilarity>
anonymous enum

Check that I is an image.

You will see name of this enum somewhere in compiler error message if the type I is not image.

Enumerator:
TEMPLATE_PARAMETER_IS_NOT_IMAGE 

Constructor & Destructor Documentation

template<class I , template< typename > class Measure = CMeanValueSimilarity>
mds::img::CRegionMerging< I, Measure >::CRegionMerging ( int  Flags = 0)

Constructor.

template<class I , template< typename > class Measure = CMeanValueSimilarity>
mds::img::CRegionMerging< I, Measure >::~CRegionMerging ( )

Destructor.


Member Function Documentation

Adds a given flag using bitwise OR operation.

bool mds::base::CHasOptions::checkAllOptions ( int  Flags) const [inherited]

Checks if all specified flags are set.

bool mds::base::CHasOptions::checkAnyOption ( int  Flags) const [inherited]

Checks if any of specified flags is set.

int mds::base::CHasOptions::checkOption ( int  Flag) const [inherited]

Checks if a single flag is set.

  • Returns zero on false.

Removes a given flag.

int mds::base::CHasOptions::getOptions ( ) const [inherited]

Returns all flags.

template<class I , template< typename > class M>
bool CRegionMerging::operator() ( const tImage SrcImage,
tRegionImage RegionImage 
)

Provides region merging algorithm using the region adjacency graph.

  • Produces a label image whose image pixels represent indexes of image regions.
  • Modifies the input RegionImage.
template<class I , template< typename > class M>
CRegionMerging< I, M >::tRegionNumber CRegionMerging::reassignRegions ( tRegionImage RegionImage) [protected]

Re-assignes labels to image regions so that there will be no skipped values.

  • Returns the final number of regions in the image.

Adds a given flag using bitwise OR operation.

Sets complete flags.

template<class I , template< typename > class Measure = CMeanValueSimilarity>
CRegionMerging& mds::img::CRegionMerging< I, Measure >::setSimilarityRatio ( double  dValue)

Sets the stopping criterion.

template<class I , template< typename > class Measure = CMeanValueSimilarity>
CRegionMerging& mds::img::CRegionMerging< I, Measure >::setSimilarityThreshold ( double  dValue)

Sets the similarity threshold.


Member Data Documentation

template<class I , template< typename > class Measure = CMeanValueSimilarity>
double mds::img::CRegionMerging< I, Measure >::m_dSimRatio [protected]

Stopping criterion (= maximal allowed ratio of the current similarity and the minimum similarity that has been observed in previous merging steps).

template<class I , template< typename > class Measure = CMeanValueSimilarity>
double mds::img::CRegionMerging< I, Measure >::m_dSimThreshold [protected]

Similarity threshold (= minimal value of the similarity measure that results in region merging).

int mds::base::CHasOptions::m_Options [protected, inherited]

Optional flags.


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