A raster band description. More...
#include <Band.h>
Public Member Functions | |
| Band (BandProperty *p, std::size_t idx) | |
| Constructor. More... | |
| Band & | callOperator (std::complex< double >(*f)(std::complex< double >, std::complex< double >), Band &rhs) |
| It calls a parameter function f to apply in all pixels from two bands, e.g. pixel = f(lhs, rhs);. More... | |
| Band & | callOperator (std::complex< double >(*f)(std::complex< double >, std::complex< double >), std::complex< double > &cvalue) |
| It calls a parameter function f to apply in all pixels from the band, e.g. pixel = f(lhs, rhs);. More... | |
| virtual int | getBlockSize () const |
| It returns the number of bytes ocuppied by a data block. More... | |
| virtual std::map< double, unsigned > | getHistogramI (unsigned int rs=0, unsigned int cs=0, unsigned int rf=0, unsigned int cf=0, unsigned int b=0) const |
| It computes and returns the histogram occurring values (imaginary part) in a window of the band. More... | |
| virtual std::map< double, unsigned > | getHistogramR (unsigned int rs=0, unsigned int cs=0, unsigned int rf=0, unsigned int cf=0, unsigned int b=0) const |
| It computes and returns the histogram occurring values (real part) in a window of the band. More... | |
| virtual void | getHistogramR (const unsigned int rowStart, const unsigned int colStart, const unsigned int finalRow, const unsigned int finalCol, const unsigned int histoBins, const unsigned int sampleStep, std::map< double, unsigned > &histogram) const |
| It computes and returns the histogram occurring values (real part) in a window of the band. More... | |
| virtual void | getIValue (unsigned int c, unsigned int r, double &value) const =0 |
| Returns the imaginary attribute value in a complex band of a cell. More... | |
| virtual std::complex< double > | getMaxValue (bool readall=false, unsigned int rs=0, unsigned int cs=0, unsigned int rf=0, unsigned int cf=0) const |
| It computes and returns the maximum occurring value in a window of the band. More... | |
| virtual std::complex< double > | getMeanValue (unsigned int rs=0, unsigned int cs=0, unsigned int rf=0, unsigned int cf=0) const |
| It computes and returns the mean of the occurring values in a window of the band. More... | |
| virtual std::complex< double > | getMinValue (bool readall=false, unsigned int rs=0, unsigned int cs=0, unsigned int rf=0, unsigned int cf=0) const |
| It computes and returns the minimum occurring value in a window of the band. More... | |
| std::complex< double > | getOffsetValue () const |
| It returns the offset values (real and imaginary) to be applied to the band. More... | |
| BandProperty * | getProperty () |
| Returns the band property. More... | |
| const BandProperty * | getProperty () const |
| Returns the band property. More... | |
| virtual Raster * | getRaster () const =0 |
| Returns the associated raster. More... | |
| std::complex< double > | getScaleValue () const |
| It returns the scale values (real and imaginary) to be applied to the band. More... | |
| virtual std::complex< double > | getStdValue (unsigned int rs=0, unsigned int cs=0, unsigned int rf=0, unsigned int cf=0) const |
| It computes and returns the standard deviation of the occurring values in a window of the band. More... | |
| virtual void | getValue (unsigned int c, unsigned int r, double &value) const =0 |
| Returns the cell attribute value. More... | |
| virtual void | getValue (unsigned int c, unsigned int r, std::complex< double > &value) const |
| Returns the imaginary attribute value in a complex band of a cell. More... | |
| virtual Band & | operator*= (Band &rhs) |
| It returns the band product (pixel by pixel). More... | |
| virtual Band & | operator*= (std::complex< double > &cvalue) |
| It returns the product of a constant value to all pixels in the band. More... | |
| virtual Band & | operator+= (Band &rhs) |
| It returns the band sum (pixel by pixel). More... | |
| virtual Band & | operator+= (std::complex< double > &cvalue) |
| It returns the sum of a constant value to all pixels in the band. More... | |
| virtual Band & | operator-= (Band &rhs) |
| It returns the band subtraction (pixel by pixel). More... | |
| virtual Band & | operator-= (std::complex< double > &cvalue) |
| It returns the difference from all pixels in the band to a constant value (pixel - constant). More... | |
| virtual Band & | operator/= (Band &rhs) |
| It returns the band division (pixel by pixel). More... | |
| virtual Band & | operator/= (std::complex< double > &cvalue) |
| It returns the division of all pixels in the band by a constant value (pixel / constant). More... | |
| virtual Band & | operator= (const Band &rhs) |
| Assignment operator. More... | |
| virtual void | read (int x, int y, void *buffer) const =0 |
| It reads a data block to the specified buffer. More... | |
| virtual void * | read (int x, int y)=0 |
| It reads and returns a data block. More... | |
| virtual void | setIValue (unsigned int c, unsigned int r, const double value)=0 |
| Sets the imaginary attribute value in a complex band of a cell. More... | |
| void | setOffsetValue (const std::complex< double > o) |
| Sets the offset values (real and imaginary) to be applied to the band. More... | |
| void | setScaleValue (const std::complex< double > s) |
| Sets the scale values (real and imaginary) to be applied to the band. More... | |
| virtual void | setValue (unsigned int c, unsigned int r, const double value)=0 |
| Sets the cell attribute value. More... | |
| virtual void | setValue (unsigned int c, unsigned int r, const std::complex< double > &value) |
| Sets the imaginary attribute value in a complex band of a cell. More... | |
| virtual void | write (int x, int y, void *buffer)=0 |
| It writes a data block from the specified buffer. More... | |
| virtual | ~Band () |
| Virtual destructor. More... | |
Protected Member Functions | |
| Band (const Band &rhs) | |
| Copy constructor. More... | |
Protected Attributes | |
| std::size_t | m_idx |
| The band index. More... | |
| BandProperty * | m_property |
| The band information. More... | |
A raster band description.
The raster band 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 63 of file src/terralib/raster/Band.h.
| te::rst::Band::Band | ( | BandProperty * | p, |
| std::size_t | idx | ||
| ) |
Constructor.
| p | The band property. The Band will take its ownership. |
| idx | The band index. |
Definition at line 37 of file src/terralib/raster/Band.cpp.
|
virtual |
Virtual destructor.
Reimplemented in te::gdal::Band, te::mem::Band, te::grib::Band, and terralib4::Band.
Definition at line 43 of file src/terralib/raster/Band.cpp.
References m_property.
|
protected |
Copy constructor.
| rhs | The right-hand-side copy used to copy from. |
Definition at line 790 of file src/terralib/raster/Band.cpp.
References m_property.
| te::rst::Band & te::rst::Band::callOperator | ( | std::complex< double >(*)(std::complex< double >, std::complex< double >) | f, |
| Band & | rhs | ||
| ) |
It calls a parameter function f to apply in all pixels from two bands, e.g. pixel = f(lhs, rhs);.
| (*f) | a function with the signature complex<double>(*f)(complex<double>, complex<double>) |
| rhs | The rhs band to apply the function. |
Definition at line 585 of file src/terralib/raster/Band.cpp.
References te::rst::Raster::getNumberOfColumns(), te::rst::Raster::getNumberOfRows(), getProperty(), getRaster(), getValue(), te::rst::BandProperty::m_blkh, te::rst::BandProperty::m_blkw, te::rst::BandProperty::m_nblocksx, te::rst::BandProperty::m_nblocksy, te::rst::BandProperty::m_noDataValue, te::common::RWAccess, setValue(), and te::common::WAccess.
Referenced by operator*=(), operator+=(), operator-=(), and operator/=().
| te::rst::Band & te::rst::Band::callOperator | ( | std::complex< double >(*)(std::complex< double >, std::complex< double >) | f, |
| std::complex< double > & | cvalue | ||
| ) |
It calls a parameter function f to apply in all pixels from the band, e.g. pixel = f(lhs, rhs);.
| (*f) | a function with the signature complex<double>(*f)(complex<double>, complex<double>) |
| cvalue | The constant value that will work with the generic function. |
Definition at line 655 of file src/terralib/raster/Band.cpp.
References te::rst::Raster::getNumberOfColumns(), te::rst::Raster::getNumberOfRows(), getProperty(), getRaster(), getValue(), te::rst::BandProperty::m_blkh, te::rst::BandProperty::m_blkw, te::rst::BandProperty::m_nblocksx, te::rst::BandProperty::m_nblocksy, te::rst::BandProperty::m_noDataValue, te::common::RWAccess, setValue(), and te::common::WAccess.
|
virtual |
It returns the number of bytes ocuppied by a data block.
Reimplemented in te::mem::Band.
Definition at line 777 of file src/terralib/raster/Band.cpp.
References te::rst::GetPixelSize(), te::rst::BandProperty::getType(), te::rst::BandProperty::m_blkh, te::rst::BandProperty::m_blkw, and m_property.
Referenced by te::rst::AbstractBandIterator< T >::AbstractBandIterator(), te::gdal::Band::Band(), te::rst::BandIteratorWindow< T >::BandIteratorWindow(), te::rp::Blender::blendIntoRaster1(), te::mem::CachedBand::CachedBand(), te::rst::Copy(), te::rp::Segmenter::execute(), te::rp::GetCovarianceValueThread(), te::rp::GetMeanValueThread(), te::rp::GetStdDevValueThread(), te::rst::SynchronizedBandBlocksManager::initialize(), te::mem::CachedBandBlocksManager::initialize(), te::gdal::Band::operator=(), te::rst::BandIteratorWindow< T >::operator=(), te::grib::Band::read(), te::rp::Contrast::remapBandLevels(), te::rp::RemapValuesThread(), te::rst::SynchronizedBand::SynchronizedBand(), te::mem::TiledBand::TiledBand(), and te::grib::Band::write().
|
virtual |
It computes and returns the histogram occurring values (imaginary part) in a window of the band.
| rs | The starting row. |
| cs | The starting column. |
| rf | The final row. |
| cf | The final column. |
| b | The number of bins (intervals from minimum pixel to maximum). When b = 0, the histogram will be divided according to all pixel values. |
Definition at line 481 of file src/terralib/raster/Band.cpp.
References getIValue(), te::rst::Raster::getNumberOfColumns(), te::rst::Raster::getNumberOfRows(), and getRaster().
Referenced by te::rst::RasterSummaryManager::get().
|
virtual |
It computes and returns the histogram occurring values (real part) in a window of the band.
| rs | The starting row. |
| cs | The starting column. |
| rf | The final row. |
| cf | The final column. |
| b | The number of bins (intervals from minimum pixel to maximum). When b = 0, the histogram will be divided according to all pixel values. |
Definition at line 270 of file src/terralib/raster/Band.cpp.
Referenced by te::rst::RasterSummaryManager::get().
|
virtual |
It computes and returns the histogram occurring values (real part) in a window of the band.
| rowStart | The starting row. |
| colStart | The starting column. |
| finalRow | The final row. |
| finalCol | The final column. |
| histoBins | The number of bins (intervals from minimum pixel to maximum). When b = 0, the histogram will be divided according to all pixel values. |
| sampleStep | The row/column step used when reading pixels (to read all pixels sampleStep=1, to read half of pixels use sampleStep=2 ); |
| histogram | The generated histogram. |
Definition at line 277 of file src/terralib/raster/Band.cpp.
References te::dt::DOUBLE_TYPE, te::dt::FLOAT_TYPE, te::rst::Raster::getNumberOfColumns(), te::rst::Raster::getNumberOfRows(), getRaster(), getValue(), te::rst::BandProperty::m_blkh, te::rst::BandProperty::m_blkw, te::rst::BandProperty::m_nblocksx, te::rst::BandProperty::m_nblocksy, te::rst::BandProperty::m_noDataValue, m_property, te::rst::BandProperty::m_type, and pixelValue.
|
pure virtual |
Returns the imaginary attribute value in a complex band of a cell.
| c | The column location of the cell. |
| r | The row location of the cell. |
| value | The attribute value to be assigned. |
| Exception | Subclasses may throw an exception if the data value can not be read. |
Implemented in te::gdal::Band, te::idl::IdlBand, te::mem::ExpansibleBand, te::mem::CachedBand, te::rst::SynchronizedBand, te::mem::Band, te::grib::Band, te::mem::TiledBand, and terralib4::Band.
Referenced by getHistogramI(), te::rst::Raster::getIValue(), and getValue().
|
virtual |
It computes and returns the maximum occurring value in a window of the band.
| readall | Force the reading the entire image (can be slow). If false, will read up to 1000 pixels of the image, equally spaced. |
| rs | The starting row. |
| cs | The starting column. |
| rf | The final row. |
| cf | The final column. |
Reimplemented in te::gdal::Band.
Definition at line 144 of file src/terralib/raster/Band.cpp.
References te::rst::PointSetIterator< T >::begin(), te::rst::PointSetIterator< T >::end(), te::rst::PointSetIterator< T >::getColumn(), te::rst::Raster::getNumberOfColumns(), te::rst::Raster::getNumberOfRows(), getProperty(), te::rst::GetRandomPointsInRaster(), getRaster(), te::rst::PointSetIterator< T >::getRow(), getValue(), and te::rst::BandProperty::m_noDataValue.
Referenced by ArithmeticWithRaster(), BOOST_AUTO_TEST_SUITE(), te::rst::RasterSummaryManager::get(), te::gdal::Band::getMaxValue(), Texture(), and te::rst::Raster::toString().
|
virtual |
It computes and returns the mean of the occurring values in a window of the band.
| rs | The starting row. |
| cs | The starting column. |
| rf | The final row. |
| cf | The final column. |
Reimplemented in te::gdal::Band.
Definition at line 241 of file src/terralib/raster/Band.cpp.
References te::rst::Raster::getNumberOfColumns(), te::rst::Raster::getNumberOfRows(), getRaster(), and getValue().
Referenced by te::rst::RasterSummaryManager::get(), te::gdal::Band::getMeanValue(), getStdValue(), and te::rst::Raster::toString().
|
virtual |
It computes and returns the minimum occurring value in a window of the band.
| readall | Force the reading the entire image (can be slow). If false, will read up to 1000 pixels of the image, equally spaced. |
| rs | The starting row. |
| cs | The starting column. |
| rf | The final row. |
| cf | The final column. |
Reimplemented in te::gdal::Band.
Definition at line 82 of file src/terralib/raster/Band.cpp.
References te::rst::PointSetIterator< T >::begin(), te::rst::PointSetIterator< T >::end(), te::rst::PointSetIterator< T >::getColumn(), te::rst::Raster::getNumberOfColumns(), te::rst::Raster::getNumberOfRows(), getProperty(), te::rst::GetRandomPointsInRaster(), getRaster(), te::rst::PointSetIterator< T >::getRow(), getValue(), and te::rst::BandProperty::m_noDataValue.
Referenced by ArithmeticWithRaster(), BOOST_AUTO_TEST_SUITE(), te::rst::RasterSummaryManager::get(), te::gdal::Band::getMinValue(), Texture(), and te::rst::Raster::toString().
| std::complex< double > te::rst::Band::getOffsetValue | ( | ) | const |
It returns the offset values (real and imaginary) to be applied to the band.
Definition at line 565 of file src/terralib/raster/Band.cpp.
References m_property, and te::rst::BandProperty::m_valuesOffset.
Referenced by te::rst::Raster::toString().
| te::rst::BandProperty * te::rst::Band::getProperty | ( | ) |
Returns the band property.
Definition at line 575 of file src/terralib/raster/Band.cpp.
References m_property.
Referenced by te::rst::AbstractBandIterator< T >::AbstractBandIterator(), te::mem::ExpansibleRaster::addTopBands(), te::qt::widgets::ColorTransformDialog::applyPreviewHLS2RGB(), te::qt::widgets::ColorTransformDialog::applyPreviewIHS2RGB(), te::qt::widgets::ColorTransformDialog::applyPreviewRGB2HLS(), te::qt::widgets::ColorTransformDialog::applyPreviewRGB2IHS(), te::rst::BandIteratorWindow< T >::BandIteratorWindow(), te::rp::Blender::blendIntoRaster1(), te::qt::widgets::ColorTransformDialog::buildMemRaster(), te::qt::widgets::ColorTransformDialog::buildOutputRaster(), te::mem::CachedBand::CachedBand(), te::rp::GeoMosaic::calcBandStatistics(), te::rp::TiePointsMosaic::calcBandStatistics(), te::rp::SequenceMosaic::calcBandStatistics(), callOperator(), te::mem::ExpansibleRaster::clone(), te::rp::ConvertHLS2RGB(), te::rp::ConvertIHS2RGB(), te::rp::ConvertRGB2IHS(), te::rst::Copy(), Copy2DiskRaster(), te::rp::Copy2DiskRaster(), te::tools::rastermanager::RasterManager::copyRaster(), te::mem::Raster::create(), te::rst::CreateCopy(), te::rp::Segmenter::createCutOffLinesTiff(), te::rp::SequenceMosaic::createDiskRasterCopy(), te::rp::ClassifierStrategy::createOutputRaster(), te::rp::SequenceMosaic::createRasterDataSet(), te::rst::CropRaster(), te::rp::DecomposeBands(), te::rp::Filter::DilationFilter(), te::qt::widgets::ColorTransformDialog::drawPreview(), te::qt::widgets::RasterNavigatorWidget::drawRaster(), te::map::DrawRaster(), 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::rp::Filter::ErosionFilter(), te::rp::ArithmeticOperations::execBinaryOperatorRasterXRaster(), te::rp::ArithmeticOperations::execBinaryOperatorRasterXReal(), te::rp::Contrast::execDecorrelationEnhancement(), 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::ArithmeticOperations::execUnaryOperatorRaster(), te::rp::ArithmeticOperations::execUnaryOperatorReal(), te::rp::ClassifierKMeansStrategy::execute(), te::rp::ClassifierEDStrategy::execute(), te::rp::ClassifierEMStrategy::execute(), te::rp::ClassifierMAPStrategy::execute(), te::rp::ClassifierSAMStrategy::execute(), te::rp::PostClassification::execute(), te::rp::GeoMosaic::execute(), te::rp::Register::execute(), te::rp::Filter::execute(), te::rp::TiePointsMosaic::execute(), te::rp::WisperFusion::execute(), te::rp::Skeleton::execute(), te::rp::ArithmeticOperations::execute(), te::rp::SequenceMosaic::execute(), te::rp::MixtureModel::execute(), te::rp::Segmenter::execute(), te::rp::Contrast::execute(), te::rp::CloudDetection::executeCloudDetection(), te::mem::ExpansibleRaster::ExpansibleRaster(), exportRastertoGPKG(), te::rp::ClassifierISOSegStrategy::fillRegionsThreadEntry(), TsExpansibleRaster::fillWithNoDataValues(), te::rst::RasterSummaryManager::get(), te::rst::SynchronizedBandBlocksManager::getBlockPointer(), te::mem::CachedBandBlocksManager::getBlockPointer(), te::map::RasterTransformConfigurer::getChannelSelection(), te::rp::GetCovarianceValue(), te::rp::GetCovarianceValueThread(), te::ws::ogc::wms::WMSLayer::getData(), te::map::GetExtentRaster(), te::rp::RasterAttributes::getGLCM(), getMaxValue(), te::rp::GetMeanValue(), te::rp::GetMeanValueThread(), te::mnt::getMinMax(), getMinValue(), te::attributefill::RasterToVector::getPixelDistinct(), te::tools::rastermanager::RasterManager::getRasterInfo(), te::rp::IHSFusion::getRGBRange(), te::map::RasterLayer::getSchema(), te::rp::RasterAttributes::getStatisticsFromPolygon(), te::rp::GetStdDevValue(), te::rp::GetStdDevValueThread(), te::attributefill::GetValuesFromBand(), te::rp::RasterAttributes::getValuesFromBand(), te::rp::RasterAttributes::getValuesFromRaster(), te::rst::SynchronizedBandBlocksManager::initialize(), te::mem::CachedBandBlocksManager::initialize(), te::rp::Blender::initialize(), te::rst::Interpolator::initialize(), te::rp::InverseWaveletAtrous(), te::rp::IHSFusion::loadIHSData(), te::rp::PCAFusion::loadRessampledRaster(), te::rp::Filter::MeanFilter(), te::rp::Filter::MedianFilter(), te::rp::Filter::ModeFilter(), te::qt::plugins::terramobile::NormalizeRaster(), te::rp::NormalizeRaster(), te::qt::widgets::ColorMapWidget::onBandSelected(), te::qt::widgets::RasterSymbolizerWidget::onHistogramToolButtonClicked(), te::mem::Raster::open(), te::qt::plugins::pgisRaster::RasterPropertiesInfo::RasterPropertiesInfo(), te::rp::RasterResample(), te::rp::RasterSlicing(), te::rst::RasterSynchronizer::RasterSynchronizer(), te::rp::Contrast::remapBandLevels(), te::rp::RemapValues(), te::rp::RemapValuesThread(), te::rst::Reproject(), te::rp::Filter::RobertsFilter(), te::mnt::TINCalculateGrid::run(), te::attributefill::RasterToVector::run(), te::serialize::xml::Save(), te::rp::IHSFusion::saveIHSData(), te::qt::widgets::LayerPropertiesInfo::setLayerRasterProperties(), te::rp::Filter::SobelFilter(), te::rp::PCAFusion::swapBandByHighResRaster(), te::rst::SynchronizedBand::SynchronizedBand(), te::mem::CachedBandBlocksManager::threadEntry(), te::rst::Raster::toString(), te::rp::Filter::UserDefinedFilter(), and te::rst::Vectorizer::Vectorizer().
| const te::rst::BandProperty * te::rst::Band::getProperty | ( | ) | const |
Returns the band property.
Definition at line 580 of file src/terralib/raster/Band.cpp.
References m_property.
|
pure virtual |
Returns the associated raster.
Implemented in te::gdal::Band, te::idl::IdlBand, te::mem::ExpansibleBand, te::mem::CachedBand, te::rst::SynchronizedBand, te::mem::Band, te::grib::Band, te::mem::TiledBand, and terralib4::Band.
Referenced by te::rst::AbstractBandIterator< T >::AbstractBandIterator(), te::rst::BandIteratorWindow< T >::BandIteratorWindow(), callOperator(), te::rst::Copy(), te::rp::Contrast::execSetMeanAndStdContrast(), te::rst::FillBand(), getHistogramI(), getHistogramR(), getMaxValue(), getMeanValue(), getMinValue(), getStdValue(), te::rst::Raster::rasterize(), and te::rp::Filter::UpdateConvBuffer().
| std::complex< double > te::rst::Band::getScaleValue | ( | ) | const |
It returns the scale values (real and imaginary) to be applied to the band.
Definition at line 555 of file src/terralib/raster/Band.cpp.
References m_property, and te::rst::BandProperty::m_valuesScale.
Referenced by te::rst::Raster::toString().
|
virtual |
It computes and returns the standard deviation of the occurring values in a window of the band.
| rs | The starting row. |
| cs | The starting column. |
| rf | The final row. |
| cf | The final column. |
Reimplemented in te::gdal::Band.
Definition at line 206 of file src/terralib/raster/Band.cpp.
References getMeanValue(), te::rst::Raster::getNumberOfColumns(), te::rst::Raster::getNumberOfRows(), getRaster(), and getValue().
Referenced by te::rst::RasterSummaryManager::get(), te::gdal::Band::getStdValue(), and te::rst::Raster::toString().
|
pure virtual |
Returns the cell attribute value.
| c | The column location of the cell. |
| r | The row location of the cell. |
| value | To return the attribute value. |
| Exception | Subclasses may throw an exception if the data value can not be read. |
Implemented in te::gdal::Band, te::idl::IdlBand, te::mem::ExpansibleBand, te::mem::CachedBand, te::rst::SynchronizedBand, te::mem::Band, te::grib::Band, te::mem::TiledBand, and terralib4::Band.
Referenced by te::rp::GeoMosaic::calcBandStatistics(), te::rp::TiePointsMosaic::calcBandStatistics(), te::rp::SequenceMosaic::calcBandStatistics(), callOperator(), te::rp::ConvertHLS2RGB(), te::rp::ConvertIHS2RGB(), te::rp::ConvertRGB2HLS(), te::rp::ConvertRGB2IHS(), te::rst::Copy(), Copy2DiskRaster(), te::rp::Copy2DiskRaster(), te::rp::SequenceMosaic::createDiskRasterCopy(), te::rp::SequenceMosaic::createRasterDataSet(), te::rp::DecomposeBands(), te::rp::DirectWaveletAtrous(), te::rp::ArithmeticOperations::execBinaryOperatorRasterXRaster(), te::rp::ArithmeticOperations::execBinaryOperatorRasterXReal(), te::rp::Contrast::execSetMeanAndStdContrast(), te::rp::ArithmeticOperations::execUnaryOperatorRaster(), te::rp::ClassifierKMeansStrategy::execute(), te::rp::PostClassification::execute(), te::rp::GeoMosaic::execute(), te::rp::TiePointsMosaic::execute(), te::rp::SequenceMosaic::execute(), te::rp::Classifier::execute(), te::rp::Segmenter::execute(), exportRastertoGPKG(), te::rp::CloudDetection::generateSumRasters(), te::rp::GetCovarianceValue(), getHistogramR(), getMaxValue(), getMeanValue(), getMinValue(), te::attributefill::RasterToVector::getPixelDistinct(), te::rp::IHSFusion::getRGBRange(), getStdValue(), te::gdal::Band::getValue(), getValue(), te::rst::Raster::getValue(), te::rst::Raster::getValues(), te::rp::Skeleton::loadData(), te::rp::TiePointsLocatorStrategy::loadRasterData(), te::rp::Filter::MeanFilter(), te::rp::Filter::ModeFilter(), te::qt::plugins::terramobile::NormalizeRaster(), te::rp::RasterSlicing(), te::rp::Contrast::remapBandLevels(), te::rp::Filter::RobertsFilter(), te::rp::PostClassification::runPostClassification(), te::rp::PCAFusion::swapBandByHighResRaster(), te::rp::IHSFusion::swapIntensity(), te::rp::Filter::UpdateConvBuffer(), and te::rp::Filter::UserDefinedFilter().
|
virtual |
Returns the imaginary attribute value in a complex band of a cell.
| c | The column location of the cell. |
| r | The row location of the cell. |
| value | The complex attribute value to be assigned (real, imaginary). |
| Exception | Subclasses may throw an exception if the data value can not be read. |
Reimplemented in te::gdal::Band.
Definition at line 62 of file src/terralib/raster/Band.cpp.
References getIValue(), and getValue().
|
virtual |
It returns the band product (pixel by pixel).
| rhs | The band to be multiplied, right-hand side. |
Definition at line 762 of file src/terralib/raster/Band.cpp.
References callOperator(), and times().
|
virtual |
It returns the product of a constant value to all pixels in the band.
| cvalue | The constant value to be multiplied. |
Definition at line 757 of file src/terralib/raster/Band.cpp.
References callOperator(), and times().
|
virtual |
It returns the band sum (pixel by pixel).
| rhs | The band to be added, right-hand side. |
Definition at line 737 of file src/terralib/raster/Band.cpp.
References callOperator(), and plus().
|
virtual |
It returns the sum of a constant value to all pixels in the band.
| cvalue | The constant value to be added. |
Definition at line 742 of file src/terralib/raster/Band.cpp.
References callOperator(), and plus().
|
virtual |
It returns the band subtraction (pixel by pixel).
| rhs | The band to be subtracted, right-hand side. |
Definition at line 747 of file src/terralib/raster/Band.cpp.
References callOperator(), and minus().
|
virtual |
It returns the difference from all pixels in the band to a constant value (pixel - constant).
| cvalue | The constant value to be subtracted. |
Definition at line 752 of file src/terralib/raster/Band.cpp.
References callOperator(), and minus().
|
virtual |
It returns the band division (pixel by pixel).
| rhs | The band to be divided, right-hand side. |
Definition at line 767 of file src/terralib/raster/Band.cpp.
References callOperator(), and divide().
|
virtual |
It returns the division of all pixels in the band by a constant value (pixel / constant).
| cvalue | The constant value to be divided. |
Definition at line 772 of file src/terralib/raster/Band.cpp.
References callOperator(), and divide().
|
virtual |
Assignment operator.
| rhs | The right-hand-side copy used to copy from. |
Definition at line 48 of file src/terralib/raster/Band.cpp.
References m_idx, and m_property.
Referenced by te::mem::TiledBand::operator=(), te::mem::Band::operator=(), and te::gdal::Band::operator=().
It reads a data block to the specified buffer.
| x | The block-id in x (or x-offset). |
| y | The block-id in y (or y-offset). |
| buffer | The buffer to be used to read from the band. |
Implemented in te::gdal::Band, te::idl::IdlBand, te::mem::ExpansibleBand, te::mem::CachedBand, te::rst::SynchronizedBand, te::mem::Band, te::grib::Band, te::mem::TiledBand, and terralib4::Band.
Referenced by te::rst::RasterSynchronizer::acquireBlock(), te::mem::ExpansibleRaster::clone(), te::rst::Copy(), modis_dataset::impl::extract_block_data(), te::mem::CachedBandBlocksManager::getBlockPointer(), te::rp::GetCovarianceValueThread(), te::rp::GetMeanValueThread(), te::rp::GetStdDevValueThread(), te::rp::Contrast::remapBandLevels(), te::rp::RemapValuesThread(), te::rst::BandIterator< T >::replaceBlock(), te::rst::ConstBandIterator< T >::replaceBlock(), te::rst::BandIteratorWindow< T >::replaceBlocks(), and te::mem::CachedBandBlocksManager::threadEntry().
It reads and returns a data block.
| x | The block-id in x (or x-offset). |
| y | The block-id in y (or y-offset). |
Implemented in te::gdal::Band, te::idl::IdlBand, te::mem::ExpansibleBand, te::mem::CachedBand, te::rst::SynchronizedBand, te::mem::Band, te::grib::Band, te::mem::TiledBand, and terralib4::Band.
|
pure virtual |
Sets the imaginary attribute value in a complex band of a cell.
| c | The column location of the cell. |
| r | The row location of the cell. |
| value | The attribute value to be assigned. |
| Exception | Subclasses may throw an exception if the data value can not be write. |
Implemented in te::gdal::Band, te::idl::IdlBand, te::mem::ExpansibleBand, te::mem::CachedBand, te::rst::SynchronizedBand, te::mem::Band, te::grib::Band, te::mem::TiledBand, and terralib4::Band.
Referenced by te::rst::Raster::setIValue(), and setValue().
| void te::rst::Band::setOffsetValue | ( | const std::complex< double > | o | ) |
Sets the offset values (real and imaginary) to be applied to the band.
| o | The new offset. |
Definition at line 570 of file src/terralib/raster/Band.cpp.
References m_property, and te::rst::BandProperty::m_valuesOffset.
| void te::rst::Band::setScaleValue | ( | const std::complex< double > | s | ) |
Sets the scale values (real and imaginary) to be applied to the band.
| s | The new scale. |
Definition at line 560 of file src/terralib/raster/Band.cpp.
References m_property, and te::rst::BandProperty::m_valuesScale.
|
pure virtual |
Sets the cell attribute value.
| c | The column location of the cell. |
| r | The row location of the cell. |
| value | The attribute value to be assigned. |
| Exception | Subclasses may throw an exception if the data value can not be write. |
Implemented in te::gdal::Band, te::idl::IdlBand, te::mem::ExpansibleBand, te::mem::CachedBand, te::rst::SynchronizedBand, te::mem::Band, te::grib::Band, te::mem::TiledBand, and terralib4::Band.
Referenced by callOperator(), te::rp::ComposeBands(), te::rp::ConvertHLS2RGB(), te::rp::ConvertIHS2RGB(), te::rp::ConvertRGB2HLS(), te::rp::ConvertRGB2IHS(), te::rst::Copy(), Copy2DiskRaster(), te::rp::Copy2DiskRaster(), te::rp::SequenceMosaic::createDiskRasterCopy(), te::mem::ExpansibleRaster::createMultiResolution(), te::rp::SequenceMosaic::createRasterDataSet(), te::rp::DecomposeBands(), te::rp::Filter::DilationFilter(), te::rp::DirectWaveletAtrous(), te::rp::Filter::ErosionFilter(), te::rp::ArithmeticOperations::execBinaryOperatorRasterXRaster(), te::rp::ArithmeticOperations::execBinaryOperatorRasterXReal(), te::rp::Contrast::execSetMeanAndStdContrast(), te::rp::ArithmeticOperations::execUnaryOperatorRaster(), te::rp::ArithmeticOperations::execUnaryOperatorReal(), te::rp::ClassifierDummyStrategy::execute(), te::rp::ClassifierKMeansStrategy::execute(), te::rp::ClassifierISOSegStrategy::execute(), te::rp::GeoMosaic::execute(), te::rp::Register::execute(), te::rp::TiePointsMosaic::execute(), te::rp::SequenceMosaic::execute(), te::rp::Classifier::execute(), te::rp::Segmenter::execute(), te::rst::FillBand(), te::rp::Filter::MeanFilter(), te::rp::Filter::ModeFilter(), te::rp::RasterResample(), te::rp::RasterSlicing(), te::rp::Contrast::remapBandLevels(), te::rp::Filter::RobertsFilter(), te::rp::IHSFusion::saveIHSData(), te::gdal::Band::setValue(), setValue(), te::rst::Raster::setValue(), te::rst::Raster::setValues(), te::rp::Filter::SobelFilter(), and te::rp::Filter::UserDefinedFilter().
|
virtual |
Sets the imaginary attribute value in a complex band of a cell.
| c | The column location of the cell. |
| r | The row location of the cell. |
| value | The complex attribute value to be assigned (real, imaginary). |
| Exception | Subclasses may throw an exception if the data value can not be write. |
Reimplemented in te::gdal::Band.
Definition at line 75 of file src/terralib/raster/Band.cpp.
References setIValue(), and setValue().
It writes a data block from the specified buffer.
| x | The block-id in x (or x-offset). |
| y | The block-id in y (or y-offset). |
| buffer | The buffer to be used to write to the band. |
Implemented in te::gdal::Band, te::idl::IdlBand, te::mem::ExpansibleBand, te::mem::CachedBand, te::rst::SynchronizedBand, te::mem::Band, te::grib::Band, te::mem::TiledBand, and terralib4::Band.
Referenced by te::mem::ExpansibleRaster::clone(), te::rst::Copy(), te::mem::CachedBandBlocksManager::free(), te::mem::CachedBandBlocksManager::getBlockPointer(), te::rst::RasterSynchronizer::releaseBlock(), te::rp::Contrast::remapBandLevels(), te::rp::RemapValuesThread(), and te::mem::CachedBandBlocksManager::threadEntry().
|
protected |
The band index.
Definition at line 500 of file src/terralib/raster/Band.h.
Referenced by te::rst::SynchronizedBand::getIValue(), te::mem::CachedBand::getIValue(), te::mem::ExpansibleBand::getIValue(), te::idl::IdlBand::getIValue(), terralib4::Band::getValue(), te::rst::SynchronizedBand::getValue(), te::mem::CachedBand::getValue(), te::mem::ExpansibleBand::getValue(), te::idl::IdlBand::getValue(), operator=(), terralib4::Band::read(), te::rst::SynchronizedBand::read(), te::mem::CachedBand::read(), te::mem::ExpansibleBand::read(), te::rst::SynchronizedBand::setIValue(), te::mem::CachedBand::setIValue(), te::mem::ExpansibleBand::setIValue(), te::idl::IdlBand::setIValue(), te::rst::SynchronizedBand::setValue(), te::mem::CachedBand::setValue(), te::mem::ExpansibleBand::setValue(), te::idl::IdlBand::setValue(), te::rst::SynchronizedBand::write(), te::mem::CachedBand::write(), and te::mem::ExpansibleBand::write().
|
protected |
The band information.
Definition at line 499 of file src/terralib/raster/Band.h.
Referenced by te::grib::Band::Band(), te::mem::Band::Band(), te::gdal::Band::Band(), Band(), te::mem::ExpansibleBand::ExpansibleBand(), getBlockSize(), getHistogramR(), getOffsetValue(), getProperty(), getScaleValue(), te::grib::Band::getValue(), te::idl::IdlBand::IdlBand(), te::gdal::Band::operator=(), operator=(), te::gdal::Band::placeBuffer(), te::idl::IdlBand::read(), setOffsetValue(), setScaleValue(), te::grib::Band::setValue(), te::rst::SynchronizedBand::SynchronizedBand(), te::mem::TiledBand::TiledBand(), te::idl::IdlBand::write(), and ~Band().