25 #ifndef __TERRALIB_RP_INTERNAL_CLASSIFIERISOSEGSTRATEGY_H
26 #define __TERRALIB_RP_INTERNAL_CLASSIFIERISOSEGSTRATEGY_H
37 #include <boost/numeric/ublas/matrix.hpp>
77 void reset() throw( te::rp::Exception );
80 AbstractParameters* clone() const;
102 Pattern(
int i,
double a, std::vector<double> mv, boost::numeric::ublas::matrix<double> cm);
118 void add(Pattern* p);
121 double getDistance(Pattern* p);
124 bool operator=(Pattern& rhs);
141 bool initialize(
StrategyParameters const*
const strategyParams)
throw(te::rp::Exception);
144 bool execute(
const te::rst::Raster& inputRaster,
const std::vector<unsigned int>& inputRasterBands,
145 const std::vector<te::gm::Polygon*>& inputPolygons,
te::rst::Raster& outputRaster,
146 const unsigned int outputRasterBand,
const bool enableProgressInterface)
throw(te::rp::Exception);
152 std::multimap<double, Pattern*, std::greater<double> >
m_regions;
177 #endif // __TERRALIB_RP_INTERNAL_CLASSIFIERISOSEGSTRATEGY_H
Raster ISOSeg Classifier strategy factory.
boost::numeric::ublas::matrix< double > m_covarianceInversion
The inversion of covariance matrix between bands.
Defines the exact sequence of characters that are acceptable.
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.
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.
Raster strategy parameters base class.
#define TERPEXPORT
You can use this macro in order to export/import classes and functions from this module.
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...
Raster classifier strategy base class.
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).
boost::numeric::ublas::matrix< double > m_covarianceMatrix
The covariance matrix between bands.