![]() |
MDSTk Libraries
1.1.0
Medical Data Segmentation Toolkit
|
Class providing watershed transform. More...
#include <mdsWatershedTransform.h>

Public Types | |
| enum | { TEMPLATE_PARAMETER_IS_NOT_IMAGE = I::CLASS_IMAGE } |
| Check that I is an image. More... | |
| 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 | |
| CHasOptions & | addOption (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. | |
| CHasOptions & | clearOption (int Flag) |
| Removes a given flag. | |
| CWatershedTransform (int Flags=WatershedTransform::BASINS) | |
| Constructor. | |
| int | getNumOfRegions () const |
| Returns the final number of regions. | |
| int | getOptions () const |
| Returns all flags. | |
| bool | operator() (const tImage &SrcImage, tRegionImage &DstImage) |
| Estimates watershed transform of a given edge image. | |
| CHasOptions & | setOption (int Flag) |
| Adds a given flag using bitwise OR operation. | |
| CHasOptions & | setOptions (int Flags) |
| Sets complete flags. | |
| ~CWatershedTransform () | |
| Destructor. | |
Protected Types | |
| typedef CImage16::tPixel | tDistance |
| Distance from a region minimum. | |
| typedef CImage16 | tDistanceImage |
| Helper distance image. | |
| typedef std::vector< tQueue > | tHistogram |
| Image histogram. | |
| typedef std::pair< tSize, tSize > | tPixelInfo |
| Histogram (queue) item. | |
| typedef std::deque< tPixelInfo > | tQueue |
| Image histogram column. | |
Protected Member Functions | |
| void | assignRegionNumber (const tPixelInfo &Point, tQueue &Fifo, tDistance CurrentDistance) |
| V z�vislosti na ��slech okoln�ch region� je nastaveno ��slo regionu aktu�ln�ho pixelu. | |
| bool | checkNewMinima (tQueue &Fifo, int Level) |
| Zkou�� naj�t nov� lok�ln� minima na �rovn� dan� parametrem level. | |
| void | clearBorderPixels (tRegionImage &Image) |
| Copies data from the internal helper segmented image. | |
| void | clearHistogram () |
| Clears the histogram. | |
| void | createHistogram (const tImage &SrcImage) |
| Prepares the image histogram. | |
| void | makeBorderPixels (tRegionImage &Image) |
| Copies data from the internal helper segmented image. | |
| void | preparePixels (tQueue &Fifo, int Level) |
| Prepares all pixels whose intensity is equal to a given level for further processing. | |
Protected Attributes | |
| tRegionNumber | m_CurrentRegion |
| Number of regions. | |
| tDistanceImage | m_DistanceImage |
| Helper distance image. | |
| tHistogram | m_Histogram |
| Input image histogram. | |
| int | m_Options |
| Optional flags. | |
| tRegionImage | m_RegionImage |
| Labeled image. | |
Class providing watershed transform.
typedef CImage16::tPixel mds::img::CWatershedTransform< I >::tDistance [protected] |
Distance from a region minimum.
typedef CImage16 mds::img::CWatershedTransform< I >::tDistanceImage [protected] |
Helper distance image.
typedef std::vector<tQueue> mds::img::CWatershedTransform< I >::tHistogram [protected] |
Image histogram.
| typedef I::tImage mds::img::CWatershedTransform< I >::tImage |
Input image type.
| typedef I::tPixel mds::img::CWatershedTransform< I >::tPixel |
Input image pixel type.
typedef std::pair<tSize, tSize> mds::img::CWatershedTransform< I >::tPixelInfo [protected] |
Histogram (queue) item.
typedef std::deque<tPixelInfo> mds::img::CWatershedTransform< I >::tQueue [protected] |
Image histogram column.
| typedef CImage32 mds::img::CWatershedTransform< I >::tRegionImage |
Output image containing labels of found image regions.
| typedef CImage32::tPixel mds::img::CWatershedTransform< I >::tRegionNumber |
Output image pixel type.
| anonymous enum |
| mds::img::CWatershedTransform< I >::CWatershedTransform | ( | int | Flags = WatershedTransform::BASINS | ) |
Constructor.
| mds::img::CWatershedTransform< I >::~CWatershedTransform | ( | ) |
Destructor.
| CHasOptions& mds::base::CHasOptions::addOption | ( | int | Flag | ) | [inherited] |
Adds a given flag using bitwise OR operation.
| void CWatershedTransform::assignRegionNumber | ( | const tPixelInfo & | Point, |
| tQueue & | Fifo, | ||
| tDistance | CurrentDistance | ||
| ) | [protected] |
V z�vislosti na ��slech okoln�ch region� je nastaveno ��slo regionu aktu�ln�ho pixelu.
| 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.
| bool CWatershedTransform::checkNewMinima | ( | tQueue & | Fifo, |
| int | Level | ||
| ) | [protected] |
Zkou�� naj�t nov� lok�ln� minima na �rovn� dan� parametrem level.
| int mds::base::CHasOptions::checkOption | ( | int | Flag | ) | const [inherited] |
Checks if a single flag is set.
| void CWatershedTransform::clearBorderPixels | ( | tRegionImage & | Image | ) | [protected] |
Copies data from the internal helper segmented image.
Labels all border pixels (watersheds) with respect to the neighbouring regions.
| void CWatershedTransform::clearHistogram | ( | ) | [protected] |
Clears the histogram.
| CHasOptions& mds::base::CHasOptions::clearOption | ( | int | Flag | ) | [inherited] |
Removes a given flag.
| void CWatershedTransform::createHistogram | ( | const tImage & | SrcImage | ) | [protected] |
Prepares the image histogram.
| int mds::img::CWatershedTransform< I >::getNumOfRegions | ( | ) | const |
Returns the final number of regions.
| int mds::base::CHasOptions::getOptions | ( | ) | const [inherited] |
Returns all flags.
| void CWatershedTransform::makeBorderPixels | ( | tRegionImage & | Image | ) | [protected] |
Copies data from the internal helper segmented image.
Marks all border pixels.
| bool CWatershedTransform::operator() | ( | const tImage & | SrcImage, |
| tRegionImage & | DstImage | ||
| ) |
Estimates watershed transform of a given edge image.
| void CWatershedTransform::preparePixels | ( | tQueue & | Fifo, |
| int | Level | ||
| ) | [protected] |
Prepares all pixels whose intensity is equal to a given level for further processing.
| CHasOptions& mds::base::CHasOptions::setOption | ( | int | Flag | ) | [inherited] |
Adds a given flag using bitwise OR operation.
| CHasOptions& mds::base::CHasOptions::setOptions | ( | int | Flags | ) | [inherited] |
Sets complete flags.
tRegionNumber mds::img::CWatershedTransform< I >::m_CurrentRegion [protected] |
Number of regions.
tDistanceImage mds::img::CWatershedTransform< I >::m_DistanceImage [protected] |
Helper distance image.
tHistogram mds::img::CWatershedTransform< I >::m_Histogram [protected] |
Input image histogram.
int mds::base::CHasOptions::m_Options [protected, inherited] |
Optional flags.
tRegionImage mds::img::CWatershedTransform< I >::m_RegionImage [protected] |
Labeled image.
1.7.6.1