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::UnitOfMeasurePtr & | getUnitOfMeasure () const |
| It returns the unit of measure of the values. More... | |
| bool | isComplex () const |
| BandProperty & | operator= (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... | |
| double | m_max |
| Maximum pixel value (default is std::numeric_limits<double>::max() which means no value set). More... | |
| double | m_mean |
| Mean of all pixel values (default is std::numeric_limits<double>::max() which means no value set). More... | |
| std::vector< std::pair< std::string, std::string > > | m_metadata |
| A list of metadata where each element consists of a (key, value). More... | |
| double | m_min |
| Minimum pixel value (default is std::numeric_limits<double>::max() which means no value set). 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< ColorEntry > | m_palette |
| The color palette. More... | |
| PaletteInterpretation | m_paletteInterp |
| Pallete interpretation. More... | |
| double | m_stdDev |
| Standard deviation of all pixel values (default is std::numeric_limits<double>::max() which means no value set). More... | |
| int | m_type |
| The data type of the elements in the band ( See te::dt namespace basic data types for reference ). 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... | |
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. |
Definition at line 35 of file BandProperty.cpp.
References ~BandProperty().
|
default |
Copy constructor.
| rhs | The right-hand-side copy that would be used to copy from. |
|
default |
Destructor.
Referenced by BandProperty().
|
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(), te::mem::Band::Band(), te::gdal::Band::Band(), te::rst::BandIteratorWindow< T >::BandIteratorWindow(), te::mem::CachedBand::CachedBand(), te::rst::Copy(), te::rp::Filter::DilationFilter(), te::rp::Filter::ErosionFilter(), te::rp::Contrast::execHistogramEqualizationContrast(), te::rp::Contrast::execLinearContrast(), te::rp::Contrast::execLogContrast(), te::rp::Contrast::execSetMeanAndStdContrast(), te::rp::Contrast::execSquareContrast(), te::rp::Contrast::execSquareRootContrast(), te::rp::MixtureModel::execute(), te::rst::RasterSummaryManager::get(), te::rst::Band::getBlockSize(), te::rp::GetCovarianceValueThread(), te::map::GetExtentRaster(), te::rp::GetMeanValueThread(), te::tools::rastermanager::RasterManager::getRasterInfo(), te::rp::GetStdDevValueThread(), te::rp::Filter::MedianFilter(), te::qt::widgets::RasterSymbolizerWidget::onHistogramToolButtonClicked(), te::gdal::Band::operator=(), te::qt::plugins::pgisRaster::RasterPropertiesInfo::RasterPropertiesInfo(), te::rp::Contrast::remapBandLevels(), te::rp::RemapValues(), te::rp::RemapValuesThread(), te::rp::Filter::RobertsFilter(), te::qt::widgets::LayerPropertiesInfo::setLayerRasterProperties(), te::rp::Filter::SobelFilter(), te::rst::SynchronizedBand::SynchronizedBand(), te::mem::TiledBand::TiledBand(), and te::rp::Filter::UserDefinedFilter().
|
inline |
It returns the unit of measure of the values.
Definition at line 116 of file BandProperty.h.
| bool te::rst::BandProperty::isComplex | ( | ) | const |
Definition at line 90 of file BandProperty.cpp.
References te::dt::CDOUBLE_TYPE, te::dt::CFLOAT_TYPE, te::dt::CINT16_TYPE, te::dt::CINT32_TYPE, and m_type.
| te::rst::BandProperty & te::rst::BandProperty::operator= | ( | const BandProperty & | rhs | ) |
Assignment operator.
| rhs | The right-hand-side copy that would be used to copy from. |
Definition at line 61 of file BandProperty.cpp.
References m_blkh, m_blkw, m_categoryNames, m_colorInterp, m_description, m_idx, m_max, m_mean, m_metadata, m_min, m_nblocksx, m_nblocksy, m_noDataValue, m_palette, m_paletteInterp, m_stdDev, m_type, m_unit, m_valuesOffset, and m_valuesScale.
|
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(), te::grib::Band::Band(), te::mem::Band::Band(), te::rp::Blender::blendIntoRaster1(), te::mem::CachedBand::CachedBand(), te::rp::GeoMosaic::calcBandStatistics(), te::rp::TiePointsMosaic::calcBandStatistics(), te::rp::SequenceMosaic::calcBandStatistics(), te::rst::Band::callOperator(), terralib4::Convert2T5(), te::rst::Copy(), te::mem::Raster::create(), te::mem::ExpansibleRaster::dummyFillAllBlocks(), te::rst::Band::getBlockSize(), te::rp::GetCovarianceValue(), te::rp::GetCovarianceValueThread(), te::rst::Band::getHistogramR(), te::rp::GetMeanValueThread(), te::tools::rastermanager::RasterManager::getRasterInfo(), te::pgis::Transactor::getRasterInfo(), te::rp::GetStdDevValueThread(), te::idl::IdlBand::IdlBand(), operator=(), te::gdal::Band::placeBuffer(), te::qt::plugins::pgisRaster::RasterPropertiesInfo::RasterPropertiesInfo(), te::serialize::xml::ReadBandProperty(), te::rp::Contrast::remapBandLevels(), te::rp::RemapValues(), te::rp::RemapValuesThread(), te::serialize::xml::Save(), te::qt::widgets::LayerPropertiesInfo::setLayerRasterProperties(), te::rst::SynchronizedBand::SynchronizedBand(), and te::mem::TiledBand::TiledBand().
| int te::rst::BandProperty::m_blkw |
Block width (pixels).
Definition at line 143 of file BandProperty.h.
Referenced by te::rst::AbstractBandIterator< T >::AbstractBandIterator(), te::grib::Band::Band(), te::mem::Band::Band(), te::rp::Blender::blendIntoRaster1(), te::mem::CachedBand::CachedBand(), te::rp::GeoMosaic::calcBandStatistics(), te::rp::TiePointsMosaic::calcBandStatistics(), te::rp::SequenceMosaic::calcBandStatistics(), te::rst::Band::callOperator(), terralib4::Convert2T5(), te::rst::Copy(), te::mem::Raster::create(), te::mem::ExpansibleRaster::dummyFillAllBlocks(), te::rst::Band::getBlockSize(), te::rp::GetCovarianceValue(), te::rp::GetCovarianceValueThread(), te::rst::Band::getHistogramR(), te::rp::GetMeanValueThread(), te::tools::rastermanager::RasterManager::getRasterInfo(), te::pgis::Transactor::getRasterInfo(), te::rp::GetStdDevValueThread(), te::grib::Band::getValue(), te::idl::IdlBand::IdlBand(), operator=(), te::gdal::Band::placeBuffer(), te::qt::plugins::pgisRaster::RasterPropertiesInfo::RasterPropertiesInfo(), te::serialize::xml::ReadBandProperty(), te::rp::Contrast::remapBandLevels(), te::rp::RemapValues(), te::rp::RemapValuesThread(), te::serialize::xml::Save(), te::qt::widgets::LayerPropertiesInfo::setLayerRasterProperties(), te::grib::Band::setValue(), te::rst::SynchronizedBand::SynchronizedBand(), and te::mem::TiledBand::TiledBand().
| 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=(), te::qt::plugins::pgisRaster::RasterPropertiesInfo::RasterPropertiesInfo(), and te::qt::widgets::LayerPropertiesInfo::setLayerRasterProperties().
| ColorInterp te::rst::BandProperty::m_colorInterp |
The color interpretation.
Definition at line 140 of file BandProperty.h.
Referenced by te::rp::ClassifierStrategy::createOutputRaster(), te::rp::MixtureModelPCAStrategy::execute(), te::rp::MixtureModelLinearStrategy::execute(), te::rp::SequenceMosaic::execute(), te::rp::MixtureModel::execute(), te::map::RasterTransformConfigurer::getChannelSelection(), te::idl::IdlBand::IdlBand(), te::qt::plugins::terramobile::NormalizeRaster(), te::qt::widgets::ColorMapWidget::onBandSelected(), operator=(), te::qt::plugins::pgisRaster::RasterPropertiesInfo::RasterPropertiesInfo(), and te::qt::widgets::LayerPropertiesInfo::setLayerRasterProperties().
| std::string te::rst::BandProperty::m_description |
A description.
Definition at line 134 of file BandProperty.h.
Referenced by te::rp::MixtureModel::execute(), operator=(), te::qt::plugins::pgisRaster::RasterPropertiesInfo::RasterPropertiesInfo(), te::qt::widgets::LayerPropertiesInfo::setLayerRasterProperties(), and te::rst::Raster::toString().
| 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().
| 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.
Referenced by te::qt::widgets::ColorTransformDialog::drawPreview(), te::qt::widgets::RasterNavigatorWidget::drawRaster(), te::qt::widgets::RasterSymbolizerWidget::onHistogramToolButtonClicked(), and operator=().
| 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.
Referenced by operator=().
| 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=(), te::qt::plugins::pgisRaster::RasterPropertiesInfo::RasterPropertiesInfo(), and te::qt::widgets::LayerPropertiesInfo::setLayerRasterProperties().
| 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.
Referenced by te::qt::widgets::ColorTransformDialog::drawPreview(), te::qt::widgets::RasterNavigatorWidget::drawRaster(), te::qt::widgets::RasterSymbolizerWidget::onHistogramToolButtonClicked(), and operator=().
| 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(), te::grib::Band::Band(), te::rp::Blender::blendIntoRaster1(), te::rp::GeoMosaic::calcBandStatistics(), te::rp::TiePointsMosaic::calcBandStatistics(), te::rp::SequenceMosaic::calcBandStatistics(), te::rst::Band::callOperator(), te::mem::ExpansibleRaster::clone(), terralib4::Convert2T5(), te::rst::Copy(), te::mem::Raster::create(), te::mem::ExpansibleRaster::dummyFillAllBlocks(), te::rst::SynchronizedBandBlocksManager::getBlockPointer(), te::mem::CachedBandBlocksManager::getBlockPointer(), te::rp::GetCovarianceValue(), te::rst::Band::getHistogramR(), te::rp::GetMeanValue(), te::tools::rastermanager::RasterManager::getRasterInfo(), te::rp::GetStdDevValue(), te::idl::IdlBand::IdlBand(), te::rst::SynchronizedBandBlocksManager::initialize(), te::mem::CachedBandBlocksManager::initialize(), te::gdal::Band::operator=(), operator=(), te::qt::plugins::pgisRaster::RasterPropertiesInfo::RasterPropertiesInfo(), te::rst::RasterSynchronizer::RasterSynchronizer(), te::serialize::xml::ReadBandProperty(), te::rp::Contrast::remapBandLevels(), te::rp::RemapValues(), te::serialize::xml::Save(), te::qt::widgets::LayerPropertiesInfo::setLayerRasterProperties(), te::mem::CachedBandBlocksManager::threadEntry(), and te::mem::TiledBand::TiledBand().
| 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::grib::Band::Band(), te::rp::Blender::blendIntoRaster1(), te::rp::GeoMosaic::calcBandStatistics(), te::rp::TiePointsMosaic::calcBandStatistics(), te::rp::SequenceMosaic::calcBandStatistics(), te::rst::Band::callOperator(), te::mem::ExpansibleRaster::clone(), terralib4::Convert2T5(), te::rst::Copy(), te::mem::Raster::create(), te::mem::ExpansibleRaster::dummyFillAllBlocks(), te::rst::BandIteratorWindow< T >::end(), te::rst::BandIterator< T >::end(), te::rst::ConstBandIterator< T >::end(), te::rst::BandIteratorWithMask< T >::end(), te::rst::SynchronizedBandBlocksManager::getBlockPointer(), te::mem::CachedBandBlocksManager::getBlockPointer(), te::rp::GetCovarianceValue(), te::rst::Band::getHistogramR(), te::rp::GetMeanValue(), te::tools::rastermanager::RasterManager::getRasterInfo(), te::rp::GetStdDevValue(), te::idl::IdlBand::IdlBand(), te::rst::SynchronizedBandBlocksManager::initialize(), te::mem::CachedBandBlocksManager::initialize(), te::gdal::Band::operator=(), operator=(), te::qt::plugins::pgisRaster::RasterPropertiesInfo::RasterPropertiesInfo(), te::rst::RasterSynchronizer::RasterSynchronizer(), te::serialize::xml::ReadBandProperty(), te::rp::Contrast::remapBandLevels(), te::rp::RemapValues(), te::serialize::xml::Save(), te::qt::widgets::LayerPropertiesInfo::setLayerRasterProperties(), te::mem::CachedBandBlocksManager::threadEntry(), and te::mem::TiledBand::TiledBand().
| 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::ConvertHLS2RGB(), te::rp::ConvertIHS2RGB(), te::rp::ConvertRGB2IHS(), te::rp::ClassifierStrategy::createOutputRaster(), te::rst::CropRaster(), te::rp::Filter::DilationFilter(), te::map::DrawRaster(), te::mem::ExpansibleRaster::dummyFillAllBlocks(), te::rp::Filter::ErosionFilter(), te::rp::ArithmeticOperations::execBinaryOperatorRasterXRaster(), te::rp::ArithmeticOperations::execBinaryOperatorRasterXReal(), te::rp::ArithmeticOperations::execUnaryOperatorRaster(), te::rp::ArithmeticOperations::execUnaryOperatorReal(), te::qt::widgets::RasterizationWizard::execute(), te::rp::ClassifierKMeansStrategy::execute(), te::rp::ClassifierEDStrategy::execute(), te::rp::ClassifierMAPStrategy::execute(), te::rp::ClassifierEMStrategy::execute(), te::rp::ClassifierSAMStrategy::execute(), te::rp::GeoMosaic::execute(), te::rp::Register::execute(), te::rp::TiePointsMosaic::execute(), te::rp::ArithmeticOperations::execute(), te::rp::SequenceMosaic::execute(), te::rp::MixtureModel::execute(), te::rp::Segmenter::execute(), te::rp::CloudDetection::executeCloudDetection(), te::qt::widgets::ClippingWizard::executeLayerClipping(), te::qt::widgets::ClippingWizard::executeLayerClippingAttribute(), exportRastertoGPKG(), te::rp::ClassifierISOSegStrategy::fillRegionsThreadEntry(), TsExpansibleRaster::fillWithNoDataValues(), te::rp::CloudDetection::generateCloudRaster(), te::rp::CloudDetection::generateShadowRaster(), te::rp::GetCovarianceValue(), te::rp::GetCovarianceValueThread(), te::rp::RasterAttributes::getGLCM(), te::rst::Band::getHistogramR(), te::rst::Band::getMaxValue(), te::rp::GetMeanValueThread(), te::mnt::getMinMax(), te::rst::Band::getMinValue(), te::attributefill::RasterToVector::getPixelDistinct(), te::map::GetRaster(), te::pgis::Transactor::getRasterInfo(), te::rp::IHSFusion::getRGBRange(), te::rp::RasterAttributes::getStatisticsFromPolygon(), te::rp::GetStdDevValueThread(), te::attributefill::GetValuesFromBand(), te::rp::RasterAttributes::getValuesFromBand(), te::rp::RasterAttributes::getValuesFromRaster(), te::rp::Blender::initialize(), te::rst::Interpolator::initialize(), te::rp::IHSFusion::loadIHSData(), te::rp::PCAFusion::loadRessampledRaster(), te::rp::Filter::MeanFilter(), te::rp::Filter::ModeFilter(), te::qt::plugins::terramobile::NormalizeRaster(), te::rp::NormalizeRaster(), te::qt::widgets::RasterSymbolizerWidget::onHistogramToolButtonClicked(), te::attributefill::RasterToVectorDialog::onOkPushButtonClicked(), operator=(), te::qt::plugins::pgisRaster::RasterPropertiesInfo::RasterPropertiesInfo(), te::rp::RasterSlicing(), te::serialize::xml::ReadBandProperty(), te::rp::RemapValues(), te::rp::RemapValuesThread(), te::rp::Filter::RobertsFilter(), te::mnt::TINCalculateGrid::run(), te::attributefill::VectorToRaster::run(), te::attributefill::RasterToVector::run(), te::serialize::xml::Save(), te::qt::widgets::LayerPropertiesInfo::setLayerRasterProperties(), te::rp::PCAFusion::swapBandByHighResRaster(), te::rp::Filter::UserDefinedFilter(), 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(), te::map::RasterTransformConfigurer::getChannelSelection(), and operator=().
| PaletteInterpretation te::rst::BandProperty::m_paletteInterp |
Pallete interpretation.
Definition at line 141 of file BandProperty.h.
Referenced by operator=(), te::qt::plugins::pgisRaster::RasterPropertiesInfo::RasterPropertiesInfo(), and te::qt::widgets::LayerPropertiesInfo::setLayerRasterProperties().
| 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.
Referenced by operator=().
| 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.
Referenced by te::qt::widgets::ColorTransformDialog::applyPreviewHLS2RGB(), te::qt::widgets::ColorTransformDialog::applyPreviewIHS2RGB(), te::qt::widgets::ColorTransformDialog::applyPreviewRGB2HLS(), te::qt::widgets::ColorTransformDialog::applyPreviewRGB2IHS(), te::qt::widgets::ColorTransformDialog::buildMemRaster(), te::qt::widgets::ColorTransformDialog::buildOutputRaster(), te::rp::ClassifierStrategy::createOutputRaster(), te::mem::ExpansibleRaster::dummyFillAllBlocks(), te::rp::MixtureModelPCAStrategy::execute(), te::rp::MixtureModelLinearStrategy::execute(), te::rp::Register::execute(), te::rp::Classifier::execute(), te::rp::MixtureModel::execute(), te::qt::widgets::ClippingWizard::executeLayerClipping(), te::qt::widgets::ClippingWizard::executeLayerClippingAttribute(), te::mem::ExpansibleBand::ExpansibleBand(), te::rst::Band::getHistogramR(), te::rp::InverseWaveletAtrous(), isComplex(), te::rp::NormalizeRaster(), operator=(), te::rp::RasterResample(), te::rp::RasterSlicing(), te::idl::IdlBand::read(), te::serialize::xml::Save(), and te::idl::IdlBand::write().
|
protected |
| 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::rst::Band::getOffsetValue(), operator=(), and te::rst::Band::setOffsetValue().
| 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::rst::Band::getScaleValue(), operator=(), and te::rst::Band::setScaleValue().