Region Growing segment. More...
#include <SegmenterRegionGrowingSegment.h>
Public Types | |
typedef FeatureDataTypeT | FeatureType |
Feature type definition. More... | |
typedef unsigned short int | IterationCounterType |
Feature type definition. More... | |
Public Member Functions | |
void | addNeighborSegmentPtr (SegmenterRegionGrowingSegment< FeatureDataTypeT > *const nSegPtr) |
Add a pointer of a neighbor segment (if it is not already there). More... | |
void | disable () |
Disable this segment ( same as m_mergetIteration = std::numeric_limits< SegmenterRegionGrowingSegment::IterationCounterType>::max() ). More... | |
bool | isEnabled () const |
Returns true if this segment is enabled. More... | |
SegmenterRegionGrowingSegment< FeatureDataTypeT > & | operator= (const SegmenterRegionGrowingSegment< FeatureDataTypeT > &other) |
void | removeAllNeighborSegmentsPtrs () |
Remove all neighbor segments. More... | |
void | removeNeighborSegmentPtr (SegmenterRegionGrowingSegment< FeatureDataTypeT > *const nSegPtr) |
Remove all occurrences of a neighbor segment. More... | |
Public Attributes | |
FeatureType * | m_features |
A pionter to a fixed size vector of segment features. More... | |
unsigned int | m_featuresSize |
The current size of m_features. More... | |
SegmenterSegmentsBlock::SegmentIdDataType | m_id |
Segment ID. More... | |
IterationCounterType | m_mergetIteration |
The current merge iteration. More... | |
SegmenterRegionGrowingSegment< FeatureDataTypeT > ** | m_neighborSegments |
Neighborhood segments pointers (some pointers can be null) or a null pointer if there is no neighborhood. More... | |
unsigned int | m_neighborSegmentsSize |
The current size of m_neighborSegments. More... | |
SegmenterRegionGrowingSegment< FeatureDataTypeT > * | m_nextActiveSegment |
A pointer to the next active segment. More... | |
SegmenterRegionGrowingSegment< FeatureDataTypeT > * | m_prevActiveSegment |
A pointer to the previous active segment. More... | |
unsigned int | m_size |
Segment area (pixels number). More... | |
unsigned int | m_xBound |
Segment lower bound X coordinate box over the label image. More... | |
unsigned int | m_xStart |
Segment left X coordinate box over the label image. More... | |
unsigned int | m_yBound |
Segment lower bound Y coordinate box over the label image. More... | |
unsigned int | m_yStart |
Segment upper Y coordinate box over the label image. More... | |
Region Growing segment.
Definition at line 41 of file SegmenterRegionGrowingSegment.h.
typedef FeatureDataTypeT te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::FeatureType |
Feature type definition.
Definition at line 46 of file SegmenterRegionGrowingSegment.h.
typedef unsigned short int te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::IterationCounterType |
Feature type definition.
Definition at line 51 of file SegmenterRegionGrowingSegment.h.
void te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::addNeighborSegmentPtr | ( | SegmenterRegionGrowingSegment< FeatureDataTypeT > *const | nSegPtr | ) |
Add a pointer of a neighbor segment (if it is not already there).
Definition at line 195 of file SegmenterRegionGrowingSegment.h.
Referenced by te::rp::rg::mergeSegments().
|
inline |
Disable this segment ( same as m_mergetIteration = std::numeric_limits< SegmenterRegionGrowingSegment::IterationCounterType>::max() ).
Definition at line 143 of file SegmenterRegionGrowingSegment.h.
Referenced by te::rp::rg::mergeSegments().
|
inline |
Returns true if this segment is enabled.
Definition at line 149 of file SegmenterRegionGrowingSegment.h.
SegmenterRegionGrowingSegment< FeatureDataTypeT > & te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::operator= | ( | const SegmenterRegionGrowingSegment< FeatureDataTypeT > & | other | ) |
Definition at line 155 of file SegmenterRegionGrowingSegment.h.
References te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::m_features, te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::m_featuresSize, te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::m_id, te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::m_mergetIteration, te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::m_neighborSegments, te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::m_neighborSegmentsSize, te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::m_nextActiveSegment, te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::m_prevActiveSegment, te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::m_size, te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::m_xBound, te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::m_xStart, te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::m_yBound, and te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::m_yStart.
void te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::removeAllNeighborSegmentsPtrs | ( | ) |
Remove all neighbor segments.
Definition at line 272 of file SegmenterRegionGrowingSegment.h.
Referenced by te::rp::rg::mergeSegments().
void te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::removeNeighborSegmentPtr | ( | SegmenterRegionGrowingSegment< FeatureDataTypeT > *const | nSegPtr | ) |
Remove all occurrences of a neighbor segment.
Definition at line 230 of file SegmenterRegionGrowingSegment.h.
Referenced by te::rp::rg::mergeSegments().
FeatureType* te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::m_features |
A pionter to a fixed size vector of segment features.
Definition at line 108 of file SegmenterRegionGrowingSegment.h.
Referenced by te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::operator=().
unsigned int te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::m_featuresSize |
The current size of m_features.
Definition at line 113 of file SegmenterRegionGrowingSegment.h.
Referenced by te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::operator=().
SegmenterSegmentsBlock::SegmentIdDataType te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::m_id |
Segment ID.
Definition at line 56 of file SegmenterRegionGrowingSegment.h.
Referenced by te::rp::rg::mergeSegments(), and te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::operator=().
IterationCounterType te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::m_mergetIteration |
The current merge iteration.
Definition at line 119 of file SegmenterRegionGrowingSegment.h.
Referenced by te::rp::rg::mergeSegments(), and te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::operator=().
SegmenterRegionGrowingSegment< FeatureDataTypeT >** te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::m_neighborSegments |
Neighborhood segments pointers (some pointers can be null) or a null pointer if there is no neighborhood.
Definition at line 87 of file SegmenterRegionGrowingSegment.h.
Referenced by te::rp::rg::mergeSegments(), and te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::operator=().
unsigned int te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::m_neighborSegmentsSize |
The current size of m_neighborSegments.
Definition at line 92 of file SegmenterRegionGrowingSegment.h.
Referenced by te::rp::rg::mergeSegments(), and te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::operator=().
SegmenterRegionGrowingSegment< FeatureDataTypeT >* te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::m_nextActiveSegment |
A pointer to the next active segment.
Definition at line 102 of file SegmenterRegionGrowingSegment.h.
Referenced by te::rp::rg::getActiveSegmentsNumber(), te::rp::rg::mergeSegments(), and te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::operator=().
SegmenterRegionGrowingSegment< FeatureDataTypeT >* te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::m_prevActiveSegment |
A pointer to the previous active segment.
Definition at line 97 of file SegmenterRegionGrowingSegment.h.
Referenced by te::rp::rg::mergeSegments(), and te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::operator=().
unsigned int te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::m_size |
Segment area (pixels number).
Definition at line 61 of file SegmenterRegionGrowingSegment.h.
Referenced by te::rp::rg::mergeSegments(), and te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::operator=().
unsigned int te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::m_xBound |
Segment lower bound X coordinate box over the label image.
Definition at line 71 of file SegmenterRegionGrowingSegment.h.
Referenced by te::rp::rg::mergeSegments(), and te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::operator=().
unsigned int te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::m_xStart |
Segment left X coordinate box over the label image.
Definition at line 66 of file SegmenterRegionGrowingSegment.h.
Referenced by te::rp::rg::mergeSegments(), and te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::operator=().
unsigned int te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::m_yBound |
Segment lower bound Y coordinate box over the label image.
Definition at line 81 of file SegmenterRegionGrowingSegment.h.
Referenced by te::rp::rg::mergeSegments(), and te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::operator=().
unsigned int te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::m_yStart |
Segment upper Y coordinate box over the label image.
Definition at line 76 of file SegmenterRegionGrowingSegment.h.
Referenced by te::rp::rg::mergeSegments(), and te::rp::SegmenterRegionGrowingSegment< FeatureDataTypeT >::operator=().