25 #ifndef __TERRALIB_RP_INTERNAL_SEGMENTER_H 26 #define __TERRALIB_RP_INTERNAL_SEGMENTER_H 35 #include "../raster/RasterSynchronizer.h" 36 #include "../common/progress/TaskProgress.h" 117 void setSegStrategyParams(
134 AbstractParameters* clone() const;
172 AbstractParameters* clone() const;
189 bool isInitialized() const;
275 bool calcBestBlockSize(
276 const unsigned int minExapandedBlockPixels,
277 const unsigned int maxExapandedBlockPixels,
278 unsigned int& blocksHOverlapSize,
279 unsigned int& blocksVOverlapSize,
280 unsigned int& nonExpandedBlockWidth,
281 unsigned int& nonExpandedBlockHeight,
282 unsigned int& expandedBlockWidth,
283 unsigned int& expandedBlockHeight )
const;
302 bool genImageHCutOffProfile(
const unsigned int profileCenter,
304 const std::vector< unsigned int >& inRasterBands,
305 const unsigned int pixelNeighborhoodSize,
306 const unsigned int tileNeighborhoodSize,
307 const unsigned int profileAntiSmoothingFactor,
308 std::vector< unsigned int>& profile )
const;
321 bool genImageVCutOffProfile(
const unsigned int profileCenter,
323 const std::vector< unsigned int >& inRasterBands,
324 const unsigned int pixelNeighborhoodSize,
325 const unsigned int tileNeighborhoodSize,
326 const unsigned int profileAntiSmoothingFactor,
327 std::vector< unsigned int>& profile )
const;
336 bool updateBlockCutOffProfiles(
337 const std::vector< std::vector< unsigned int> >& imageHorizontalProfiles,
338 const std::vector< std::vector< unsigned int> >& imageVerticalProfiles,
341 bool createCutOffLinesTiff(
342 const std::vector< std::vector< unsigned int> >& imageHorizontalProfiles,
343 const std::vector< unsigned int >& imageHorizontalProfilesCenterLines,
344 const std::vector< std::vector< unsigned int> >& imageVerticalProfiles,
345 const std::vector< unsigned int >& imageVerticalProfilesCenterLines,
346 const std::string& filename );
bool m_instanceInitialized
Segmenter segments IDs manager.
std::vector< std::complex< double > > m_inputRasterNoDataValues
A vector of values to be used as input raster no-data values.
std::string * m_threadErrorMessagePtr
A pointer to a string where the thread error message will be stored.
Segmenter Output Parameters.
SegmenterIdsManager * m_segmentsIdsManagerPtr
Pointer to the segments Ids manager - (default 0).
Base exception class for plugin module.
boost::mutex * m_blockProcessedSignalMutexPtr
Pointer to the mutex used by the block processed signal (default:0).
Raster Processing algorithm output parameters base interface.
std::string m_rType
Output raster data source type (as described in te::raster::RasterFactory ).
The parameters passed to the Segmenter::segmenterthreadEntry method.
An access synchronizer to be used in SynchronizedRaster raster instances.
Raster Processing algorithm base interface class.
bool volatile * m_abortSegmentationFlagPtr
Pointer to the abort segmentation flag (default:0).
Segmenter Strategy Parameters.
Raster Processing algorithm base interface.
Segmenter::InputParameters m_inputParameters
Segmenter execution parameters.
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.
te::rst::RasterSynchronizer * m_inputRasterSyncPtr
Pointer to the input raster synchronizer (default:0).
Segmenter::OutputParameters * m_outputParametersPtr
A pointer to the global segmenter input execution parameters (default:0).
unsigned int m_maxInputRasterCachedBlocks
The maximum number of input raster cached blocks per-thread.
std::vector< std::complex< double > > m_inputRasterBandMaxValues
A vector of input raster bands maximum values.
Raster segmenter strategy base class.
std::map< std::string, std::string > m_rInfo
The necessary information to create the raster (as described in te::raster::RasterFactory).
Configuration flags for the Raster Processing module of TerraLib.
bool m_enableStrategyProgress
Enable/Disable the segmentation strategy to use its own progress interface (default:false).
Raster segmenter strategy parameters base class.
A generic template matrix.
SegmentsBlocksMatrixT * m_segsBlocksMatrixPtr
Pointer to the segments blocks matrix (default:0).
Segmenter segments block description class.
boost::condition_variable * m_blockProcessedSignalPtr
Pointer to a signal to be emited when a segments block was processed (default:0). ...
boost::mutex * m_generalMutexPtr
Pointer to a general global mutex (default:0).
te::rst::RasterSynchronizer * m_outputRasterSyncPtr
Pointer to the output raster synchronizer (default:0).
std::unique_ptr< te::rst::Raster > m_outputRasterPtr
A pointer the ge generated output raster (label image).
unsigned int volatile * m_runningThreadsCounterPtr
Pointer to the running threads counter - default 0).
std::vector< std::complex< double > > m_inputRasterBandMinValues
A vector of input raster bands minimum values.
Segmenter::InputParameters m_inputParameters
The global segmenter input execution parameters.