Baatz based Segments merger.
More...
#include <SegmenterRegionGrowingBaatzMerger.h>
Baatz based Segments merger.
Definition at line 44 of file SegmenterRegionGrowingBaatzMerger.h.
◆ SegmenterRegionGrowingBaatzMerger()
| te::rp::SegmenterRegionGrowingBaatzMerger::SegmenterRegionGrowingBaatzMerger |
( |
const double & |
colorWeight, |
|
|
const double & |
compactnessWeight, |
|
|
const std::vector< double > & |
bandsWeights, |
|
|
const SegmentsIdsMatrixT & |
segmentsIds |
|
) |
| |
Default constructor.
- Parameters
-
| bandsWeights | A reference to an external valid structure where each bands weight are stored. |
| segmentsIds | //!< A reference to an external valid structure where all segments IDs are stored. |
| segmentsMatrix | //!< A reference to an external valid segments matrix. |
| colorWeight | //!< The weight given to the color component, deafult:0.5, valid range: [0,1]. |
| compactnessWeight | //!< The weight given to the compactness component, deafult:0.5, valid range: [0,1]. |
◆ ~SegmenterRegionGrowingBaatzMerger()
| te::rp::SegmenterRegionGrowingBaatzMerger::~SegmenterRegionGrowingBaatzMerger |
( |
| ) |
|
◆ getDissimilarity()
Returns a dimilarity index between this and the other segment.
- Parameters
-
| 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). |
- Returns
- A similarity index between this and the other segment ( normalized between 0 and 1 ).
Implements te::rp::SegmenterRegionGrowingMerger< rg::BaatzFeatureType >.
◆ getSegmentFeaturesSize()
| unsigned int te::rp::SegmenterRegionGrowingBaatzMerger::getSegmentFeaturesSize |
( |
| ) |
const |
|
inlinevirtual |
◆ getTouchingEdgeLength()
Returns the count of points from region 1 (with ID1) touching the region 2 (with ID2).
- Parameters
-
| segsIds | The segment ids container. |
| xStart | The upper left X of the bounding box surrounding both regions. |
| yStart | The upper left Y of the bounding box surrounding both regions. |
| xBound | The lower right X bound of the bounding box surrounding both regions. |
| yBound | The lower right Y bound of the bounding box surrounding both regions. |
| id1 | Region 1 ID. |
| id2 | Region 2 ID. |
| edgeLength1 | The touching edge length for the region 1. |
| edgeLength2 | The touching edge length for the region 2. |
- Returns
- Returns the count of points from region 1 (with ID1) touching the region 2 (with ID2).
◆ mergeFeatures()
Merge specific segment features from both segments into the first segment.
- Parameters
-
| 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::SegmenterRegionGrowingMerger< rg::BaatzFeatureType >.
◆ update()
◆ m_allSegsCompactnessGain
◆ m_allSegsCompactnessOffset
◆ m_allSegsSmoothnessGain
◆ m_allSegsSmoothnessOffset
◆ m_allSegsStdDevGain
◆ m_allSegsStdDevOffset
◆ m_bandsNumber
| unsigned int te::rp::SegmenterRegionGrowingBaatzMerger::m_bandsNumber |
|
protected |
◆ m_bandsWeights
◆ m_colorWeight
◆ m_compactnessWeight
◆ m_getDissimilarity_hColor
◆ m_getDissimilarity_hCompact
◆ m_getDissimilarity_hForm
◆ m_getDissimilarity_hSmooth
◆ m_getDissimilarity_meanUnion
◆ m_getDissimilarity_sizeSeg1D
◆ m_getDissimilarity_sizeSeg2D
◆ m_getDissimilarity_sizeUnionD
◆ m_getDissimilarity_squaresSumUnion
◆ m_getDissimilarity_stdDevUnion
◆ m_getDissimilarity_sumsIdx
| unsigned int te::rp::SegmenterRegionGrowingBaatzMerger::m_getDissimilarity_sumsIdx |
|
mutableprotected |
◆ m_getDissimilarity_sumUnion
◆ m_getDissimilarity_touchingEdgeLength1
| unsigned int te::rp::SegmenterRegionGrowingBaatzMerger::m_getDissimilarity_touchingEdgeLength1 |
|
mutableprotected |
◆ m_getDissimilarity_touchingEdgeLength2
| unsigned int te::rp::SegmenterRegionGrowingBaatzMerger::m_getDissimilarity_touchingEdgeLength2 |
|
mutableprotected |
◆ m_segmentsIds
◆ m_update_band
| unsigned int te::rp::SegmenterRegionGrowingBaatzMerger::m_update_band |
|
mutableprotected |
◆ m_update_compactnessMax
◆ m_update_compactnessMin
◆ m_update_currentActSegPtr
◆ m_update_featuresPtr
◆ m_update_smoothnessMax
◆ m_update_smoothnessMin
◆ m_update_stdDevMax
◆ m_update_stdDevMin
◆ m_update_stdDevPtr
The documentation for this class was generated from the following file: