Raster segmenter strategy base class.
More...
#include <SegmenterStrategy.h>
|
virtual 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)=0 throw ( te::rp::Exception ) |
| Executes the segmentation strategy over region delimited by the given block. More...
|
|
virtual BlocksMergingMethod | getBlocksMergingMethod () const =0 |
| Return the strategy blocks merging method. More...
|
|
virtual double | getMemUsageEstimation (const unsigned int bandsToProcess, const unsigned int pixelsNumber) const =0 |
| Returns a memory estimation (bytes). More...
|
|
virtual unsigned int | getOptimalBlocksOverlapSize () const =0 |
| Returns a optimal blocks overlap size (number of border pixels overlapped between blocks, under one direction). More...
|
|
virtual bool | initialize (SegmenterStrategyParameters const *const strategyParams)=0 throw ( te::rp::Exception ) |
| Initialize the segmentation strategy. More...
|
|
virtual void | reset ()=0 |
| Clear all internal allocated resources and go back to the initial not-initialized state. More...
|
|
virtual bool | shouldComputeMinMaxValues () const =0 |
| Returns if the min and max pixel values should be computed. More...
|
|
virtual | ~SegmenterStrategy () |
|
Raster segmenter strategy base class.
Definition at line 46 of file SegmenterStrategy.h.
Blocks merging method.
Enumerator |
---|
NoMerging |
No merging.
|
GradientMerging |
Gradient Merging.
|
Definition at line 52 of file SegmenterStrategy.h.
virtual te::rp::SegmenterStrategy::~SegmenterStrategy |
( |
| ) |
|
|
virtual |
te::rp::SegmenterStrategy::SegmenterStrategy |
( |
| ) |
|
|
protected |
virtual bool te::rp::SegmenterStrategy::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 |
| ) | | |
|
pure 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
Implemented in te::rp::SegmenterRegionGrowingBaatzStrategy, te::rp::SegmenterRegionGrowingMeanStrategy, and te::rp::SegmenterDummyStrategy.
virtual double te::rp::SegmenterStrategy::getMemUsageEstimation |
( |
const unsigned int |
bandsToProcess, |
|
|
const unsigned int |
pixelsNumber |
|
) |
| const |
|
pure virtual |
virtual unsigned int te::rp::SegmenterStrategy::getOptimalBlocksOverlapSize |
( |
| ) |
const |
|
pure virtual |
virtual bool te::rp::SegmenterStrategy::initialize |
( |
SegmenterStrategyParameters const *const |
strategyParams | ) |
|
throw | ( | te::rp::Exception |
| ) | | |
|
pure virtual |
virtual void te::rp::SegmenterStrategy::reset |
( |
| ) |
|
|
pure virtual |
virtual bool te::rp::SegmenterStrategy::shouldComputeMinMaxValues |
( |
| ) |
const |
|
pure virtual |
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_master/terralib5/src/terralib/rp/SegmenterStrategy.h