TsInterpolator.cpp File Reference
#include <terralib_buildconfig.h>
#include <terralib/raster.h>
#include "../Config.h"
#include <boost/test/unit_test.hpp>

Go to the source code of this file.

Functions

 BOOST_AUTO_TEST_CASE (nearestNeighbor_test)
 
 BOOST_AUTO_TEST_CASE (bilinear_test)
 
 BOOST_AUTO_TEST_CASE (bicubic_test)
 
 BOOST_AUTO_TEST_SUITE (interpolator_tests) void createTestRaster(unsigned int nBands
 
 for (unsigned int bandsPropsIdx=0;bandsPropsIdx< nBands;++bandsPropsIdx)
 
rasterPointer reset (te::rst::RasterFactory::make("MEM", new te::rst::Grid(nCols, nLines), bandsProps, std::map< std::string, std::string >(), 0, 0))
 

Variables

unsigned int band = 0
 
unsigned int col = 0
 
unsigned int line = 0
 
unsigned int unsigned int nCols
 
unsigned int nLines
 
double pixelValue = 0
 
unsigned int unsigned int std::unique_ptr< te::rst::Raster > & rasterPointer
 

Function Documentation

BOOST_AUTO_TEST_CASE ( nearestNeighbor_test  )
BOOST_AUTO_TEST_CASE ( bilinear_test  )
BOOST_AUTO_TEST_CASE ( bicubic_test  )
BOOST_AUTO_TEST_SUITE ( interpolator_tests  )
for ( )

Definition at line 41 of file TsInterpolator.cpp.

References te::rst::RasterFactory::make(), and te::dt::UINT32_TYPE.

Variable Documentation

unsigned int band = 0

Definition at line 50 of file TsInterpolator.cpp.

Referenced by te::mem::ExpansibleBandBlocksManager::addBottomBlocks(), te::mem::ExpansibleBandBlocksManager::addLeftBlocks(), te::mem::ExpansibleBandBlocksManager::addRightBlocks(), te::mem::ExpansibleBandBlocksManager::addTopBlocks(), te::qt::widgets::SegmenterAdvancedOptionsWizardPage::applyVectorization(), TsExpansibleRaster::assertUniqueElement(), te::rp::Blender::blendIntoRaster1(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_SUITE(), te::rp::CreateRasterFileFromMatrix(), TsCachedRaster::CreateTestRaster(), CreateTestRaster(), te::mem::ExpansibleRaster::dummyFillAllBlocks(), te::mem::ExpansibleRaster::dummyFillBlocks(), te::qt::widgets::VectorizationWizard::execute(), te::rp::ClassifierEDStrategy::execute(), te::rp::Segmenter::execute(), ExemplifyBandIterator(), ExemplifyBandIteratorMask(), ExemplifyBandIteratorWindow(), exportRastertoGPKG(), TsExpansibleRaster::fillWithNoDataValues(), te::qt::plugins::terralib4::TL4ConverterWizard::finish(), te::rst::SynchronizedBandBlocksManager::getBlockPointer(), te::mem::CachedBandBlocksManager::getBlockPointer(), te::mem::ExpansibleBandBlocksManager::getBlockPointer(), te::mem::ExpansibleBandBlocksManager::getBlockSizeBytes(), te::map::RasterTransformConfigurer::getBlueChannelProperties(), te::map::GetExtentRaster(), te::gdal::GetGDALRessamplingMethod(), te::rp::RasterAttributes::getGLCM(), te::map::RasterTransformConfigurer::getGrayChannelProperties(), te::map::RasterTransformConfigurer::getGreenChannelProperties(), te::rp::GetMeanValue(), te::mem::ExpansibleBandBlocksManager::getNumberOfBlocksX(), te::mem::ExpansibleBandBlocksManager::getNumberOfBlocksY(), te::qt::widgets::RasterSymbolizerWidget::getRasterSymbolizer(), te::map::RasterTransform::getRecodedMap(), te::map::RasterTransformConfigurer::getRedChannelProperties(), te::rp::getSensorParams(), te::rp::RasterAttributes::getStatisticsFromPolygon(), te::rp::GetStdDevValue(), te::qt::widgets::ColorMapWidget::getValues(), te::rp::RasterAttributes::getValuesFromBand(), te::rst::SynchronizedBandBlocksManager::isInitialized(), te::mem::CachedBandBlocksManager::isInitialized(), te::rp::ArithmeticOperations::lnUnaryOp(), te::rp::Skeleton::loadData(), te::qt::widgets::MixtureModelWizardPage::loadMixtureModelComponents(), te::rp::Filter::MedianFilter(), te::qt::widgets::ReadPixelTool::mouseReleaseEvent(), ReadPixelTool::mouseReleaseEvent(), te::qt::plugins::terramobile::NormalizeRaster(), te::qt::widgets::ArithmeticOpDialogForm::onAddLayerPushButtonClicked(), te::qt::widgets::ContrastDialogForm::onBandChecked(), te::qt::widgets::ColorMapWidget::onBandSelected(), te::qt::widgets::GroupingDialog::onPushButtonClicked(), te::qt::widgets::ArithmeticOpDialogForm::onSavePushButtonClicked(), te::grib::Raster::open(), te::qt::widgets::ArithmeticOpDialogForm::paramsFromOpUserdDef(), te::mem::Raster::Raster(), te::rst::Raster::rasterize(), te::qt::plugins::pgisRaster::RasterPropertiesInfo::RasterPropertiesInfo(), TsCachedRaster::ReadAheadTest(), TsCachedRaster::ReadWriteTest(), te::idl::rp::RegionGrowingSegmenter(), te::attributefill::RasterToVector::run(), te::qt::widgets::MixtureModelWizardPage::saveMixtureModelComponents(), te::rp::SegmenterRegionGrowingBaatzMerger::SegmenterRegionGrowingBaatzMerger(), te::map::RasterTransform::setBand2Band(), te::qt::widgets::PCAWizardPage::setLayer(), te::qt::widgets::RasterSlicingWizardPage::setLayer(), te::qt::widgets::LayerPropertiesInfo::setLayerRasterProperties(), te::map::RasterTransform::setLinearTransfParameters(), te::map::RasterContrast::setValues(), te::rp::IHSFusion::swapIntensity(), TsExpansibleRaster::testValues(), te::qt::widgets::RasterSlicingWizardPage::updateHistogram(), te::qt::widgets::CloudDetectionDialog::vectorize(), TsExpansibleRaster::writeValues(), and te::attributefill::RasterToVector::~RasterToVector().

unsigned int col = 0

Definition at line 52 of file TsInterpolator.cpp.

Referenced by TsExpansibleRaster::addBottomLinesTest(), te::qt::widgets::PluginManagerDialog::addEntry(), TsExpansibleRaster::addLeftColumnsTest(), TsExpansibleRaster::addRightColumnsTest(), TsExpansibleRaster::addTopLinesTest(), te::rp::Skeleton::applyMeanSmooth(), te::rp::Skeleton::applyVecDiffusionThreadEntry(), TsExpansibleRaster::assertUniqueElement(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_SUITE(), te::rp::GeoMosaic::calcBandStatistics(), te::rp::TiePointsMosaic::calcBandStatistics(), te::rp::SequenceMosaic::calcBandStatistics(), te::rp::SegmenterRegionGrowingSegmentsPool< FeatureDataTypeT >::clear(), te::rp::ConvertHLS2RGB(), te::rp::ConvertIHS2RGB(), te::rst::Copy(), Copy2DiskRaster(), te::rp::Copy2DiskRaster(), te::cellspace::CellularSpacesOperations::createCellSpace(), te::rp::SequenceMosaic::createDiskRasterCopy(), te::rp::SequenceMosaic::createRasterDataSet(), te::rp::CreateRasterFileFromMatrix(), te::rp::Skeleton::createSkeletonStrengthMap(), TsCachedRaster::CreateTestRaster(), CreateTestRaster(), te::rp::TiePointsLocatorStrategy::createTifFromMatrix(), te::rp::Skeleton::createTifFromVecField(), DataSet_GetGeometry(), te::rp::DecomposeBands(), te::rst::Vectorizer::detectEdge(), te::rp::Filter::DilationFilter(), te::rp::DirectWaveletAtrous(), te::qt::widgets::PluginManagerDialog::disableRow(), te::rp::Filter::ErosionFilter(), te::rp::ArithmeticOperations::execBinaryOperatorRasterXRaster(), te::rp::ArithmeticOperations::execBinaryOperatorRasterXReal(), te::rp::ArithmeticOperations::execUnaryOperatorRaster(), te::rp::ArithmeticOperations::execUnaryOperatorReal(), te::rp::ClassifierDummyStrategy::execute(), te::qt::widgets::PCAWizard::execute(), te::rp::ClassifierKMeansStrategy::execute(), te::rp::ClassifierEDStrategy::execute(), te::rp::ClassifierSAMStrategy::execute(), te::rp::ClassifierISOSegStrategy::execute(), te::rp::PostClassification::execute(), te::rp::GeoMosaic::execute(), te::rp::TiePointsMosaic::execute(), te::rp::WisperFusion::execute(), te::rp::Skeleton::execute(), te::rp::ArithmeticOperations::execute(), te::rp::Classifier::execute(), te::rp::Segmenter::execute(), te::rp::TiePointsLocatorMoravecStrategy::executeMatchingByCorrelation(), te::rp::TiePointsLocatorSURFStrategy::executeMatchingByEuclideanDist(), exportRastertoGPKG(), te::rp::rg::exportSegs2Tif(), te::rp::TiePointsLocatorStrategy::features2Tiff(), TsExpansibleRaster::fillWithNoDataValues(), te::rp::CloudDetection::generateCloudRaster(), te::mnt::Shadow::GenerateImage(), te::rp::CloudDetection::generateShadowRaster(), te::rp::CloudDetection::generateSumRasters(), te::attributefill::GeoToGrid(), te::attributefill::VectorToVectorMemory::getArea(), te::rst::PolygonIterator< T >::getBBOXIntersectionRanges(), te::rp::GetCovarianceValue(), te::sqlite::DataSourceCatalogLoader::getDataSetType(), te::rp::GetDetailedExtent(), te::rp::Skeleton::getEdgeStrengthMap(), te::rp::Skeleton::getGradientMaps(), te::sqlite::DataSourceCatalogLoader::getIndex(), te::rp::GetIndexedDetailedExtent(), te::rp::Skeleton::getMagnitude(), te::rp::GetMeanValue(), te::mnt::Shadow::getOutRst(), te::attributefill::GetPercentOfEachClassByArea(), te::attributefill::RasterToVector::getPixelDistinct(), te::sqlite::DataSourceCatalogLoader::getPrimaryKey(), te::sqlite::DataSourceCatalogLoader::getProperties(), te::mnt::Shadow::getRasterElementLine(), te::rp::IHSFusion::getRGBRange(), te::rp::IHSFusion::getStatistics(), te::rp::GetStdDevValue(), GetTextsPixmap(), te::sqlite::DataSourceCatalogLoader::getUniqueKey(), te::attributefill::GetValuesFromBand(), te::rp::SegmenterRegionGrowingSegmentsPool< FeatureDataTypeT >::initialize(), te::rp::InverseWaveletAtrous(), te::rp::Skeleton::loadData(), te::rp::Filter::MeanFilter(), te::qt::widgets::MixtureModelDialog::MixtureModelDialog(), te::rp::Filter::ModeFilter(), te::qt::widgets::DataSetTableHorizontalHeader::mousePressEvent(), te::qt::plugins::terramobile::NormalizeRaster(), te::qt::widgets::TiePointLocatorWidget::onTiePointsTableWidgetItemChanged(), te::qt::widgets::ColorPickerPopup::paintEvent(), te::ado::Transactor::propertyExists(), modis_dataset::impl::query(), te::rp::RasterSlicing(), TsCachedRaster::ReadAheadTest(), TsCachedRaster::ReadWriteTest(), te::rp::Contrast::remapBandLevels(), te::rp::RemapValues(), te::ado::Transactor::renameProperty(), te::rp::Filter::RobertsFilter(), te::rp::PostClassification::runPostClassification(), te::mnt::Profile::runRasterProfile(), te::rp::IHSFusion::saveIHSData(), te::qt::widgets::PluginManagerDialog::setChanged(), te::rp::Filter::SobelFilter(), te::rp::PCAFusion::swapBandByHighResRaster(), te::rp::IHSFusion::swapIntensity(), TsExpansibleRaster::testValues(), te::qt::widgets::TiePointsLocatorDialog::TiePointsLocatorDialog(), te::rp::Filter::UserDefinedFilter(), and TsExpansibleRaster::writeValues().

unsigned int line = 0

Definition at line 51 of file TsInterpolator.cpp.

Referenced by TsExpansibleRaster::assertUniqueElement(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_SUITE(), te::qt::widgets::SymbologyPreview::build(), te::edit::CreateLineTool::buildLine(), te::edit::CreatePolygonTool::buildLine(), te::rp::GeoMosaic::calcBandStatistics(), te::rp::TiePointsMosaic::calcBandStatistics(), te::rp::SequenceMosaic::calcBandStatistics(), te::sa::GeostatisticalMethodSemivariogram::calculate(), CalculateHorizontalLines(), te::mnt::Profile::calculateProfile(), CalculateVerticalLines(), te::rp::SequenceMosaic::createDiskRasterCopy(), te::graph::FlowGraphBuilder::createEdgeObjects(), te::rp::CreateRasterFileFromMatrix(), TsCachedRaster::CreateTestRaster(), CreateTestRaster(), te::rp::TiePointsLocatorStrategy::createTifFromMatrix(), te::rp::Skeleton::createTifFromVecField(), te::edit::CreateLineTool::draw(), te::edit::VertexTool::draw(), te::graph::LayerRenderer::drawDataSourceGraph(), te::map::AbstractLayerRenderer::drawDatSetTexts(), te::qt::widgets::PolygonAcquire::drawLine(), te::edit::CreatePolygonTool::drawLine(), te::qt::widgets::Measure::drawLine(), DrawLines(), te::ag::Canvas::drawLineString(), te::graph::LayerRenderer::drawMemoryGraph(), te::rp::TiePointsLocatorMoravecStrategy::executeMatchingByCorrelation(), te::rp::TiePointsLocatorSURFStrategy::executeMatchingByEuclideanDist(), ExemplifyLineIterator(), te::rp::rg::exportSegs2Tif(), te::rp::TiePointsLocatorStrategy::features2Tiff(), te::qt::widgets::BasicStrokeWidget::fillStrokeDashStyleComboBox(), TsExpansibleRaster::fillWithNoDataValues(), te::edit::FindSegment(), te::mnt::Shadow::GenerateImage(), te::mnt::CreateIsolines::generateSegments(), te::gm::GetCoordDimension(), te::edit::GetCoordinates(), te::qt::widgets::BasicStrokePropertyItem::getDashIcons(), te::vp::GeometricOp::GetDataSetType(), te::ag::Canvas::getHeight(), te::gm::GetIntersectionLine(), te::addressgeocoding::AddressGeocodingOp::getLineString(), te::mnt::Shadow::getOutRst(), te::rp::Matrix< TemplateElementType >::getScanLine(), te::sa::SpatialWeightsExchanger::getSpatialWeightsFileInfo(), te::qt::widgets::FusionWizardPage::getSRFMap(), GetTextsPixmap(), te::sa::SpatialWeightsExchanger::importFromGAL(), te::sa::SpatialWeightsExchanger::importFromGWT(), te::qt::widgets::MixtureModelDialog::MixtureModelDialog(), te::qt::widgets::ReadPixelTool::mouseReleaseEvent(), ReadPixelTool::mouseReleaseEvent(), te::rp::Matrix< TemplateElementType >::operator=(), TsCachedRaster::ReadAheadTest(), TsCachedRaster::ReadWriteTest(), te::qt::widgets::Grid::redraw(), te::rp::Contrast::remapBandLevels(), te::rp::Filter::ResetConvBuffer(), te::attributefill::VectorToRaster::run(), te::mnt::Profile::runRasterProfile(), te::vp::GeometricOpMemory::SetAggregByAttribute(), te::vp::GeometricOpMemory::SetAggregObj(), te::vp::GeometricOpMemory::SetAllObjects(), te::edit::VertexIndex::setIndex(), te::qt::widgets::MaskDialog::setMaskSize(), te::rp::Filter::SobelFilter(), GAP::step2(), GAP::step3(), TsGeometry::tcCreateLineString(), TsGeometry::tcCreateLineStringM(), TsGeometry::tcCreateLineStringZ(), TsGeometry::tcCreateLineStringZM(), TsNoAreaRings::tcCreatePolygon(), TsExpansibleRaster::testValues(), te::qt::widgets::TiePointsLocatorDialog::TiePointsLocatorDialog(), te::qt::widgets::TrajectoryItem::transformToDisplayProjection(), te::qt::widgets::ImageItem::tryDoReprojectionUsingAffineTransform(), te::rp::Filter::UpdateConvBuffer(), te::edit::VertexTool::updateRTree(), UtilsWidgets(), TsExpansibleRaster::writeValues(), te::map::Canvas::~Canvas(), te::rp::Filter::~Filter(), te::qt::widgets::MixtureModelDialog::~MixtureModelDialog(), and te::qt::widgets::TiePointsLocatorDialog::~TiePointsLocatorDialog().

unsigned int unsigned int nCols

Definition at line 37 of file TsInterpolator.cpp.

Referenced by te::rp::TiePointsLocatorMoravecStrategy::applyMeanFilter(), te::rp::Skeleton::applyMeanSmooth(), te::rp::Skeleton::applyVecDiffusion(), te::rp::Skeleton::applyVecDiffusionThreadEntry(), TsExpansibleRaster::assertUniqueElement(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_SUITE(), te::rp::GeoMosaic::calcBandStatistics(), te::rp::TiePointsMosaic::calcBandStatistics(), te::rp::SequenceMosaic::calcBandStatistics(), te::rp::SegmenterRegionGrowingSegmentsPool< FeatureDataTypeT >::clear(), te::rp::ConvertHLS2RGB(), te::rp::ConvertIHS2RGB(), te::rst::Copy(), Copy2DiskRaster(), te::rp::Copy2DiskRaster(), te::pgis::Transactor::createDataSet(), te::rp::SequenceMosaic::createDiskRasterCopy(), te::rp::TiePointsLocatorSURFStrategy::createIntegralImage(), te::rp::SequenceMosaic::createRasterDataSet(), te::rp::CreateRasterFileFromMatrix(), te::idl::createRasterFromIdlArray(), te::rp::Skeleton::createSkeletonStrengthMap(), TsCachedRaster::CreateTestRaster(), CreateTestRaster(), te::rp::TiePointsLocatorStrategy::createTifFromMatrix(), te::rp::Skeleton::createTifFromVecField(), te::rp::DecomposeBands(), te::rp::DirectWaveletAtrous(), te::rp::ArithmeticOperations::execBinaryOperatorRasterXRaster(), te::rp::ArithmeticOperations::execBinaryOperatorRasterXReal(), te::rp::ArithmeticOperations::execUnaryOperatorRaster(), te::rp::ArithmeticOperations::execUnaryOperatorReal(), te::rp::ClassifierDummyStrategy::execute(), te::rp::ClassifierEDStrategy::execute(), te::rp::ClassifierSAMStrategy::execute(), te::rp::ClassifierISOSegStrategy::execute(), te::rp::GeoMosaic::execute(), te::rp::Register::execute(), te::rp::TiePointsMosaic::execute(), te::rp::WisperFusion::execute(), te::rp::Skeleton::execute(), te::rp::ArithmeticOperations::execute(), te::rp::Classifier::execute(), te::rp::Segmenter::execute(), TsExpansibleRaster::fillWithNoDataValues(), te::rp::CloudDetection::generateCloudRaster(), te::rp::CloudDetection::generateShadowRaster(), te::rp::CloudDetection::generateSumRasters(), te::rp::GetCovarianceValue(), te::rp::GetDetailedExtent(), te::rp::Skeleton::getEdgeStrengthMap(), te::rp::Skeleton::getGradientMaps(), te::rst::GetGrid(), te::gdal::GetGrid(), te::rp::GetIndexedDetailedExtent(), te::rp::Skeleton::getMagnitude(), te::attributefill::RasterToVector::getPixelDistinct(), te::rp::IHSFusion::getRGBRange(), te::rp::IHSFusion::getStatistics(), te::rst::Grid::Grid(), te::idl::IdlBand::IdlBand(), te::idl::IdlRaster::IdlRaster(), te::rp::SegmenterRegionGrowingSegmentsPool< FeatureDataTypeT >::initialize(), te::rp::InverseWaveletAtrous(), te::rp::Skeleton::loadData(), te::rp::Filter::MeanFilter(), te::rp::Filter::ModeFilter(), te::rp::RasterSlicing(), TsCachedRaster::ReadAheadTest(), TsCachedRaster::ReadWriteTest(), te::idl::rp::RegionGrowingSegmenter(), te::rp::RemapValues(), te::qt::widgets::DataSetTableView::resetColumnsOrder(), te::rp::Filter::RobertsFilter(), te::rp::IHSFusion::saveIHSData(), te::rst::Grid::setNumberOfColumns(), te::rp::Filter::SobelFilter(), te::qt::widgets::DataSetTableView::sortByColumns(), te::rp::PCAFusion::swapBandByHighResRaster(), te::rp::IHSFusion::swapIntensity(), TsExpansibleRaster::testValues(), and TsExpansibleRaster::writeValues().

unsigned int unsigned int std::unique_ptr< te::rst::Raster >& rasterPointer
Initial value:
{
std::vector< te::rst::BandProperty * > bandsProps

Definition at line 39 of file TsInterpolator.cpp.

Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_SUITE(), and te::rst::Interpolator::initialize().