25 #ifndef __TERRALIB_RP_INTERNAL_SEGMENTERREGIONGROWINGBAATZSTRATEGY_H
26 #define __TERRALIB_RP_INTERNAL_SEGMENTERREGIONGROWINGBAATZSTRATEGY_H
86 AbstractParameters*
clone()
const;
107 const std::vector< unsigned int >& inputRasterBands,
108 const std::vector< std::complex< double > >& inputRasterNoDataValues,
109 const std::vector< std::complex< double > >& inputRasterBandMinValues,
110 const std::vector< std::complex< double > >& inputRasterBandMaxValues,
112 const unsigned int outputRasterBand,
113 const bool enableProgressInterface );
117 const unsigned int pixelsNumber )
const;
166 const std::vector< unsigned int >& inputRasterBands,
167 const std::vector< std::complex< double > >& inputRasterNoDataValues,
168 const std::vector< std::complex< double > >& inputRasterBandMinValues,
169 const std::vector< std::complex< double > >& inputRasterBandMaxValues,
Segmenter merger used in region growing process.
Raster segmenter strategy factory base class.
Raster segmenter strategy base class.
Segmenter segments IDs manager.
Raster region growing segmenter strategy factory.
~SegmenterRegionGrowingBaatzStrategyFactory()
SegmenterRegionGrowingBaatzStrategyFactory()
te::rp::SegmenterStrategy * build()
Concrete factories (derived from this one) must implement this method in order to create objects.
double m_colorWeight
The weight given to the color component, deafult:0.9, valid range: [0,1].
void reset()
Clear all internal allocated resources and reset the parameters instance to its initial state.
AbstractParameters * clone() const
Create a clone copy of this instance.
double m_compactnessWeight
The weight given to the compactness component, deafult:0.5, valid range: [0,1].
std::vector< double > m_bandsWeights
The weight given to each band, when applicable (note: the bands weights sum must always be 1) or an e...
const Parameters & operator=(const Parameters ¶ms)
bool serialize(AlgorithmParametersSerializer &serializer) const
Returns a parameter serialization object.
Raster region growing segmenter strategy.
bool initialize(SegmenterStrategyParameters const *const strategyParams)
Initialize the segmentation strategy.
double getMemUsageEstimation(const unsigned int bandsToProcess, const unsigned int pixelsNumber) const
Returns a memory estimation (bytes).
bool m_isInitialized
true if this instance is initialized.
bool initializeSegments(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, SegmenterRegionGrowingSegment< rg::BaatzFeatureType > **actSegsListHeadPtr)
Initialize the segment objects container and the segment IDs container.
Matrix< SegmenterSegmentsBlock::SegmentIdDataType > SegmentsIdsMatrixT
Internal segments ids matrix type definition.
SegmentsIdsMatrixT m_segmentsIdsMatrix
A internal segments IDs matrix that can be reused on each strategy execution.
~SegmenterRegionGrowingBaatzStrategy()
void reset()
Clear all internal allocated resources and go back to the initial not-initialized state.
unsigned int getOptimalBlocksOverlapSize() const
Returns a optimal blocks overlap size (number of border pixels overlapped between blocks,...
SegmenterRegionGrowingSegmentsPool< rg::BaatzFeatureType > m_segmentsPool
A pool of segments that can be reused on each strategy execution.
BlocksMergingMethod getBlocksMergingMethod() const
Return the strategy blocks merging method.
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)
Executes the segmentation strategy over region delimited by the given block.
bool shouldComputeMinMaxValues() const
Returns if the min and max pixel values should be computed.
SegmenterRegionGrowingBaatzStrategy::Parameters m_parameters
Internal execution parameters.
SegmenterRegionGrowingBaatzStrategy()
Segmenter Region Growing Strategy Parameters.
Segmenter segments block description class.
Raster segmenter strategy factory base class.
Segmenter Strategy Parameters.
Raster segmenter strategy base class.
BlocksMergingMethod
Blocks merging method.
An abstract class for raster data strucutures.
#define TERPEXPORT
You can use this macro in order to export/import classes and functions from this module.
Proxy configuration file for TerraView (see terraview_config.h).