Dummy strategy (just for testing purposes). More...
#include <SegmenterDummyStrategy.h>
Public Types | |
| enum | BlocksMergingMethod { NoMerging = 0, GradientMerging = 1 } |
| Blocks merging method. More... | |
Public Member Functions | |
| 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... | |
| SegmenterDummyStrategy () | |
| bool | shouldComputeMinMaxValues () const |
| Returns if the min and max pixel values should be computed. More... | |
| ~SegmenterDummyStrategy () | |
Protected Member Functions | |
| void | setErrorMessage (const std::string &newErrorMessage) |
| Set the current error message. More... | |
Dummy strategy (just for testing purposes).
Definition at line 41 of file SegmenterDummyStrategy.h.
|
inherited |
Blocks merging method.
| Enumerator | |
|---|---|
| NoMerging |
No merging. |
| GradientMerging |
Gradient Merging. |
Definition at line 52 of file SegmenterStrategy.h.
|
default |
|
default |
|
virtual | ||||||||||||||||||||||||||||||||||||||||||||||||||||
Executes the segmentation strategy over region delimited by the given block.
| 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. |
Implements te::rp::SegmenterStrategy.
Definition at line 54 of file SegmenterDummyStrategy.cpp.
|
virtual |
Return the strategy blocks merging method.
Implements te::rp::SegmenterStrategy.
Definition at line 163 of file SegmenterDummyStrategy.cpp.
References te::rp::SegmenterStrategy::GradientMerging.
|
inherited |
Return the current error message if there is any.
Definition at line 45 of file SegmenterStrategy.cpp.
References te::rp::SegmenterStrategy::m_errorMessage.
|
virtual |
Returns a memory estimation (bytes).
This parameter is used by the segmenter to guess the sub-image blocks size.
| bandsToProcess | The number of input raster bands that will be processed at the strategy execution time. |
| pixelsNumber | The number of pixels. |
Implements te::rp::SegmenterStrategy.
Definition at line 147 of file SegmenterDummyStrategy.cpp.
|
virtual |
Returns a optimal blocks overlap size (number of border pixels overlapped between blocks, under one direction).
Implements te::rp::SegmenterStrategy.
Definition at line 153 of file SegmenterDummyStrategy.cpp.
|
virtual | ||||||||||||||
Initialize the segmentation strategy.
| strategyParams | A pointer to the user given specific segmentation strategy parameters ou NULL if no parameters are present. |
Implements te::rp::SegmenterStrategy.
Definition at line 43 of file SegmenterDummyStrategy.cpp.
|
virtual |
Clear all internal allocated resources and go back to the initial not-initialized state.
Reimplemented from te::rp::SegmenterStrategy.
Definition at line 49 of file SegmenterDummyStrategy.cpp.
References te::rp::SegmenterStrategy::reset().
|
protectedinherited |
Set the current error message.
| newErrorMessage | New error message; |
Definition at line 50 of file SegmenterStrategy.cpp.
References te::rp::SegmenterStrategy::m_errorMessage.
|
virtual |
Returns if the min and max pixel values should be computed.
Implements te::rp::SegmenterStrategy.
Definition at line 158 of file SegmenterDummyStrategy.cpp.