Create a mosaic from a set of rasters using tie-points. More...
#include <TiePointsMosaic.h>
Classes | |
class | InputParameters |
Mosaic input parameters. More... | |
class | OutputParameters |
Mosaic output parameters. More... | |
Public Member Functions | |
bool | execute (AlgorithmOutputParameters &outputParams) throw ( te::rp::Exception ) |
Executes the algorithm using the supplied parameters. More... | |
bool | initialize (const AlgorithmInputParameters &inputParams) throw ( te::rp::Exception ) |
Initialize the algorithm instance making it ready for execution. More... | |
bool | isInitialized () const |
Returns true if the algorithm instance is initialized and ready for execution. More... | |
void | reset () throw ( te::rp::Exception ) |
Clear all internal allocated objects and reset the algorithm to its initial state. More... | |
TiePointsMosaic () | |
~TiePointsMosaic () | |
Protected Member Functions | |
bool | executeGeoMosaic (TiePointsMosaic::OutputParameters &outputParams) |
Execute a mosaic of georeferenced images. More... | |
bool | executeTiePointsMosaic (TiePointsMosaic::OutputParameters &outputParams) |
Execute a mosaic of images linket by tie-points. More... | |
Static Protected Member Functions | |
static void | calcBandStatistics (const te::rst::Band &band, const bool &forceNoDataValue, const double &noDataValue, double &mean, double &variance) |
Raster band statistics calcule. More... | |
Protected Attributes | |
TiePointsMosaic::InputParameters | m_inputParameters |
Input execution parameters. More... | |
bool | m_isInitialized |
Tells if this instance is initialized. More... | |
Create a mosaic from a set of rasters using tie-points.
Definition at line 50 of file TiePointsMosaic.h.
te::rp::TiePointsMosaic::TiePointsMosaic | ( | ) |
Definition at line 156 of file TiePointsMosaic.cpp.
References reset().
te::rp::TiePointsMosaic::~TiePointsMosaic | ( | ) |
Definition at line 161 of file TiePointsMosaic.cpp.
|
staticprotected |
Raster band statistics calcule.
band | Input raster band. |
forceNoDataValue | Force the noDataValue to be used as the band no-data value. |
noDataValue | The no-data value to use. |
mean | Pixels mean. |
variance | Pixels variance. |
Definition at line 844 of file TiePointsMosaic.cpp.
References te::rst::Band::getProperty(), te::rst::Band::getValue(), te::rst::BandProperty::m_blkh, te::rst::BandProperty::m_blkw, te::rst::BandProperty::m_nblocksx, te::rst::BandProperty::m_nblocksy, and te::rst::BandProperty::m_noDataValue.
Referenced by execute().
|
virtual |
Executes the algorithm using the supplied parameters.
outputParams | Output parameters. |
Implements te::rp::Algorithm.
Definition at line 165 of file TiePointsMosaic.cpp.
References te::gm::GeometryCollection::add(), te::rp::Blender::blendIntoRaster1(), calcBandStatistics(), te::rp::TiePointsMosaic::InputParameters::FirstRasterLinkingTiePointsT, te::rst::Grid::geoToGrid(), te::rst::Raster::getAccessPolicy(), te::rst::Raster::getBand(), te::rp::FeederConstRaster::getCurrentObj(), te::rp::FeederConstRaster::getCurrentOffset(), te::rst::GetDataTypeRanges(), te::rst::Grid::getExtent(), te::rst::Raster::getGrid(), te::rp::GetIndexedDetailedExtent(), te::gm::Envelope::getLowerLeftX(), te::gm::Envelope::getLowerLeftY(), te::gm::Geometry::getMBR(), te::rst::Raster::getNumberOfBands(), te::rst::Raster::getNumberOfColumns(), te::rst::Raster::getNumberOfRows(), te::rp::FeederConstRaster::getObjsCount(), te::rst::Band::getProperty(), te::rst::Grid::getResolutionX(), te::rst::Grid::getResolutionY(), te::rst::Grid::getSRID(), te::gm::Envelope::getUpperRightX(), te::gm::Envelope::getUpperRightY(), te::rst::Interpolator::getValue(), te::rst::Band::getValue(), te::gm::LineString::getX(), te::gm::LineString::getY(), te::rst::GrayIdxCInt, te::sa::Grid, te::rst::Grid::gridToGeo(), te::rp::Blender::initialize(), te::gm::GeometricTransformation::inverseMap(), te::gm::LineStringType, te::rp::TiePointsMosaic::InputParameters::m_autoEqualize, te::rp::TiePointsMosaic::InputParameters::m_blendMethod, te::rp::TiePointsMosaic::InputParameters::m_enableMultiThread, te::rp::TiePointsMosaic::InputParameters::m_enableProgress, te::rp::TiePointsMosaic::InputParameters::m_feederRasterPtr, te::rp::TiePointsMosaic::InputParameters::m_forceInputNoDataValue, te::rp::TiePointsMosaic::InputParameters::m_geomTransfName, m_inputParameters, te::rp::TiePointsMosaic::InputParameters::m_inputRastersBands, te::rp::TiePointsMosaic::InputParameters::m_interpMethod, m_isInitialized, te::gm::Envelope::m_llx, te::gm::Envelope::m_lly, te::rp::TiePointsMosaic::InputParameters::m_noDataValue, te::rst::BandProperty::m_noDataValue, te::rp::TiePointsMosaic::OutputParameters::m_outputRasterPtr, te::rp::TiePointsMosaic::OutputParameters::m_rInfo, te::rp::TiePointsMosaic::OutputParameters::m_rType, te::rp::TiePointsMosaic::InputParameters::m_tiePoints, te::gm::GTParameters::m_tiePoints, te::rp::TiePointsMosaic::InputParameters::m_tiePointsLinkType, te::gm::Envelope::m_urx, te::gm::Envelope::m_ury, te::rp::TiePointsMosaic::InputParameters::m_useRasterCache, te::rst::RasterFactory::make(), te::common::AbstractFactory< GeometricTransformation, std::string >::make(), te::rp::FeederConstRaster::moveNext(), te::gm::MultiPolygonType, te::rst::NearestNeighbor, te::gm::PolygonType, te::gm::CurvePolygon::push_back(), te::common::RAccess, te::rp::FeederConstRaster::reset(), te::gm::LineString::setPoint(), te::gm::LineString::setSRID(), te::gm::CurvePolygon::setSRID(), te::rst::Band::setValue(), te::gm::LineString::size(), TERP_DEBUG_TRUE_OR_RETURN_FALSE, TERP_LOG_AND_RETURN_FALSE, TERP_TRUE_OR_RETURN_FALSE, and TERP_TRUE_OR_THROW.
Referenced by te::qt::widgets::MosaicWizard::executeTiePointMosaic().
|
protected |
Execute a mosaic of georeferenced images.
outputParams | The algorithm execution parameters. |
|
protected |
Execute a mosaic of images linket by tie-points.
outputParams | The algorithm execution parameters. |
|
virtual |
Initialize the algorithm instance making it ready for execution.
inputParams | Input parameters. |
Implements te::rp::Algorithm.
Definition at line 788 of file TiePointsMosaic.cpp.
References te::rp::FeederConstRaster::getObjsCount(), te::rp::TiePointsMosaic::InputParameters::m_feederRasterPtr, m_inputParameters, te::rp::TiePointsMosaic::InputParameters::m_inputRastersBands, m_isInitialized, te::rp::TiePointsMosaic::InputParameters::m_tiePoints, reset(), TERP_TRUE_OR_RETURN_FALSE, and TERP_TRUE_OR_THROW.
Referenced by te::qt::widgets::MosaicWizard::executeTiePointMosaic().
|
virtual |
Returns true if the algorithm instance is initialized and ready for execution.
Implements te::rp::Algorithm.
Definition at line 839 of file TiePointsMosaic.cpp.
References m_isInitialized.
|
virtual |
Clear all internal allocated objects and reset the algorithm to its initial state.
Implements te::rp::Algorithm.
Definition at line 782 of file TiePointsMosaic.cpp.
References m_inputParameters, m_isInitialized, and te::rp::TiePointsMosaic::InputParameters::reset().
Referenced by initialize(), te::rp::TiePointsMosaic::InputParameters::InputParameters(), te::rp::TiePointsMosaic::InputParameters::operator=(), te::rp::TiePointsMosaic::OutputParameters::operator=(), te::rp::TiePointsMosaic::OutputParameters::OutputParameters(), TiePointsMosaic(), te::rp::TiePointsMosaic::InputParameters::~InputParameters(), and te::rp::TiePointsMosaic::OutputParameters::~OutputParameters().
|
protected |
Input execution parameters.
Definition at line 159 of file TiePointsMosaic.h.
Referenced by execute(), initialize(), and reset().
|
protected |
Tells if this instance is initialized.
Definition at line 161 of file TiePointsMosaic.h.
Referenced by execute(), initialize(), isInitialized(), and reset().