80 m_neighborSegmentsSize = m_neighborSegmentsSize + 1;
87 unsigned int numberOfZeroes = 0;
102 unsigned int numberOfNonZeroes = m_neighborSegmentsSize - numberOfZeroes;
104 if( ( m_neighborSegmentsSize > 4 ) && ( numberOfNonZeroes < numberOfZeroes ) )
109 unsigned int idx2 = 0;
121 m_neighborSegmentsSize = numberOfNonZeroes;
unsigned int m_neighborSegmentsSize
The current size of m_neighborSegments.
unsigned int m_yBound
Segment lower bound Y coordinate box over the label image.
unsigned int m_xStart
Segment left X coordinate box over the label image.
IterationCounterType m_mergetIteration
The current merge iteration.
unsigned int m_xBound
Segment lower bound X coordinate box over the label image.
SegmenterRegionGrowingSegment * m_nextActiveSegment
A pointer to the next active segment.
void addNeighborSegment(SegmenterRegionGrowingSegment *const nSegPtr)
Add a pointer of a neighbor segment (if it is not already there).
SegmenterRegionGrowingSegment * m_prevActiveSegment
A pointer to the previous active segment.
FeatureType * m_features
A pionter to a fixed size vector of segment features.
SegmenterRegionGrowingSegment ** m_neighborSegments
Neighborhood segments pointers (some pointers can be null) or a null pointer if there is no neighborh...
SegmenterRegionGrowingSegment & operator=(const SegmenterRegionGrowingSegment &other)
unsigned int m_size
Segment area (pixels number).
unsigned int m_featuresSize
The current size of m_features.
unsigned int m_yStart
Segment upper Y coordinate box over the label image.
float FeatureType
Feature type definition.
void removeNeighborSegment(SegmenterRegionGrowingSegment *const nSegPtr)
Remove all occurrences of a neighbor segment.
void clearNeighborSegments()
Remove all neighbor segments.
SegmenterSegmentsBlock::SegmentIdDataType m_id
Segment ID.