A raster band description. More...
#include <BandProperty.h>
Classes | |
struct | ColorEntry |
An structure to represent a color tuple. More... | |
Public Member Functions | |
BandProperty (const BandProperty &rhs) | |
Copy constructor. | |
BandProperty (std::size_t idx, int t, const std::string &desc=std::string("")) | |
Constructor. | |
int | getType () const |
It returns the data type of the elements in the band. | |
const te::common::UnitOfMeasurePtr & | getUnitOfMeasure () const |
It returns the unit of measure of the values. | |
bool | isComplex () const |
BandProperty & | operator= (const BandProperty &rhs) |
Assignment operator. | |
void | setUnitOfMeasure (te::common::UnitOfMeasurePtr u) |
Sets the unit of measure of the values;. | |
~BandProperty () | |
Destructor. | |
Public Attributes | |
int | m_blkh |
Block height (pixels). | |
int | m_blkw |
Block width (pixels). | |
std::vector< std::string > | m_categoryNames |
Set of categoric names for the values contained in a dimension. | |
ColorInterp | m_colorInterp |
The color interpretation. | |
std::string | m_description |
A description. | |
std::size_t | m_idx |
The band index. | |
double | m_max |
Maximum pixel value (default is std::numeric_limits<double>::max() which means no value set). | |
double | m_mean |
Mean of all pixel values (default is std::numeric_limits<double>::max() which means no value set). | |
std::vector< std::pair< std::string, std::string > > | m_metadata |
A list of metadata where each element consists of a (key, value). | |
double | m_min |
Minimum pixel value (default is std::numeric_limits<double>::max() which means no value set). | |
int | m_nblocksx |
The number of blocks in x. | |
int | m_nblocksy |
The number of blocks in y. | |
double | m_noDataValue |
Value to indicate elements where there is no data, default is std::numeric_limits<double>::max(). | |
std::vector< ColorEntry > | m_palette |
The color palette. | |
PaletteInterpretation | m_paletteInterp |
Pallete interpretation. | |
double | m_stdDev |
Standard deviation of all pixel values (default is std::numeric_limits<double>::max() which means no value set). | |
int | m_type |
The data type of the elements in the band ( See te::dt namespace basic data types for reference ). | |
std::complex< double > | m_valuesOffset |
Offset is the values (real and imaginary) to add to grid values for this sample dimension, default is 0. | |
std::complex< double > | m_valuesScale |
Scale is the values (real and imaginary) which is multiplied to grid values for this sample dimension, default is 1. | |
Protected Attributes | |
te::common::UnitOfMeasurePtr | m_unit |
The unit of values. | |
A raster band description.
The band property describes how to interpret (and use) values that can be associated to each element of a raster, in one given dimension (e.g. a band of multi-hiperspectral remote sensing image). Each instance of this class refers to a particular dimension. This implementation defines a set of information commonly used to describe any raster.
Definition at line 61 of file BandProperty.h.
te::rst::BandProperty::BandProperty | ( | std::size_t | idx, |
int | t, | ||
const std::string & | desc = std::string("") |
||
) |
Constructor.
idx | The band index in the set of bands. |
t | The data type of the band elements. |
desc | The band description. |
te::rst::BandProperty::BandProperty | ( | const BandProperty & | rhs | ) |
Copy constructor.
rhs | The right-hand-side copy that would be used to copy from. |
te::rst::BandProperty::~BandProperty | ( | ) |
Destructor.
|
inline |
It returns the data type of the elements in the band.
Definition at line 113 of file BandProperty.h.
Referenced by te::rst::AbstractBandIterator< T >::AbstractBandIterator(), and te::rst::BandIteratorWindow< T >::BandIteratorWindow().
|
inline |
It returns the unit of measure of the values.
Definition at line 116 of file BandProperty.h.
bool te::rst::BandProperty::isComplex | ( | ) | const |
BandProperty & te::rst::BandProperty::operator= | ( | const BandProperty & | rhs | ) |
Assignment operator.
rhs | The right-hand-side copy that would be used to copy from. |
|
inline |
Sets the unit of measure of the values;.
u | The new unit of measure. |
Definition at line 125 of file BandProperty.h.
int te::rst::BandProperty::m_blkh |
Block height (pixels).
Definition at line 144 of file BandProperty.h.
Referenced by te::rst::AbstractBandIterator< T >::AbstractBandIterator().
int te::rst::BandProperty::m_blkw |
Block width (pixels).
Definition at line 143 of file BandProperty.h.
Referenced by te::rst::AbstractBandIterator< T >::AbstractBandIterator().
std::vector<std::string> te::rst::BandProperty::m_categoryNames |
Set of categoric names for the values contained in a dimension.
Definition at line 139 of file BandProperty.h.
ColorInterp te::rst::BandProperty::m_colorInterp |
The color interpretation.
Definition at line 140 of file BandProperty.h.
std::string te::rst::BandProperty::m_description |
A description.
Definition at line 134 of file BandProperty.h.
std::size_t te::rst::BandProperty::m_idx |
The band index.
Definition at line 132 of file BandProperty.h.
double te::rst::BandProperty::m_max |
Maximum pixel value (default is std::numeric_limits<double>::max() which means no value set).
Definition at line 148 of file BandProperty.h.
double te::rst::BandProperty::m_mean |
Mean of all pixel values (default is std::numeric_limits<double>::max() which means no value set).
Definition at line 149 of file BandProperty.h.
std::vector<std::pair<std::string, std::string> > te::rst::BandProperty::m_metadata |
A list of metadata where each element consists of a (key, value).
Definition at line 135 of file BandProperty.h.
double te::rst::BandProperty::m_min |
Minimum pixel value (default is std::numeric_limits<double>::max() which means no value set).
Definition at line 147 of file BandProperty.h.
int te::rst::BandProperty::m_nblocksx |
The number of blocks in x.
Definition at line 145 of file BandProperty.h.
Referenced by te::rst::AbstractBandIterator< T >::AbstractBandIterator().
int te::rst::BandProperty::m_nblocksy |
The number of blocks in y.
Definition at line 146 of file BandProperty.h.
Referenced by te::rst::AbstractBandIterator< T >::AbstractBandIterator(), te::rst::BandIterator< T >::end(), te::rst::BandIteratorWithMask< T >::end(), te::rst::BandIteratorWindow< T >::end(), and te::rst::ConstBandIterator< T >::end().
double te::rst::BandProperty::m_noDataValue |
Value to indicate elements where there is no data, default is std::numeric_limits<double>::max().
Definition at line 136 of file BandProperty.h.
std::vector<ColorEntry> te::rst::BandProperty::m_palette |
The color palette.
Definition at line 142 of file BandProperty.h.
PaletteInterpretation te::rst::BandProperty::m_paletteInterp |
Pallete interpretation.
Definition at line 141 of file BandProperty.h.
double te::rst::BandProperty::m_stdDev |
Standard deviation of all pixel values (default is std::numeric_limits<double>::max() which means no value set).
Definition at line 150 of file BandProperty.h.
int te::rst::BandProperty::m_type |
The data type of the elements in the band ( See te::dt namespace basic data types for reference ).
Definition at line 133 of file BandProperty.h.
|
protected |
The unit of values.
Definition at line 154 of file BandProperty.h.
std::complex<double> te::rst::BandProperty::m_valuesOffset |
Offset is the values (real and imaginary) to add to grid values for this sample dimension, default is 0.
Definition at line 137 of file BandProperty.h.
std::complex<double> te::rst::BandProperty::m_valuesScale |
Scale is the values (real and imaginary) which is multiplied to grid values for this sample dimension, default is 1.
Definition at line 138 of file BandProperty.h.