Loading...
Searching...
No Matches
MultiSourceClassifierOutputParameters.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#ifndef __TERRALIB_RP_RADAR_INTERNAL_MULTISOURCECLASSIFIER_OUTPUT_PARAMETERS_H
21#define __TERRALIB_RP_RADAR_INTERNAL_MULTISOURCECLASSIFIER_OUTPUT_PARAMETERS_H
22
23// TerraLib includes
24
25#include "../Config.h"
26#include "../../raster/Raster.h"
27#include "../AlgorithmOutputParameters.h"
28
29// Boost includes
30#include <boost/numeric/ublas/matrix.hpp>
31
32#include <vector>
33#include <string>
34#include <map>
35
36namespace te
37{
38 namespace rp
39 {
40 namespace radar
41 {
42 /*!
43 \class MultiSourceClassifierOutputParameters
44 \brief MultiSourceClassifier output parameters
45 */
47 public:
48 std::string m_rType; //!< Output raster data source type (as described in te::raster::RasterFactory).
49
50 std::map< std::string, std::string > m_outinfo; //!< The necessary information to create the output.
51
52 std::map< std::string, std::string > m_rInfoClassImage; //!< The necessary information to create the output raster for classified image.
53
54 std::unique_ptr< te::rst::Raster > m_outputRasterClassImagePtr; //!< The generated output raster for classified iamge.
55 std::unique_ptr< te::rst::Raster > newRaster; //!< The generated output raster for classified iamge.
56
57 std::map< std::string, std::string > m_rInfoClassImageFuzzy; //!< The necessary information to create the output raster for classified image for Fuzzy.
58
59 std::unique_ptr< te::rst::Raster > m_outputRasterClassImageFuzzyPtr; //!< The generated output raster for classified iamge for Fuzzy.
60
61 std::map< std::string, std::string > m_rInfoMap; //!< The necessary information to create the output raster for reliability map (statistical test).
62
63 std::unique_ptr< te::rst::Raster > m_outputRasterMapPtr; //!< The generated output raster for reliability map (statistical test).
64
65 std::map< std::string, std::string > m_rInfoMapPValue; //!< The necessary information to create the output raster for reliability map (p-value).
66
67 std::unique_ptr< te::rst::Raster > m_outputRasterMapPValuePtr; //!< The generated output raster for reliability map (p-value).
68
69 // std::map< std::string, std::string > m_rInfoConfusionMatrix; //!< The necessary information to create the output statistics file.
70
71 // std::map< std::string, std::string > m_rInfoAttributes; //!< The necessary information to create the output attribute file.
72
73 std::map< std::string, std::string > m_rInfoDistancePerClass; //!< The necessary information to create the output stochastic distance per class file.
74
75 std::map< std::string, std::string > m_rInfoStatisticPerClass; //!< The necessary information to create the output statistic per class file.
76
77 std::map< std::string, std::string > m_rInfoPValuePerClass; //!< The necessary information to create the output p-value per class file.
78
79 unsigned int m_outputRasterBand;
80
81 std::vector< std::vector< unsigned int > > m_confusionMatrix; //!< The confusion matrix.
82
83 double m_kappaCoefficient; //!< The Kappa coefficient.
84
85 double m_varianceOfKappa; //!< The variance of Kappa.
86
87 double m_overallAccuracy; //!< The overall accuracy.
88
89 std::vector< double > m_IDSegment; //!< ID of segments.
90
91 std::vector< double > m_valuesS; //!< Statiscal test values of classification result.
92
93 std::vector< double > m_valuesP; //!< P-values of single source classification result.
94
95 std::vector< double > m_pValuesSum; //!< P-values of sum combination multi-source classification result.
96
97 std::vector< double > m_pValuesMultiplication; //!< P-values of multiplication combination multi-source classification result.
98
99 std::vector< double > m_pValuesMinimum; //!< P-values of minimum combination multi-source classification result.
100
101 std::vector< double > m_distances; //!< Stochastic distance values of classification result.
102
103 std::vector< std::vector< double > > m_outDistancesPerClass; //!< Stochastic distance per class values of classification result.
104
105 std::vector< std::vector< double > > m_outStatisticsPerClass; //!< Statistics per class values of classification result.
106
107 std::vector< std::vector< double > > m_outPValuesPerClass; //!< P-values per class values of classification result.
108
109 std::vector< std::vector< double > > m_bandsFuzzy; //!< The bands values in Fuzzy.
110
111 std::vector< std::vector< double > > m_outAllDistances;
112 std::vector< std::vector< double > > m_outAllStatistics;
113
115
117
119
120 // overload
121 void reset();
122
123 // overload
125
126 // overload
127 AbstractParameters* clone() const;
128 };
129
130 } // end namespace radar
131 } // end namespace rp
132} // end namespace msc
133
134#endif
Raster Processing algorithm output parameters base interface.
const MultiSourceClassifierOutputParameters & operator=(const MultiSourceClassifierOutputParameters &params)
std::unique_ptr< te::rst::Raster > newRaster
The generated output raster for classified iamge.
std::unique_ptr< te::rst::Raster > m_outputRasterMapPtr
The generated output raster for reliability map (statistical test).
std::vector< double > m_valuesP
P-values of single source classification result.
std::map< std::string, std::string > m_rInfoStatisticPerClass
The necessary information to create the output statistic per class file.
std::vector< double > m_valuesS
Statiscal test values of classification result.
std::vector< std::vector< double > > m_outDistancesPerClass
Stochastic distance per class values of classification result.
std::unique_ptr< te::rst::Raster > m_outputRasterClassImageFuzzyPtr
The generated output raster for classified iamge for Fuzzy.
std::map< std::string, std::string > m_rInfoMap
The necessary information to create the output raster for reliability map (statistical test).
std::map< std::string, std::string > m_rInfoClassImageFuzzy
The necessary information to create the output raster for classified image for Fuzzy.
std::vector< double > m_pValuesMultiplication
P-values of multiplication combination multi-source classification result.
std::map< std::string, std::string > m_outinfo
The necessary information to create the output.
std::vector< double > m_pValuesMinimum
P-values of minimum combination multi-source classification result.
std::vector< std::vector< unsigned int > > m_confusionMatrix
The confusion matrix.
MultiSourceClassifierOutputParameters(const MultiSourceClassifierOutputParameters &)
void reset()
Clear all internal allocated resources and reset the parameters instance to its initial state.
std::unique_ptr< te::rst::Raster > m_outputRasterClassImagePtr
The generated output raster for classified iamge.
std::string m_rType
Output raster data source type (as described in te::raster::RasterFactory).
std::vector< double > m_distances
Stochastic distance values of classification result.
std::map< std::string, std::string > m_rInfoPValuePerClass
The necessary information to create the output p-value per class file.
std::map< std::string, std::string > m_rInfoMapPValue
The necessary information to create the output raster for reliability map (p-value).
std::vector< double > m_pValuesSum
P-values of sum combination multi-source classification result.
std::vector< std::vector< double > > m_outPValuesPerClass
P-values per class values of classification result.
std::vector< std::vector< double > > m_bandsFuzzy
The bands values in Fuzzy.
std::map< std::string, std::string > m_rInfoClassImage
The necessary information to create the output raster for classified image.
std::vector< std::vector< double > > m_outStatisticsPerClass
Statistics per class values of classification result.
AbstractParameters * clone() const
Create a clone copy of this instance.
std::unique_ptr< te::rst::Raster > m_outputRasterMapPValuePtr
The generated output raster for reliability map (p-value).
std::map< std::string, std::string > m_rInfoDistancePerClass
The necessary information to create the output stochastic distance per class file.
TerraLib.
#define TERPEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:139