Baatz based Segments merger.  
 More...
#include <SegmenterRegionGrowingBaatzMerger.h>
 | 
| void  | getTouchingEdgeLength (const unsigned int &colStart1, const unsigned int &rowStart1, const unsigned int &colBound1, const unsigned int &rowBound1, const unsigned int &colStart2, const unsigned int &rowStart2, const unsigned int &colBound2, const unsigned int &rowBound2, const SegmenterSegmentsBlock::SegmentIdDataType &id1, const SegmenterSegmentsBlock::SegmentIdDataType &id2, unsigned int &touchingEdgeLength) const | 
|   | Returns the count of points from region 1 (with ID1) touching the region 2 (with ID2).  More...
  | 
|   | 
Baatz based Segments merger. 
Definition at line 45 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  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ createMergeData()
◆ 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.  | 
    | mergeDataPtr | A pointer to a valid merge data where the merged features values will be stored (when aplicable) or a null pointer.  | 
  
   
- 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()
  
  
      
        
          | void te::rp::SegmenterRegionGrowingBaatzMerger::getTouchingEdgeLength  | 
          ( | 
          const unsigned int &  | 
          colStart1,  | 
         
        
           | 
           | 
          const unsigned int &  | 
          rowStart1,  | 
         
        
           | 
           | 
          const unsigned int &  | 
          colBound1,  | 
         
        
           | 
           | 
          const unsigned int &  | 
          rowBound1,  | 
         
        
           | 
           | 
          const unsigned int &  | 
          colStart2,  | 
         
        
           | 
           | 
          const unsigned int &  | 
          rowStart2,  | 
         
        
           | 
           | 
          const unsigned int &  | 
          colBound2,  | 
         
        
           | 
           | 
          const unsigned int &  | 
          rowBound2,  | 
         
        
           | 
           | 
          const SegmenterSegmentsBlock::SegmentIdDataType &  | 
          id1,  | 
         
        
           | 
           | 
          const SegmenterSegmentsBlock::SegmentIdDataType &  | 
          id2,  | 
         
        
           | 
           | 
          unsigned int &  | 
          touchingEdgeLength  | 
         
        
           | 
          ) | 
           |  const | 
         
       
   | 
  
protected   | 
  
 
Returns the count of points from region 1 (with ID1) touching the region 2 (with ID2). 
- Parameters
 - 
  
    | colStart1 | The upper left X of the bounding box surrounding region 1.  | 
    | rowStart1 | The upper left Y of the bounding box surrounding region 1.  | 
    | colBound1 | The lower right X bound of the bounding box surrounding region 1.  | 
    | rowBound1 | The lower right Y bound of the bounding box surrounding region 1.  | 
    | colStart2 | The upper left X of the bounding box surrounding region 2.  | 
    | rowStart2 | The upper left Y of the bounding box surrounding region 2.  | 
    | colBound2 | The lower right X bound of the bounding box surrounding region 2.  | 
    | rowBound2 | The lower right Y bound of the bounding box surrounding region 21.  
  | 
    | id1 | Region 1 ID.  | 
    | id2 | Region 2 ID.  | 
    | touchingEdgeLength | The touching edge length.  | 
  
   
- Note
 - The internal m_segmentsIdsMatrix will be used. 
 
 
 
◆ mergeFeatures()
Merge specific segment features from both segments into the first segment. 
- Parameters
 - 
  
    | segment1Ptr | The first segment.  | 
    | segment2Ptr | A pointer to the second segment.  | 
    | mergeDataPtr | A pointer to a valid merge data where the merged features will be read (when aplicable) or a null pointer..  | 
  
   
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_dirsColOffsVecPtr
  
  
      
        
          | int* te::rp::SegmenterRegionGrowingBaatzMerger::m_dirsColOffsVecPtr | 
         
       
   | 
  
mutableprotected   | 
  
 
 
◆ m_dirsRowOffsVecPtr
  
  
      
        
          | int* te::rp::SegmenterRegionGrowingBaatzMerger::m_dirsRowOffsVecPtr | 
         
       
   | 
  
mutableprotected   | 
  
 
 
◆ m_getDissimilarity_hColor
◆ m_getDissimilarity_hCompact
◆ m_getDissimilarity_heightUnionD
◆ m_getDissimilarity_hForm
◆ m_getDissimilarity_hSmooth
◆ m_getDissimilarity_meanUnion
◆ m_getDissimilarity_mergeDataPtr
  
  
      
        
          | MergeData* te::rp::SegmenterRegionGrowingBaatzMerger::m_getDissimilarity_mergeDataPtr | 
         
       
   | 
  
mutableprotected   | 
  
 
 
◆ 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_touchingEdgeLength
  
  
      
        
          | unsigned int te::rp::SegmenterRegionGrowingBaatzMerger::m_getDissimilarity_touchingEdgeLength | 
         
       
   | 
  
mutableprotected   | 
  
 
 
◆ m_getDissimilarity_widthUnionD
◆ m_getTouchingEdgeLength_col
  
  
      
        
          | int te::rp::SegmenterRegionGrowingBaatzMerger::m_getTouchingEdgeLength_col | 
         
       
   | 
  
mutableprotected   | 
  
 
 
◆ m_getTouchingEdgeLength_row
  
  
      
        
          | int te::rp::SegmenterRegionGrowingBaatzMerger::m_getTouchingEdgeLength_row | 
         
       
   | 
  
mutableprotected   | 
  
 
 
◆ m_getTouchingEdgeLength_seg1ColStart
  
  
      
        
          | int te::rp::SegmenterRegionGrowingBaatzMerger::m_getTouchingEdgeLength_seg1ColStart | 
         
       
   | 
  
mutableprotected   | 
  
 
 
◆ m_getTouchingEdgeLength_seg1RowStart
  
  
      
        
          | int te::rp::SegmenterRegionGrowingBaatzMerger::m_getTouchingEdgeLength_seg1RowStart | 
         
       
   | 
  
mutableprotected   | 
  
 
 
◆ m_mergeFeatures_mergeDataPtr
  
  
      
        
          | MergeData const* te::rp::SegmenterRegionGrowingBaatzMerger::m_mergeFeatures_mergeDataPtr | 
         
       
   | 
  
mutableprotected   | 
  
 
 
◆ m_segmentFeaturesSize
  
  
      
        
          | unsigned int te::rp::SegmenterRegionGrowingBaatzMerger::m_segmentFeaturesSize | 
         
       
   | 
  
protected   | 
  
 
 
◆ m_segmentsIdsMatrix
◆ m_segmentsIdsMatrixNCols
  
  
      
        
          | unsigned int te::rp::SegmenterRegionGrowingBaatzMerger::m_segmentsIdsMatrixNCols | 
         
       
   | 
  
protected   | 
  
 
 
◆ m_segmentsIdsMatrixNRows
  
  
      
        
          | unsigned int te::rp::SegmenterRegionGrowingBaatzMerger::m_segmentsIdsMatrixNRows | 
         
       
   | 
  
protected   | 
  
 
 
◆ m_update_band
  
  
      
        
          | unsigned int te::rp::SegmenterRegionGrowingBaatzMerger::m_update_band | 
         
       
   | 
  
protected   | 
  
 
 
◆ 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: