Loading...
Searching...
No Matches
ClassifierISODataStrategy.h
Go to the documentation of this file.
1/* Copyright (C) 2008 National Institute For Space Research (INPE) - Brazil.
2
3 This file is part of the TerraLib - a Framework for building GIS enabled applications.
4
5 TerraLib is free software: you can redistribute it and/or modify
6 it under the terms of the GNU Lesser General Public License as published by
7 the Free Software Foundation, either version 3 of the License,
8 or (at your option) any later version.
9
10 TerraLib is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public License
16 along with TerraLib. See COPYING. If not, write to
17 TerraLib Team at <terralib-team@terralib.org>.
18 */
19
20/*!
21 \file terralib/rp/ClassifierISODataStrategy.h
22
23 \brief ISOData strategy for image classification.
24*/
25
26#ifndef __TERRALIB_RP_INTERNAL_CLASSIFIERISODATASTRATEGY_H
27#define __TERRALIB_RP_INTERNAL_CLASSIFIERISODATASTRATEGY_H
28
29#include "Config.h"
30#include "ClassifierStrategy.h"
32
34
35namespace te
36{
37 namespace rp
38 {
39 /*!
40 \class ClassifierISODataStrategy
41
42 \note Based on Reference: IsoData Algorithm - Pattern Recognition Principles - Rafael Gonzalez, Julius T. Tou - Addison Wesley Publishing Company - 1974.
43 \note Avaliable metadata: CLUSTERS_LABELS a semicolon-separated list of clusters lables.
44 \note Avaliable metadata: CLUSTERS_SIZES a semicolon-separated list of clusters sizes (following the same order as the CLUSTERS_LABELS metadata).
45 \note Avaliable metadata: CLUSTERS_MEANS a semicolon-separated list of clusters means (following the same order as the CLUSTERS_LABELS metadata).
46
47 \ingroup rp_class
48 */
50 {
51 public:
52
53 /*!
54 \class Parameters
55
56 \brief Classifier Parameters
57 */
59 {
60 public:
61
62 /*!
63 \brief Generic Classifier Parameters.
64 */
66
68
70
71 //overload
72 const Parameters& operator=(const Parameters& params);
73
74 //overload
75 void reset() _NOEXCEPT_OP(false);
76
77 //overload
79 };
80
81 public:
82
84
86
87 //overload
88 bool initialize(ClassifierStrategyParameters const* const strategyParams) _NOEXCEPT_OP(false);
89
90 //overload
91 bool execute() _NOEXCEPT_OP(false);
92
93 protected:
94
95 bool m_isInitialized; //!< True if this instance is initialized.
96 ClassifierISODataStrategy::Parameters m_parameters; //!< Internal execution parameters.
97 te::cl::ISOData m_genericClassifierInstance; //!< Internal generic classifier instance.
98
99 };
100
101 /*!
102 \class ClassifierISODataStrategyFactory
103
104 \brief Raster ISOData Classifier strategy factory.
105
106 \note Factory key: RegionGrowing
107 */
119
120 } // end namespace rp
121} // end namespace te
122
123#endif // __TERRALIB_RP_INTERNAL_CLASSIFIERISODATASTRATEGY_H
124
Raster classifier strategy factory base class.
Raster classifier strategy base class.
ISOData strategy for classification.
#define _NOEXCEPT_OP(x)
Classifier Parameters.
Definition ISOData.h:60
te::rp::ClassifierStrategy * build()
Concrete factories (derived from this one) must implement this method in order to create objects.
const Parameters & operator=(const Parameters &params)
void reset() _NOEXCEPT_OP(false)
Clear all internal allocated resources and reset the parameters instance to its initial state.
AbstractParameters * clone() const
Create a clone copy of this instance.
te::cl::ISOData::Parameters m_parameters
Generic Classifier Parameters.
ClassifierISODataStrategy::Parameters m_parameters
Internal execution parameters.
bool m_isInitialized
True if this instance is initialized.
te::cl::ISOData m_genericClassifierInstance
Internal generic classifier instance.
bool execute() _NOEXCEPT_OP(false)
Executes the classification strategy.
bool initialize(ClassifierStrategyParameters const *const strategyParams) _NOEXCEPT_OP(false)
Initialize the classification strategy.
ClassifierStrategyFactory(const std::string &factoryKey)
Raster classifier strategy base class.
ClassifierStrategy()
Default constructor.
Namespace for classification module of TerraLib.
Namespace for Raster Processing module of TerraLib.
TerraLib.
Configuration flags for the Raster Processing module of TerraLib.
#define TERPEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition Config.h:139