Loading...
Searching...
No Matches
BandSummary.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/raster/BandSummary.h
22
23 \brief A struct that can be used to keep the summary of a raster band (most statistics).
24*/
25
26#ifndef __TERRALIB_RASTER_INTERNAL_BANDSUMMARY_H
27#define __TERRALIB_RASTER_INTERNAL_BANDSUMMARY_H
28
29// TerraLib
30#include "Config.h"
31
32// STL
33#include <complex>
34#include <map>
35
36namespace te
37{
38 namespace rst
39 {
40 /*!
41 \struct BandSummary
42
43 \brief A summary of a raster band (most statistics).
44
45 \ingroup rst
46 */
48 {
49 public:
50
51 /*! \brief Constructor. */
53
54 /*!
55 \brief Copy constructor.
56
57 \param rhs The right-hand-side copy used to copy from.
58 */
60
61 /*! \brief Destructor. */
63
64 /*!
65 \brief Assignment operator.
66
67 \param rhs The right-hand-side copy used to copy from.
68
69 \return A reference to this object.
70 */
72
73 /*! \brief Clears all attributes from this class. */
74 void clear();
75
76 public:
77
78 std::complex<double>* m_minVal; //!< The minimum occurring values (real and imaginary), default is std::numeric_limits<double>::min().
79 std::complex<double>* m_maxVal; //!< The maximum occurring values (real and imaginary), default is std::numeric_limits<double>::max().
80 std::complex<double>* m_stdVal; //!< The standard deviation of the occurring values (real and imaginary), default is 1.0.
81 std::complex<double>* m_meanVal; //!< The mean of the occurring values (real and imaginary), default is 0.0.
82 std::map<double, unsigned int>* m_histogramR; //!< The histogram (a map of occurring values and frequency) of the real part of a band.
83 std::map<double, unsigned int>* m_histogramI; //!< The histogram (a map of occurring values and frequency) of the imaginary part of a band.
84 };
85
86 } // end namespace rst
87} // end namespace te
88
89#endif // __TERRALIB_RASTER_INTERNAL_BANDSUMMARY_H
TerraLib.
A summary of a raster band (most statistics).
Definition: BandSummary.h:48
std::map< double, unsigned int > * m_histogramR
The histogram (a map of occurring values and frequency) of the real part of a band.
Definition: BandSummary.h:82
BandSummary(const BandSummary &rhs)
Copy constructor.
BandSummary()
Constructor.
std::map< double, unsigned int > * m_histogramI
The histogram (a map of occurring values and frequency) of the imaginary part of a band.
Definition: BandSummary.h:83
~BandSummary()
Destructor.
void clear()
Clears all attributes from this class.
std::complex< double > * m_meanVal
The mean of the occurring values (real and imaginary), default is 0.0.
Definition: BandSummary.h:81
std::complex< double > * m_maxVal
The maximum occurring values (real and imaginary), default is std::numeric_limits<double>::max().
Definition: BandSummary.h:79
std::complex< double > * m_stdVal
The standard deviation of the occurring values (real and imaginary), default is 1....
Definition: BandSummary.h:80
BandSummary & operator=(const BandSummary &rhs)
Assignment operator.
std::complex< double > * m_minVal
The minimum occurring values (real and imaginary), default is std::numeric_limits<double>::min().
Definition: BandSummary.h:78
#define TERASTEREXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:63
Proxy configuration file for TerraView (see terraview_config.h).