Loading...
Searching...
No Matches
RadarFunctions.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/radar/RadarFunctions.h
22 \brief Radar Raster Processing functions.
23 */
24
25#ifndef __TERRALIB_RP_RADAR_INTERNAL_FUNCTIONS_H
26#define __TERRALIB_RP_RADAR_INTERNAL_FUNCTIONS_H
27
28#include "../Config.h"
31
32#include "../../geometry/Polygon.h"
33
34#include <string>
35#include <vector>
36
37namespace te
38{
39 namespace rp
40 {
41 namespace radar
42 {
43 /*!
44 \brief Load a sample file (SHP or TXT).
45 \param loadedNumberOfClasses Number of classes.
46 \param loadedClassesID Classes IDs.
47 \param loadedNameOfSamples Sample names.
48 \param loadedNumberOfSamples Samples namber.
49 \param loadedSamples Samples.
50 \param loadedPolygons Loaded Polygons.
51 \return true if OK, false on errors.
52 \ingroup rp_radar_func
53 */
55 const std::string& fileName,
56 unsigned int& loadedNumberOfClasses,
57 std::vector< unsigned int > loadedClassesID,
58 std::vector< std::string >& loadedNameOfSamples,
59 std::vector< int >& loadedNumberOfSamples,
60 std::vector< std::vector< double > >& loadedSamples,
61 std::vector< te::gm::Polygon >& loadedPolygons );
62
63 /*!
64 \brief Save all output files.
65 \param inputParameters Input parameters used by the executed algorithm.
66 \param outputParameters Output parameters generated by the executed algorithm.
67 \param reportFileName Report file name (or an empty string) (confusion matrix and Kappa coefficient, i.e. ).
68 \param modelImage ???
69 \return true if OK, false on errors.
70 \ingroup rp_radar_func
71 */
73 const MultiSourceClassifierInputParameters& inputParameters,
74 const MultiSourceClassifierOutputParameters& outputParameters,
75 const std::string& reportFileName
76 );
77
78 /*!
79 \brief Save all output files.
80 \param inputParameters Input parameters used by the executed algorithm.
81 \param outputParameters Output parameters generated by the executed algorithm.
82 \param reportFileName Report file name (or an empty string) (confusion matrix and Kappa coefficient, i.e. ).
83 \param exportStatData If true Stats data will be generated.
84 \param exportPValuesData If true PValues data will be generated.
85 \param exportDistData If true Dist data will be generated.
86 \return true if OK, false on errors.
87 \ingroup rp_radar_func
88 */
90 const MultiSourceClassifierInputParameters& inputParameters,
91 const MultiSourceClassifierOutputParameters& outputParameters,
92 const bool exportStatData,
93 const bool exportPValuesData,
94 const bool exportDistData,
95 const std::string& attributesFileName );
96 } // end namespace radar
97 } // end namespace rp
98} // end namespace msc
99
100#endif // __TERRALIB_RP_RADAR_INTERNAL_FUNCTIONS_H
101
bool TERPEXPORT SaveOutputReportFile(const MultiSourceClassifierInputParameters &inputParameters, const MultiSourceClassifierOutputParameters &outputParameters, const std::string &reportFileName)
Save all output files.
bool TERPEXPORT LoadSamplesFile(const std::string &fileName, unsigned int &loadedNumberOfClasses, std::vector< unsigned int > loadedClassesID, std::vector< std::string > &loadedNameOfSamples, std::vector< int > &loadedNumberOfSamples, std::vector< std::vector< double > > &loadedSamples, std::vector< te::gm::Polygon > &loadedPolygons)
Load a sample file (SHP or TXT).
bool TERPEXPORT SaveOutputAttFile(const MultiSourceClassifierInputParameters &inputParameters, const MultiSourceClassifierOutputParameters &outputParameters, const bool exportStatData, const bool exportPValuesData, const bool exportDistData, const std::string &attributesFileName)
Save all output files.
TerraLib.
#define TERPEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:139