Region Growing segment. More...
#include <SegmenterRegionGrowingSegment.h>
Public Types | |
typedef float | FeatureType |
Feature type definition. More... | |
typedef unsigned short int | IterationCounterType |
Feature type definition. More... | |
Public Member Functions | |
void | addNeighborSegment (SegmenterRegionGrowingSegment *const nSegPtr) |
Add a pointer of a neighbor segment (if it is not already there). More... | |
void | clearNeighborSegments () |
Remove all neighbor segments. 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 & | operator= (const SegmenterRegionGrowingSegment &other) |
void | removeNeighborSegment (SegmenterRegionGrowingSegment *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 ** | 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 * | m_nextActiveSegment |
A pointer to the next active segment. More... | |
SegmenterRegionGrowingSegment * | 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 40 of file SegmenterRegionGrowingSegment.h.
typedef float te::rp::SegmenterRegionGrowingSegment::FeatureType |
Feature type definition.
Definition at line 45 of file SegmenterRegionGrowingSegment.h.
typedef unsigned short int te::rp::SegmenterRegionGrowingSegment::IterationCounterType |
Feature type definition.
Definition at line 50 of file SegmenterRegionGrowingSegment.h.
void te::rp::SegmenterRegionGrowingSegment::addNeighborSegment | ( | SegmenterRegionGrowingSegment *const | nSegPtr | ) |
Add a pointer of a neighbor segment (if it is not already there).
Definition at line 50 of file SegmenterRegionGrowingSegment.cpp.
References m_neighborSegments, and m_neighborSegmentsSize.
Referenced by te::rp::SegmenterRegionGrowingStrategy::initializeSegments(), and te::rp::SegmenterRegionGrowingStrategy::mergeSegments().
void te::rp::SegmenterRegionGrowingSegment::clearNeighborSegments | ( | ) |
Remove all neighbor segments.
Definition at line 125 of file SegmenterRegionGrowingSegment.cpp.
References m_neighborSegments, and m_neighborSegmentsSize.
Referenced by te::rp::SegmenterRegionGrowingStrategy::initializeSegments(), and te::rp::SegmenterRegionGrowingStrategy::mergeSegments().
|
inline |
Disable this segment ( same as m_mergetIteration = std::numeric_limits< SegmenterRegionGrowingSegment::IterationCounterType>::max() ).
Definition at line 141 of file SegmenterRegionGrowingSegment.h.
Referenced by te::rp::SegmenterRegionGrowingStrategy::execute(), and te::rp::SegmenterRegionGrowingStrategy::mergeSegments().
|
inline |
Returns true if this segment is enabled.
Definition at line 147 of file SegmenterRegionGrowingSegment.h.
SegmenterRegionGrowingSegment & te::rp::SegmenterRegionGrowingSegment::operator= | ( | const SegmenterRegionGrowingSegment & | other | ) |
Definition at line 10 of file SegmenterRegionGrowingSegment.cpp.
References m_features, m_featuresSize, m_id, m_mergetIteration, m_neighborSegments, m_neighborSegmentsSize, m_nextActiveSegment, m_prevActiveSegment, m_size, m_xBound, m_xStart, m_yBound, and m_yStart.
void te::rp::SegmenterRegionGrowingSegment::removeNeighborSegment | ( | SegmenterRegionGrowingSegment *const | nSegPtr | ) |
Remove all occurrences of a neighbor segment.
Definition at line 84 of file SegmenterRegionGrowingSegment.cpp.
References m_neighborSegments, and m_neighborSegmentsSize.
Referenced by te::rp::SegmenterRegionGrowingStrategy::mergeSegments().
FeatureType* te::rp::SegmenterRegionGrowingSegment::m_features |
A pionter to a fixed size vector of segment features.
Definition at line 107 of file SegmenterRegionGrowingSegment.h.
Referenced by te::rp::SegmenterRegionGrowingStrategy::MeanMerger::getDissimilarity(), te::rp::SegmenterRegionGrowingStrategy::BaatzMerger::getDissimilarity(), te::rp::SegmenterRegionGrowingStrategy::initializeSegments(), te::rp::SegmenterRegionGrowingStrategy::MeanMerger::mergeFeatures(), te::rp::SegmenterRegionGrowingStrategy::BaatzMerger::mergeFeatures(), operator=(), and te::rp::SegmenterRegionGrowingStrategy::BaatzMerger::update().
unsigned int te::rp::SegmenterRegionGrowingSegment::m_featuresSize |
The current size of m_features.
Definition at line 112 of file SegmenterRegionGrowingSegment.h.
Referenced by operator=().
SegmenterSegmentsBlock::SegmentIdDataType te::rp::SegmenterRegionGrowingSegment::m_id |
Segment ID.
Definition at line 55 of file SegmenterRegionGrowingSegment.h.
Referenced by te::rp::SegmenterRegionGrowingStrategy::BaatzMerger::getDissimilarity(), te::rp::SegmenterRegionGrowingStrategy::initializeSegments(), te::rp::SegmenterRegionGrowingStrategy::mergeSegments(), and operator=().
IterationCounterType te::rp::SegmenterRegionGrowingSegment::m_mergetIteration |
The current merge iteration.
Definition at line 118 of file SegmenterRegionGrowingSegment.h.
Referenced by te::rp::SegmenterRegionGrowingStrategy::initializeSegments(), te::rp::SegmenterRegionGrowingStrategy::mergeSegments(), and operator=().
SegmenterRegionGrowingSegment** te::rp::SegmenterRegionGrowingSegment::m_neighborSegments |
Neighborhood segments pointers (some pointers can be null) or a null pointer if there is no neighborhood.
Definition at line 86 of file SegmenterRegionGrowingSegment.h.
Referenced by addNeighborSegment(), clearNeighborSegments(), te::rp::SegmenterRegionGrowingStrategy::mergeSegments(), operator=(), and removeNeighborSegment().
unsigned int te::rp::SegmenterRegionGrowingSegment::m_neighborSegmentsSize |
The current size of m_neighborSegments.
Definition at line 91 of file SegmenterRegionGrowingSegment.h.
Referenced by addNeighborSegment(), clearNeighborSegments(), te::rp::SegmenterRegionGrowingStrategy::mergeSegments(), operator=(), and removeNeighborSegment().
SegmenterRegionGrowingSegment* te::rp::SegmenterRegionGrowingSegment::m_nextActiveSegment |
A pointer to the next active segment.
Definition at line 101 of file SegmenterRegionGrowingSegment.h.
Referenced by te::rp::SegmenterRegionGrowingStrategy::getActiveSegmentsNumber(), te::rp::SegmenterRegionGrowingStrategy::initializeSegments(), te::rp::SegmenterRegionGrowingStrategy::mergeSegments(), and operator=().
SegmenterRegionGrowingSegment* te::rp::SegmenterRegionGrowingSegment::m_prevActiveSegment |
A pointer to the previous active segment.
Definition at line 96 of file SegmenterRegionGrowingSegment.h.
Referenced by te::rp::SegmenterRegionGrowingStrategy::initializeSegments(), te::rp::SegmenterRegionGrowingStrategy::mergeSegments(), and operator=().
unsigned int te::rp::SegmenterRegionGrowingSegment::m_size |
Segment area (pixels number).
Definition at line 60 of file SegmenterRegionGrowingSegment.h.
Referenced by te::rp::SegmenterRegionGrowingStrategy::BaatzMerger::getDissimilarity(), te::rp::SegmenterRegionGrowingStrategy::initializeSegments(), te::rp::SegmenterRegionGrowingStrategy::MeanMerger::mergeFeatures(), te::rp::SegmenterRegionGrowingStrategy::BaatzMerger::mergeFeatures(), te::rp::SegmenterRegionGrowingStrategy::mergeSegments(), and operator=().
unsigned int te::rp::SegmenterRegionGrowingSegment::m_xBound |
Segment lower bound X coordinate box over the label image.
Definition at line 70 of file SegmenterRegionGrowingSegment.h.
Referenced by te::rp::SegmenterRegionGrowingStrategy::BaatzMerger::getDissimilarity(), te::rp::SegmenterRegionGrowingStrategy::initializeSegments(), te::rp::SegmenterRegionGrowingStrategy::MeanMerger::mergeFeatures(), te::rp::SegmenterRegionGrowingStrategy::BaatzMerger::mergeFeatures(), te::rp::SegmenterRegionGrowingStrategy::mergeSegments(), and operator=().
unsigned int te::rp::SegmenterRegionGrowingSegment::m_xStart |
Segment left X coordinate box over the label image.
Definition at line 65 of file SegmenterRegionGrowingSegment.h.
Referenced by te::rp::SegmenterRegionGrowingStrategy::BaatzMerger::getDissimilarity(), te::rp::SegmenterRegionGrowingStrategy::initializeSegments(), te::rp::SegmenterRegionGrowingStrategy::MeanMerger::mergeFeatures(), te::rp::SegmenterRegionGrowingStrategy::BaatzMerger::mergeFeatures(), te::rp::SegmenterRegionGrowingStrategy::mergeSegments(), and operator=().
unsigned int te::rp::SegmenterRegionGrowingSegment::m_yBound |
Segment lower bound Y coordinate box over the label image.
Definition at line 80 of file SegmenterRegionGrowingSegment.h.
Referenced by te::rp::SegmenterRegionGrowingStrategy::BaatzMerger::getDissimilarity(), te::rp::SegmenterRegionGrowingStrategy::initializeSegments(), te::rp::SegmenterRegionGrowingStrategy::MeanMerger::mergeFeatures(), te::rp::SegmenterRegionGrowingStrategy::BaatzMerger::mergeFeatures(), te::rp::SegmenterRegionGrowingStrategy::mergeSegments(), and operator=().
unsigned int te::rp::SegmenterRegionGrowingSegment::m_yStart |
Segment upper Y coordinate box over the label image.
Definition at line 75 of file SegmenterRegionGrowingSegment.h.
Referenced by te::rp::SegmenterRegionGrowingStrategy::BaatzMerger::getDissimilarity(), te::rp::SegmenterRegionGrowingStrategy::initializeSegments(), te::rp::SegmenterRegionGrowingStrategy::MeanMerger::mergeFeatures(), te::rp::SegmenterRegionGrowingStrategy::BaatzMerger::mergeFeatures(), te::rp::SegmenterRegionGrowingStrategy::mergeSegments(), and operator=().