Raster region growing segmenter strategy.  
 More...
#include <SegmenterRegionGrowingBaatzStrategy.h>
 | 
| bool  | execute (SegmenterIdsManager &segmenterIdsManager, const te::rp::SegmenterSegmentsBlock &block2ProcessInfo, const te::rst::Raster &inputRaster, const std::vector< unsigned int > &inputRasterBands, const std::vector< std::complex< double > > &inputRasterNoDataValues, const std::vector< std::complex< double > > &inputRasterBandMinValues, const std::vector< std::complex< double > > &inputRasterBandMaxValues, te::rst::Raster &outputRaster, const unsigned int outputRasterBand, const bool enableProgressInterface)  throw ( te::rp::Exception ) | 
|   | Executes the segmentation strategy over region delimited by the given block.  More...
  | 
|   | 
| BlocksMergingMethod  | getBlocksMergingMethod () const | 
|   | Return the strategy blocks merging method.  More...
  | 
|   | 
| const std::string &  | getErrorMessage () const | 
|   | Return the current error message if there is any.  More...
  | 
|   | 
| double  | getMemUsageEstimation (const unsigned int bandsToProcess, const unsigned int pixelsNumber) const | 
|   | Returns a memory estimation (bytes).  More...
  | 
|   | 
| unsigned int  | getOptimalBlocksOverlapSize () const | 
|   | Returns a optimal blocks overlap size (number of border pixels overlapped between blocks, under one direction).  More...
  | 
|   | 
| bool  | initialize (SegmenterStrategyParameters const *const strategyParams)  throw ( te::rp::Exception ) | 
|   | Initialize the segmentation strategy.  More...
  | 
|   | 
| void  | reset () | 
|   | Clear all internal allocated resources and go back to the initial not-initialized state.  More...
  | 
|   | 
|   | SegmenterRegionGrowingBaatzStrategy () | 
|   | 
| bool  | shouldComputeMinMaxValues () const | 
|   | Returns if the min and max pixel values should be computed.  More...
  | 
|   | 
|   | ~SegmenterRegionGrowingBaatzStrategy () | 
|   | 
Raster region growing segmenter strategy. 
Definition at line 52 of file SegmenterRegionGrowingBaatzStrategy.h.
 
◆ SegmentsIdsMatrixT
◆ BlocksMergingMethod
Blocks merging method. 
| Enumerator | 
|---|
| NoMerging  | No merging.  
 | 
| GradientMerging  | Gradient Merging.  
 | 
Definition at line 52 of file SegmenterStrategy.h.
 
 
◆ ~SegmenterRegionGrowingBaatzStrategy()
      
        
          | te::rp::SegmenterRegionGrowingBaatzStrategy::~SegmenterRegionGrowingBaatzStrategy  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ SegmenterRegionGrowingBaatzStrategy()
      
        
          | te::rp::SegmenterRegionGrowingBaatzStrategy::SegmenterRegionGrowingBaatzStrategy  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ execute()
  
  
      
        
          | bool te::rp::SegmenterRegionGrowingBaatzStrategy::execute  | 
          ( | 
          SegmenterIdsManager &  | 
          segmenterIdsManager,  | 
         
        
           | 
           | 
          const te::rp::SegmenterSegmentsBlock &  | 
          block2ProcessInfo,  | 
         
        
           | 
           | 
          const te::rst::Raster &  | 
          inputRaster,  | 
         
        
           | 
           | 
          const std::vector< unsigned int > &  | 
          inputRasterBands,  | 
         
        
           | 
           | 
          const std::vector< std::complex< double > > &  | 
          inputRasterNoDataValues,  | 
         
        
           | 
           | 
          const std::vector< std::complex< double > > &  | 
          inputRasterBandMinValues,  | 
         
        
           | 
           | 
          const std::vector< std::complex< double > > &  | 
          inputRasterBandMaxValues,  | 
         
        
           | 
           | 
          te::rst::Raster &  | 
          outputRaster,  | 
         
        
           | 
           | 
          const unsigned int  | 
          outputRasterBand,  | 
         
        
           | 
           | 
          const bool  | 
          enableProgressInterface  | 
         
        
           | 
          ) | 
           |  | 
         
        
          | throw  | ( | te::rp::Exception | 
         
        
           | ) |  |  | 
         
       
   | 
  
virtual   | 
  
 
Executes the segmentation strategy over region delimited by the given block. 
- Parameters
 - 
  
    | segmenterIdsManager | The segments IDs manager to be used when acquiring/releaseing unique segment IDs.  | 
    | block2ProcessInfo | The information about the block of raster that must be processed.  | 
    | inputRaster | Input raster.  | 
    | inputRasterBands | Input raster bands.  | 
    | inputRasterNoDataValues | A vector of values to be used as input raster no-data values.  | 
    | inputRasterBandMinValues | The minimum value present on each band.  | 
    | inputRasterBandMinValues | The maximum value present on each band.  | 
    | outputRaster | Output raster.  | 
    | outputRasterBand | Output raster band.  | 
    | enableProgressInterface | Enable the internal strategy to update the progress interface.  | 
  
   
