Mean based Segments merger. More...
#include <SegmenterRegionGrowingStrategy.h>
Public Member Functions | |
SegmenterRegionGrowingSegment::FeatureType | getDissimilarity (SegmenterRegionGrowingSegment const *const segment1Ptr, SegmenterRegionGrowingSegment const *const segment2Ptr, SegmenterRegionGrowingSegment *const mergePreviewSegPtr) const |
Returns a dimilarity index between this and the other segment. More... | |
MeanMerger (const unsigned int featuresNumber) | |
void | mergeFeatures (SegmenterRegionGrowingSegment *const segment1Ptr, SegmenterRegionGrowingSegment const *const segment2Ptr, SegmenterRegionGrowingSegment const *const mergePreviewSegPtr) const |
Merge specific segment features from both segments into the first segment. More... | |
void | update () |
Update the internal state. More... | |
~MeanMerger () | |
Protected Attributes | |
unsigned int | m_featuresNumber |
The number of features (bands). More... | |
SegmenterRegionGrowingSegment::FeatureType | m_getDissimilarity_diffValue |
SegmenterRegionGrowingSegment::FeatureType | m_getDissimilarity_dissValue |
unsigned int | m_getDissimilarity_meansIdx |
Mean based Segments merger.
Definition at line 189 of file SegmenterRegionGrowingStrategy.h.
te::rp::SegmenterRegionGrowingStrategy::MeanMerger::MeanMerger | ( | const unsigned int | featuresNumber | ) |
Definition at line 130 of file SegmenterRegionGrowingStrategy.cpp.
te::rp::SegmenterRegionGrowingStrategy::MeanMerger::~MeanMerger | ( | ) |
Definition at line 135 of file SegmenterRegionGrowingStrategy.cpp.
|
virtual |
Returns a dimilarity index between this and the other segment.
segment1Ptr | A pointer to the first segment. |
segment2Ptr | A pointer to the second segment. |
mergePreviewSegPtr | A pointer to a valid segment where the merged features values will be stored (when aplicable). |
Implements te::rp::SegmenterRegionGrowingStrategy::Merger.
Definition at line 139 of file SegmenterRegionGrowingStrategy.cpp.
References te::rp::SegmenterRegionGrowingSegment::m_features.
|
virtual |
Merge specific segment features from both segments into the first segment.
segment1Ptr | The first segment. |
segment2Ptr | A pointer to the second segment. |
mergePreviewSegPtr | A pointer to a valid segment where the merged features values were be stored by calling getDissimilarityIndex (when aplicable). |
Implements te::rp::SegmenterRegionGrowingStrategy::Merger.
Definition at line 165 of file SegmenterRegionGrowingStrategy.cpp.
References te::rp::SegmenterRegionGrowingSegment::m_features, te::rp::SegmenterRegionGrowingSegment::m_size, te::rp::SegmenterRegionGrowingSegment::m_xBound, te::rp::SegmenterRegionGrowingSegment::m_xStart, te::rp::SegmenterRegionGrowingSegment::m_yBound, and te::rp::SegmenterRegionGrowingSegment::m_yStart.
|
inlinevirtual |
Update the internal state.
Implements te::rp::SegmenterRegionGrowingStrategy::Merger.
Definition at line 210 of file SegmenterRegionGrowingStrategy.h.
|
protected |
The number of features (bands).
Definition at line 210 of file SegmenterRegionGrowingStrategy.h.
|
mutableprotected |
Definition at line 218 of file SegmenterRegionGrowingStrategy.h.
|
mutableprotected |
Definition at line 217 of file SegmenterRegionGrowingStrategy.h.
|
mutableprotected |
Definition at line 219 of file SegmenterRegionGrowingStrategy.h.