25 #ifndef __TERRALIB_RP_INTERNAL_CLASSIFIERMAXLIKELIHOODSTRATEGY_H 26 #define __TERRALIB_RP_INTERNAL_CLASSIFIERMAXLIKELIHOODSTRATEGY_H 32 #include "../classification/MaxLikelihood.h" 33 #include "../classification/Adaptors.h" 35 #include <boost/shared_ptr.hpp> 95 AbstractParameters* clone() const;
108 unsigned int getOutputNumberBands(
void);
112 bool m_isInitialized;
118 te::cl::MaxLikelihood m_genClassInstance;
127 bool applyICM( std::unique_ptr<
te::rp::
Matrix<
unsigned int > >& matrixPtr,
128 const
unsigned int classifiedMatrixNoDataValue,
129 std::
string& errorMessage ) const;
138 bool getICMBeta( const
te::rp::
Matrix<
unsigned int >& matrix,
139 const
unsigned int matrixNoDataValue,
140 double& betaValue, std::
string& errorMessage ) const;
151 double rtbis(
double (*func) (
double x,
double *param),
double *param) const;
153 static
double plikehood_2(
double ,
double * );
155 static
double plikehood_3(
double ,
double * );
157 static
double plikehood_4(
double ,
double * );
159 static
double sigmo(
double a );
165 static
void Estimacao_geral(
double *term, const
te::rp::
Matrix<
unsigned int >& matrix );
167 static
int compara_uchar_vesre(const
void *x, const
void *y);
192 #endif // __TERRALIB_RP_INTERNAL_CLASSIFIERMAXLIKELIHOODSTRATEGY_H std::map< ClassIDT, ClassSamplesContainerT > MClassesSamplesCT
Multi-classes samples container type definition.
Base exception class for plugin module.
A maximum likelihood estimation strategy for classification (a.k.a. MaxVer in portuguese).
unsigned int ClassIDT
Class ID type definition (zero means invalid ID).
std::vector< ClassSampleT > ClassSamplesContainerT
Class samples container type definition.
Raster classifier strategy factory base class.
boost::shared_ptr< MClassesSamplesCT > MClassesSamplesCTPtr
A shared pointer to a multi classes samples container type definition.
#define TERPEXPORT
You can use this macro in order to export/import classes and functions from this module.
std::vector< double > ClassSampleT
Class sample type definition.
Raster classifier strategy factory base class.
Maximum a posteriori probability strategy factory.
Configuration flags for the Raster Processing module of TerraLib.
Classifier Strategy Parameters.
Raster classifier strategy base class.
A generic template matrix.
bool m_applyICM
Apply a Iterated conditional modes iteractive filtering (default:false);.
float m_icmChangesThreshold
Minimum porcentage of number of pixel that changes from one iteration to the other [valid values rang...
Raster classifier strategy base class.
unsigned int m_icmMaxIterations
Maximum number of ICM iterations to perform (default 10).
MClassesSamplesCTPtr m_trainSamplesPtr
A shared pointer to a always-valid structure where trainning samples are stored.