- Returns
 - true if OK, false on errors. 
 
- Note
 - The used gaind/ofset calcule: new_value = ( old_value + offset ) * gain 
 
Implements te::rp::SegmenterStrategy.
 
 
◆ getBlocksMergingMethod()
  
  
      
        
          | BlocksMergingMethod te::rp::SegmenterRegionGrowingBaatzStrategy::getBlocksMergingMethod  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
virtual   | 
  
 
 
◆ getErrorMessage()
  
  
      
        
          | const std::string& te::rp::SegmenterStrategy::getErrorMessage  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inherited   | 
  
 
Return the current error message if there is any. 
- Returns
 - Return the current error message if there is any. 
 
 
 
◆ getMemUsageEstimation()
  
  
      
        
          | double te::rp::SegmenterRegionGrowingBaatzStrategy::getMemUsageEstimation  | 
          ( | 
          const unsigned int  | 
          bandsToProcess,  | 
         
        
           | 
           | 
          const unsigned int  | 
          pixelsNumber  | 
         
        
           | 
          ) | 
           |  const | 
         
       
   | 
  
virtual   | 
  
 
Returns a memory estimation (bytes). 
This parameter is used by the segmenter to guess the sub-image blocks size. 
- Parameters
 - 
  
    | bandsToProcess | The number of input raster bands that will be processed at the strategy execution time.  | 
    | pixelsNumber | The number of pixels.  | 
  
   
- Returns
 - A positive memory use estimation. 
 
Implements te::rp::SegmenterStrategy.
 
 
◆ getOptimalBlocksOverlapSize()
  
  
      
        
          | unsigned int te::rp::SegmenterRegionGrowingBaatzStrategy::getOptimalBlocksOverlapSize  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
virtual   | 
  
 
Returns a optimal blocks overlap size (number of border pixels overlapped between blocks, under one direction). 
- Note
 - This value will be used in the case where the image is splitted into blocks for segmentation. 
 
- Returns
 - The blocks overlap size. 
 
Implements te::rp::SegmenterStrategy.
 
 
◆ initialize()
  
  
      
        
          | bool te::rp::SegmenterRegionGrowingBaatzStrategy::initialize  | 
          ( | 
          SegmenterStrategyParameters const *const  | 
          strategyParams | ) | 
           | 
         
        
          | throw  | ( | te::rp::Exception | 
         
        
           | ) |  |  | 
         
       
   | 
  
virtual   | 
  
 
Initialize the segmentation strategy. 
- Parameters
 - 
  
    | strategyParams | A pointer to the user given specific segmentation strategy parameters ou NULL if no parameters are present.  | 
  
   
- Returns
 - true if OK, false on errors. 
 
Implements te::rp::SegmenterStrategy.
 
 
◆ initializeSegments()
Initialize the segment objects container and the segment IDs container. 
- Parameters
 - 
  
    | segmenterIdsManager | A segments ids manager to acquire unique segments ids.  | 
    | block2ProcessInfo | Info about the block to process.  | 
    | inputRaster | The input raster.  | 
    | inputRasterBands | Input raster bands to use.  | 
    | inputRasterNoDataValues | A vector of values to be used as input raster no-data values.  | 
    | inputRasterBandMinValues | The minimum value present on each band.  | 
    | inputRasterBandMinValues | The maximum value present on each band.  
 | 
    | actSegsListHeadPtr | A pointer the the active segments list head or a null points if no segments were initialized (entire image with no data, i.e.).  | 
  
   
- Returns
 - true if OK, false on errors. 
 
 
 
◆ reset()
  
  
      
        
          | void te::rp::SegmenterRegionGrowingBaatzStrategy::reset  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
virtual   | 
  
 
Clear all internal allocated resources and go back to the initial not-initialized state. 
Reimplemented from te::rp::SegmenterStrategy.
 
 
◆ setErrorMessage()
  
  
      
        
          | void te::rp::SegmenterStrategy::setErrorMessage  | 
          ( | 
          const std::string &  | 
          newErrorMessage | ) | 
           | 
         
       
   | 
  
protectedinherited   | 
  
 
Set the current error message. 
- Parameters
 - 
  
    | newErrorMessage | New error message;  | 
  
   
 
 
◆ shouldComputeMinMaxValues()
  
  
      
        
          | bool te::rp::SegmenterRegionGrowingBaatzStrategy::shouldComputeMinMaxValues  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
virtual   | 
  
 
Returns if the min and max pixel values should be computed. 
- Returns
 - True if min and max values should be computed. False otherwise. 
 
Implements te::rp::SegmenterStrategy.
 
 
◆ m_isInitialized
  
  
      
        
          | bool te::rp::SegmenterRegionGrowingBaatzStrategy::m_isInitialized | 
         
       
   | 
  
protected   | 
  
 
 
◆ m_parameters
◆ m_segmentsIdsMatrix
◆ m_segmentsPool
The documentation for this class was generated from the following file: