te::rst::BandProperty Class Reference

A raster band description. More...

#include <BandProperty.h>

Classes

struct  ColorEntry
 An structure to represent a color tuple. More...
 

Public Member Functions

 BandProperty (std::size_t idx, int t, const std::string &desc=std::string(""))
 Constructor. More...
 
 BandProperty (const BandProperty &rhs)
 Copy constructor. More...
 
int getType () const
 It returns the data type of the elements in the band. More...
 
const te::common::UnitOfMeasurePtrgetUnitOfMeasure () const
 It returns the unit of measure of the values. More...
 
bool isComplex () const
 
BandPropertyoperator= (const BandProperty &rhs)
 Assignment operator. More...
 
void setUnitOfMeasure (te::common::UnitOfMeasurePtr u)
 Sets the unit of measure of the values;. More...
 
 ~BandProperty ()
 Destructor. More...
 

Public Attributes

int m_blkh
 Block height (pixels). More...
 
int m_blkw
 Block width (pixels). More...
 
std::vector< std::string > m_categoryNames
 Set of categoric names for the values contained in a dimension. More...
 
ColorInterp m_colorInterp
 The color interpretation. More...
 
std::string m_description
 A description. More...
 
std::size_t m_idx
 The band index. More...
 
std::vector< std::pair< std::string, std::string > > m_metadata
 A list of metadata where each element consists of a (key, value). More...
 
int m_nblocksx
 The number of blocks in x. More...
 
int m_nblocksy
 The number of blocks in y. More...
 
double m_noDataValue
 Value to indicate elements where there is no data, default is std::numeric_limits<double>::max(). More...
 
std::vector< ColorEntrym_palette
 The color palette. More...
 
PaletteInterpretation m_paletteInterp
 Pallete interpretation. More...
 
int m_type
 The data type of the elements in the band. More...
 
std::complex< double > m_valuesOffset
 Offset is the values (real and imaginary) to add to grid values for this sample dimension, default is 0. More...
 
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. More...
 

Protected Attributes

te::common::UnitOfMeasurePtr m_unit
 The unit of values. More...
 

Detailed Description

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.

See also
RasterProperty, Raster, Band

Definition at line 61 of file BandProperty.h.

Constructor & Destructor Documentation

te::rst::BandProperty::BandProperty ( std::size_t  idx,
int  t,
const std::string &  desc = std::string("") 
)

Constructor.

Parameters
idxThe band index in the set of bands.
tThe data type of the band elements.
descThe band description.

Definition at line 35 of file BandProperty.cpp.

te::rst::BandProperty::BandProperty ( const BandProperty rhs)

Copy constructor.

Parameters
rhsThe right-hand-side copy that would be used to copy from.

Definition at line 51 of file BandProperty.cpp.

te::rst::BandProperty::~BandProperty ( )

Destructor.

Definition at line 71 of file BandProperty.cpp.

Member Function Documentation

int te::rst::BandProperty::getType ( ) const
inline
const te::common::UnitOfMeasurePtr& te::rst::BandProperty::getUnitOfMeasure ( ) const
inline

It returns the unit of measure of the values.

Definition at line 116 of file BandProperty.h.

bool te::rst::BandProperty::isComplex ( ) const
te::rst::BandProperty & te::rst::BandProperty::operator= ( const BandProperty rhs)

Assignment operator.

Parameters
rhsThe right-hand-side copy that would be used to copy from.
Returns
A reference to this object.

Definition at line 75 of file BandProperty.cpp.

References m_blkh, m_blkw, m_categoryNames, m_colorInterp, m_description, m_idx, m_metadata, m_nblocksx, m_nblocksy, m_noDataValue, m_palette, m_paletteInterp, m_type, m_unit, m_valuesOffset, and m_valuesScale.

void te::rst::BandProperty::setUnitOfMeasure ( te::common::UnitOfMeasurePtr  u)
inline

Sets the unit of measure of the values;.

Parameters
uThe new unit of measure.
Note
The object does not take the ownership of the unit.

Definition at line 125 of file BandProperty.h.

Referenced by te::gdal::GetBandProperty().

Member Data Documentation

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.

Referenced by operator=(), and te::qt::widgets::LayerPropertiesInfo::setLayerRasterProperties().

std::string te::rst::BandProperty::m_description
std::size_t te::rst::BandProperty::m_idx

The band index.

Definition at line 132 of file BandProperty.h.

Referenced by te::gdal::GetBandProperty(), operator=(), and te::serialize::xml::Save().

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.

Referenced by operator=().

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.

Referenced by te::grib::Band::Band(), te::sa::KernelOperation::buildRaster(), te::rp::GeoMosaic::calcBandStatistics(), te::rp::TiePointsMosaic::calcBandStatistics(), te::rp::SequenceMosaic::calcBandStatistics(), te::rst::Band::callOperator(), terralib4::Convert2T5(), te::rp::ConvertIHS2RGB(), te::rp::ConvertRGB2IHS(), te::rst::CropRaster(), te::mem::ExpansibleRaster::dummyFillAllBlocks(), te::rp::ArithmeticOperations::execBinaryOperatorRasterXRaster(), te::rp::ArithmeticOperations::execBinaryOperatorRasterXReal(), te::rp::GeoMosaic::execute(), te::rp::Register::execute(), te::rp::ArithmeticOperations::execute(), te::rp::TiePointsMosaic::execute(), te::rp::MixtureModel::execute(), te::rp::SequenceMosaic::execute(), te::rp::Segmenter::execute(), te::gdal::GetBandProperty(), te::rp::GetCovarianceValue(), te::rp::GetCovarianceValueThread(), te::rp::RasterAttributes::getGLCM(), te::rp::GetMeanValueThread(), te::pgis::Transactor::getRasterInfo(), te::rp::IHSFusion::getRGBRange(), te::rp::GetStdDevValueThread(), te::rp::Blender::initialize(), te::rst::Interpolator::initialize(), te::rp::IHSFusion::loadIHSData(), te::rp::PCAFusion::loadRessampledRaster(), operator=(), te::serialize::xml::ReadBandProperty(), te::rp::RemapValues(), te::rp::RemapValuesThread(), te::rp::Filter::RobertsFilter(), te::attributefill::VectorToRaster::run(), te::serialize::xml::Save(), te::qt::widgets::LayerPropertiesInfo::setLayerRasterProperties(), te::rp::Filter::SobelFilter(), te::rp::PCAFusion::swapBandByHighResRaster(), and te::rst::Vectorizer::Vectorizer().

std::vector<ColorEntry> te::rst::BandProperty::m_palette

The color palette.

Definition at line 142 of file BandProperty.h.

Referenced by terralib4::Convert2T5(), and operator=().

PaletteInterpretation te::rst::BandProperty::m_paletteInterp

Pallete interpretation.

Definition at line 141 of file BandProperty.h.

Referenced by operator=(), and te::qt::widgets::LayerPropertiesInfo::setLayerRasterProperties().

te::common::UnitOfMeasurePtr te::rst::BandProperty::m_unit
protected

The unit of values.

Definition at line 150 of file BandProperty.h.

Referenced by operator=().

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.

Referenced by terralib4::Convert2T5(), te::gdal::GetBandProperty(), and operator=().

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.

Referenced by te::gdal::GetBandProperty(), and operator=().


The documentation for this class was generated from the following files: