25 #ifndef __TERRALIB_RP_INTERNAL_CLASSIFIERISOSEGSTRATEGY_H
26 #define __TERRALIB_RP_INTERNAL_CLASSIFIERISOSEGSTRATEGY_H
37 #include <boost/numeric/ublas/matrix.hpp>
75 BhattacharyyaDistanceType
92 AbstractParameters* clone() const;
114 Pattern(
int i,
double a, std::vector<double> mv, boost::numeric::ublas::matrix<double> cm);
121 Pattern(Pattern& rhs);
126 double getMahalanobisDistance(Pattern
const *
const p)
const;
132 double getBhattacharyyaDistance(Pattern
const *
const p)
const;
135 bool operator=(Pattern& rhs);
166 bool execute(
const te::rst::Raster& inputRaster,
const std::vector<unsigned int>& inputRasterBands,
167 const std::vector<te::gm::Polygon*>& inputPolygons,
te::rst::Raster& outputRaster,
168 const unsigned int outputRasterBand,
const bool enableProgressInterface)
throw(te::rp::Exception);
171 std::vector< int > getOutputDataTypes()
const;
177 std::multimap<double, Pattern*, std::greater<double> >
m_regions;
202 #endif // __TERRALIB_RP_INTERNAL_CLASSIFIERISOSEGSTRATEGY_H
unsigned int m_getBhattacharyyaDistance_bandIdx
Raster ISOSeg Classifier strategy factory.
double m_getBhattacharyyaDistance_covsMegeDet
Base exception class for plugin module.
boost::numeric::ublas::matrix< double > m_getBhattacharyyaDistance_distanceTerm1
boost::numeric::ublas::matrix< double > m_covarianceInversion
The inversion of covariance matrix between bands.
double m_getBhattacharyyaDistance_distanceValue
boost::numeric::ublas::matrix< double > m_getBhattacharyyaDistance_meansDif
std::multimap< double, Pattern *, std::greater< double > > m_regions
A descriptive set of regions (area, features).
boost::numeric::ublas::matrix< double > m_getBhattacharyyaDistance_covsMege
bool m_isInitialized
True if this instance is initialized.
boost::numeric::ublas::matrix< double > m_getBhattacharyyaDistance_covsMegeInv
Raster classifier strategy factory base class.
ISOSeg strategy for OBIA classification. The algorithm orders regions by area (larger first)...
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.
Mahalanobis Distance Type.
DistanceType m_distanceType
Distance type.
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...
Classifier Strategy Parameters.
Raster classifier strategy base class.
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).
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.