25 #ifndef __TERRALIB_RP_INTERNAL_CLASSIFIERISOSEGSTRATEGY_H
26 #define __TERRALIB_RP_INTERNAL_CLASSIFIERISOSEGSTRATEGY_H
37 #include <boost/numeric/ublas/matrix.hpp>
75 void reset() throw( te::rp::Exception );
78 AbstractParameters* clone() const;
100 Pattern(
int i,
double a, std::vector<std::complex<double> > mv, boost::numeric::ublas::matrix<double> cm);
116 void add(Pattern* p);
119 double getDistance(Pattern* p);
122 bool operator=(Pattern& rhs);
139 bool initialize(
StrategyParameters const*
const strategyParams)
throw(te::rp::Exception);
142 bool execute(
const te::rst::Raster& inputRaster,
const std::vector<unsigned int>& inputRasterBands,
143 const std::vector<te::gm::Polygon*>& inputPolygons,
te::rst::Raster& outputRaster,
144 const unsigned int outputRasterBand,
const bool enableProgressInterface)
throw(te::rp::Exception);
150 std::multimap<double, Pattern*, std::greater<double> >
m_regions;
175 #endif // __TERRALIB_RP_INTERNAL_CLASSIFIERISOSEGSTRATEGY_H
double m_acceptanceThreshold
The acceptance threshold (the closer to 100%, few clusters are created).
double m_area
The area of all regions inside a pattern.
Raster strategy parameters base class.
Describes a region or a cluster (group of regions with similar properties) to be used by ISOSeg metho...
boost::numeric::ublas::matrix< double > m_covarianceMatrix
The covariance matrix between bands.
std::vector< std::complex< double > > m_meanVector
The vector of mean values, 1 value per band;.
Defines the exact sequence of characters that are acceptable.
Pattern * m_myCluster
The associated cluster of this pattern (optional).
Raster classifier strategy base class.
boost::numeric::ublas::matrix< double > m_covarianceInversion
The inversion of covariance matrix between bands.
Raster classifier strategy factory base class.
std::multimap< double, Pattern *, std::greater< double > > m_regions
A descriptive set of regions (area, features).
bool m_isInitialized
True if this instance is initialized.
int m_id
The id of the region of the pattern.
Configuration flags for the Raster Processing module of TerraLib.
ClassifierISOSegStrategy::Parameters m_parameters
Internal execution parameters.
An abstract class for raster data strucutures.
Raster ISOSeg Classifier strategy factory.
Raster classifier strategy base class.
Raster classifier strategy factory base class.
#define TERPEXPORT
You can use this macro in order to export/import classes and functions from this module.
ISOSeg strategy for OBIA classification. The algorithm orders regions by area (larger first)...