te::rp::GeoMosaic Class Reference

Create a mosaic from a set of geo-referenced rasters. More...

#include <GeoMosaic.h>

Inheritance diagram for te::rp::GeoMosaic:
te::rp::Algorithm

Classes

class  InputParameters
 GeoMosaic input parameters. More...
 
class  OutputParameters
 GeoMosaic output parameters. More...
 

Public Member Functions

bool execute (AlgorithmOutputParameters &outputParams) _NOEXCEPT_OP(false)
 Executes the algorithm using the supplied parameters. More...
 
 GeoMosaic ()
 
const std::string & getErrorMessage () const
 Return the current error message if there is any. More...
 
bool initialize (const AlgorithmInputParameters &inputParams) _NOEXCEPT_OP(false)
 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 () _NOEXCEPT_OP(false)
 Clear all internal allocated objects and reset the algorithm to its initial state. More...
 
 ~GeoMosaic ()
 

Protected Member Functions

bool executeGeoMosaic (GeoMosaic::OutputParameters &outputParams)
 Execute a mosaic of georeferenced images. 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

GeoMosaic::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 geo-referenced rasters.

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

Definition at line 48 of file GeoMosaic.h.

Constructor & Destructor Documentation

◆ GeoMosaic()

te::rp::GeoMosaic::GeoMosaic ( )

◆ ~GeoMosaic()

te::rp::GeoMosaic::~GeoMosaic ( )

Member Function Documentation

◆ calcBandStatistics()

static void te::rp::GeoMosaic::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.

◆ execute()

bool te::rp::GeoMosaic::execute ( AlgorithmOutputParameters outputParams)
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.

◆ executeGeoMosaic()

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

Execute a mosaic of georeferenced images.

Parameters
outputParamsThe algorithm execution parameters.
Returns
true if ok, false on errors.

◆ getErrorMessage()

const std::string& te::rp::Algorithm::getErrorMessage ( ) const
inherited

Return the current error message if there is any.

Returns
Return the current error message if there is any.

◆ initialize()

bool te::rp::GeoMosaic::initialize ( const AlgorithmInputParameters inputParams)
virtual

Initialize the algorithm instance making it ready for execution.

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

Implements te::rp::Algorithm.

◆ isInitialized()

bool te::rp::GeoMosaic::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.

◆ reset()

void te::rp::GeoMosaic::reset ( )
virtual

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

Reimplemented from te::rp::Algorithm.

◆ setErrorMessage()

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

Set the current error message.

Parameters
newErrorMessageNew error message;

Member Data Documentation

◆ m_inputParameters

GeoMosaic::InputParameters te::rp::GeoMosaic::m_inputParameters
protected

Input execution parameters.

Definition at line 143 of file GeoMosaic.h.

◆ m_isInitialized

bool te::rp::GeoMosaic::m_isInitialized
protected

Tells if this instance is initialized.

Definition at line 145 of file GeoMosaic.h.


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