25 #ifndef __TERRALIB_RP_INTERNAL_CLASSIFIERISOSEGSTRATEGY_H 26 #define __TERRALIB_RP_INTERNAL_CLASSIFIERISOSEGSTRATEGY_H 32 #include "../raster/RasterSynchronizer.h" 38 #include <condition_variable> 41 #include <boost/numeric/ublas/matrix.hpp> 79 BhattacharyyaDistanceType
96 AbstractParameters* clone() const;
130 Pattern(
int i,
double a, std::vector<double> mv, boost::numeric::ublas::matrix<double> cm);
142 double getMahalanobisDistance(
Pattern const *
const p)
const;
148 double getBhattacharyyaDistance(
Pattern const *
const p)
const;
231 double getThreshold(
const double acceptanceThreshold,
const unsigned nBands)
const;
244 static void printMatrix(
const boost::numeric::ublas::matrix<double>& matrix);
269 #endif // __TERRALIB_RP_INTERNAL_CLASSIFIERISOSEGSTRATEGY_H unsigned int m_getBhattacharyyaDistance_bandIdx
TEDATAACCESSEXPORT te::da::Expression * operator<(const te::da::Expression &e1, const te::da::Expression &e2)
Raster ISOSeg Classifier strategy factory.
double m_getBhattacharyyaDistance_covsMegeDet
Base exception class for plugin module.
boost::numeric::ublas::matrix< double > m_getBhattacharyyaDistance_distanceTerm1
~FillRegionsThreadEntryParams()
boost::numeric::ublas::matrix< double > m_covarianceInversion
The inversion of covariance matrix between bands.
std::size_t * m_nextInputPolIdx2ProcessPtr
Pointer to variable pointing the next polygon index to process.
double m_getBhattacharyyaDistance_distanceValue
std::mutex * m_condVarMutexPtr
Pointer to the condition variable mutex.
boost::numeric::ublas::matrix< double > m_getBhattacharyyaDistance_meansDif
TEDATAACCESSEXPORT te::da::Expression * operator==(const te::da::Expression &e1, const te::da::Expression &e2)
An access synchronizer to be used in SynchronizedRaster raster instances.
boost::numeric::ublas::matrix< double > m_getBhattacharyyaDistance_covsMege
std::vector< te::gm::Polygon * > const * m_inputPolygonsPtr
FillRegionsThreadEntryParams()
bool m_isInitialized
True if this instance is initialized.
boost::numeric::ublas::matrix< double > m_getBhattacharyyaDistance_covsMegeInv
The parameters passed to the fill regions thread entry.
bool m_enableProgress
Pointer to variable pointing the variable to enable or disable the thread internal progress interface...
std::vector< unsigned int > const * m_inputRasterBandsPtr
Pointer to the input raster bands do be processed.
te::rst::RasterSynchronizer * m_inputRasterSyncPtr
Pointer to the input raster sync.
Raster classifier strategy factory base class.
ISOSeg strategy for OBIA classification. The algorithm orders regions by area (larger first)...
#define TERPEXPORT
You can use this macro in order to export/import classes and functions from this module.
Mahalanobis Distance Type.
DistanceType m_distanceType
Distance type.
std::condition_variable * m_condVarPtr
Pointer to the condition variable.
Raster classifier strategy factory base class.
int m_id
The id of the region of the pattern.
Configuration flags for the Raster Processing module of TerraLib.
Describes a region or a cluster (group of regions with similar properties) to be used by ISOSeg metho...
bool * m_continueProcessingFlagPtr
Pointer to variable pointing the variable to allow the process to continue.
unsigned int * m_runningThreadsCounterPtr
Pointer to variable pointing the current number of running threads.
Classifier Strategy Parameters.
Raster classifier strategy base class.
std::multimap< double, Pattern > * m_outputRegionsPtr
Pointer to the output regions container.
unsigned int m_getBhattacharyyaDistance_nBands
ClassifierISOSegStrategy::Parameters m_parameters
Internal execution parameters.
double m_area
The area of all regions inside a pattern.
std::vector< double > m_meanVector
The vector of mean values, 1 value per band;.
Raster classifier strategy base class.
double m_acceptanceThreshold
The acceptance threshold (the closer to 100%, few clusters are created).
std::mutex * m_globalMutexPtr
Pointer to the mutex.
Pattern * m_myCluster
The associated cluster of this pattern (optional).
double m_covarianceMatrixDet
The covariance matrix determinant.
boost::numeric::ublas::matrix< double > m_covarianceMatrix
The covariance matrix between bands.