te::rp::TiePointsMosaic Class Reference

Create a mosaic from a set of rasters using tie-points. More...

#include <TiePointsMosaic.h>

Inheritance diagram for te::rp::TiePointsMosaic:
te::rp::Algorithm

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...
 
const std::string & getErrorMessage () const
 Return the current error message if there is any. 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...
 
void setErrorMessage (const std::string &newErrorMessage)
 Set the current error message. 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...
 

Detailed Description

Create a mosaic from a set of rasters using tie-points.

Note
The first raster will always be taken as reference to define the mosaic resolution and SRS.

Definition at line 50 of file TiePointsMosaic.h.

Constructor & Destructor Documentation

te::rp::TiePointsMosaic::TiePointsMosaic ( )
te::rp::TiePointsMosaic::~TiePointsMosaic ( )
default

Referenced by TiePointsMosaic().

Member Function Documentation

void te::rp::TiePointsMosaic::calcBandStatistics ( const te::rst::Band band,
const bool forceNoDataValue,
const double &  noDataValue,
double &  mean,
double &  variance 
)
staticprotected

Raster band statistics calcule.

Parameters
bandInput raster band.
forceNoDataValueForce the noDataValue to be used as the band no-data value.
noDataValueThe no-data value to use.
meanPixels mean.
variancePixels variance.

Definition at line 881 of file TiePointsMosaic.cpp.

References col, te::rst::Band::getProperty(), te::rst::Band::getValue(), line, 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, nCols, and nLines.

Referenced by execute().

bool te::rp::TiePointsMosaic::execute ( AlgorithmOutputParameters outputParams)
throw (te::rp::Exception
)
virtual

Executes the algorithm using the supplied parameters.

Parameters
outputParamsOutput parameters.
Returns
true if OK, false on errors.
Note
A return error string can be obtained via Algorithm::getErrorMessage()

Implements te::rp::Algorithm.

Definition at line 163 of file TiePointsMosaic.cpp.

References te::gm::GeometryCollection::add(), te::rp::Blender::blendIntoRaster1(), calcBandStatistics(), te::rp::TiePointsMosaic::InputParameters::clone(), col, 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::MultiPolygonMType, te::gm::MultiPolygonType, te::gm::MultiPolygonZMType, te::gm::MultiPolygonZType, nCols, te::rst::NearestNeighbor, pixelValue, te::gm::PolygonMType, te::gm::PolygonType, te::gm::PolygonZMType, te::gm::PolygonZType, 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_INSTANCE_TRUE_OR_RETURN_FALSE, TERP_LOGWARN, and TERP_TRUE_OR_THROW.

Referenced by BOOST_AUTO_TEST_CASE(), and te::qt::widgets::MosaicWizard::executeTiePointMosaic().

bool te::rp::TiePointsMosaic::executeGeoMosaic ( TiePointsMosaic::OutputParameters outputParams)
protected

Execute a mosaic of georeferenced images.

Parameters
outputParamsThe algorithm execution parameters.
Returns
true if ok, false on errors.
bool te::rp::TiePointsMosaic::executeTiePointsMosaic ( TiePointsMosaic::OutputParameters outputParams)
protected

Execute a mosaic of images linket by tie-points.

Parameters
outputParamsThe algorithm execution parameters.
Returns
true if ok, false on errors.
bool te::rp::TiePointsMosaic::initialize ( const AlgorithmInputParameters inputParams)
throw (te::rp::Exception
)
virtual
bool te::rp::TiePointsMosaic::isInitialized ( ) const
virtual

Returns true if the algorithm instance is initialized and ready for execution.

Returns
true if the algorithm instance is initialized and ready for execution.

Implements te::rp::Algorithm.

Definition at line 876 of file TiePointsMosaic.cpp.

References m_isInitialized.

void te::rp::TiePointsMosaic::reset ( )
throw (te::rp::Exception
)
virtual

Clear all internal allocated objects and reset the algorithm to its initial state.

Reimplemented from te::rp::Algorithm.

Definition at line 817 of file TiePointsMosaic.cpp.

References m_inputParameters, m_isInitialized, te::rp::Algorithm::reset(), and te::rp::TiePointsMosaic::InputParameters::reset().

void te::rp::Algorithm::setErrorMessage ( const std::string &  newErrorMessage)
protectedinherited

Set the current error message.

Parameters
newErrorMessageNew error message;

Definition at line 49 of file rp/Algorithm.cpp.

References te::rp::Algorithm::m_errorMessage.

Member Data Documentation

TiePointsMosaic::InputParameters te::rp::TiePointsMosaic::m_inputParameters
protected

Input execution parameters.

Definition at line 159 of file TiePointsMosaic.h.

Referenced by execute(), initialize(), and reset().

bool te::rp::TiePointsMosaic::m_isInitialized
protected

Tells if this instance is initialized.

Definition at line 161 of file TiePointsMosaic.h.

Referenced by execute(), initialize(), isInitialized(), and reset().


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