26 #ifndef __TERRALIB_CLASSIFICATION_INTERNAL_DUMMY_H
27 #define __TERRALIB_CLASSIFICATION_INTERNAL_DUMMY_H
30 #include "../common/AbstractParameters.h"
31 #include "../geometry/Coord2D.h"
32 #include "../geometry/Envelope.h"
33 #include "../geometry/Point.h"
34 #include "../geometry/Polygon.h"
35 #include "../raster/Grid.h"
52 template<
class TTRAIN,
class TCLASSIFY>
90 bool train(TTRAIN& itBegin, TTRAIN& itEnd,
91 const std::vector<unsigned int>& attributesIndices,
92 const std::vector<unsigned int>& labels,
93 const bool enableProgressInterface) ;
95 bool classify(TCLASSIFY& itBegin, TCLASSIFY& itEnd,
96 const std::vector<unsigned int>& attributesIndices,
97 std::vector<unsigned int>& classification,
98 const bool enableProgressInterface) ;
109 template <
class TTRAIN,
class TCLASSIFY>
115 template <
class TTRAIN,
class TCLASSIFY>
120 template <
class TTRAIN,
class TCLASSIFY>
130 template <
class TTRAIN,
class TCLASSIFY>
133 m_dummyParameter = 0;
136 template <
class TTRAIN,
class TCLASSIFY>
143 template <
class TTRAIN,
class TCLASSIFY>
149 template <
class TTRAIN,
class TCLASSIFY>
154 template <
class TTRAIN,
class TCLASSIFY>
163 TE_TR(
"The value of dummy must be at least 2.");
172 template<
class TTRAIN,
class TCLASSIFY>
174 const std::vector<unsigned int>& attributesIndices,
175 const std::vector<unsigned int>& labels,
176 const bool enableProgressInterface)
181 template<
class TTRAIN,
class TCLASSIFY>
183 const std::vector<unsigned int>& attributesIndices,
184 std::vector<unsigned int>& classification,
185 const bool enableProgressInterface)
187 TCLASSIFY it = itBegin;
#define TE_TR(message)
It marks a string in order to get translated.
void reset()
Clear all internal allocated resources and reset the parameters instance to its initial state.
const Parameters & operator=(const Parameters ¶ms)
unsigned int m_dummyParameter
A dummy parameter.
AbstractParameters * clone() const
Create a clone copy of this instance.
Dummy classifier (just for testing purposes).
bool m_isInitialized
True if this instance is initialized.
Parameters m_parameters
Internal execution parameters.
bool classify(TCLASSIFY &itBegin, TCLASSIFY &itEnd, const std::vector< unsigned int > &attributesIndices, std::vector< unsigned int > &classification, const bool enableProgressInterface)
bool train(TTRAIN &itBegin, TTRAIN &itEnd, const std::vector< unsigned int > &attributesIndices, const std::vector< unsigned int > &labels, const bool enableProgressInterface)
bool initialize(const Parameters ¶ms)
Abstract parameters base interface.
AbstractParameters()
Constructor.
Proxy configuration file for TerraView (see terraview_config.h).
An exception class for the XML module.