All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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) throw ( te::rp::Exception )
 Executes the algorithm using the supplied parameters. More...
 
 GeoMosaic ()
 
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...
 
 ~GeoMosaic ()
 

Protected Member Functions

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

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

Definition at line 154 of file GeoMosaic.cpp.

References reset().

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

Definition at line 159 of file GeoMosaic.cpp.

Member Function Documentation

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.

Definition at line 798 of file GeoMosaic.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().

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

Implements te::rp::Algorithm.

Definition at line 163 of file GeoMosaic.cpp.

References te::gm::GeometryCollection::add(), te::rp::Blender::blendIntoRaster1(), calcBandStatistics(), te::gm::CurvePolygon::clear(), te::rst::Grid::geoToGrid(), te::rst::Raster::getAccessPolicy(), te::rst::Raster::getBand(), te::rp::FeederConstRaster::getCurrentObj(), te::rp::FeederConstRaster::getCurrentOffset(), te::rst::GetDataTypeRanges(), te::rp::GetDetailedExtent(), te::rst::Grid::getExtent(), te::rst::Raster::getGrid(), 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::Raster::getSRID(), te::rst::Grid::getSRID(), te::gm::Envelope::getUpperRightX(), te::gm::Envelope::getUpperRightY(), te::rst::Interpolator::getValue(), te::rst::Band::getValue(), te::rst::GrayIdxCInt, te::sa::Grid, te::rst::Grid::gridToGeo(), te::rp::Blender::initialize(), te::gm::LineStringType, te::rp::GeoMosaic::InputParameters::m_autoEqualize, te::rp::GeoMosaic::InputParameters::m_blendMethod, te::rp::GeoMosaic::InputParameters::m_enableMultiThread, te::rp::GeoMosaic::InputParameters::m_enableProgress, te::rp::GeoMosaic::InputParameters::m_feederRasterPtr, te::rp::GeoMosaic::InputParameters::m_forceInputNoDataValue, m_inputParameters, te::rp::GeoMosaic::InputParameters::m_inputRastersBands, te::rp::GeoMosaic::InputParameters::m_interpMethod, m_isInitialized, te::gm::Envelope::m_llx, te::gm::Envelope::m_lly, te::rp::GeoMosaic::InputParameters::m_noDataValue, te::rst::BandProperty::m_noDataValue, te::rp::GeoMosaic::OutputParameters::m_outputRasterPtr, te::rp::GeoMosaic::OutputParameters::m_rInfo, te::rp::GeoMosaic::OutputParameters::m_rType, te::gm::GTParameters::m_tiePoints, te::gm::Envelope::m_urx, te::gm::Envelope::m_ury, te::rp::GeoMosaic::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(), TERP_DEBUG_TRUE_OR_RETURN_FALSE, TERP_DEBUG_TRUE_OR_THROW, TERP_LOG_AND_RETURN_FALSE, TERP_TRUE_OR_RETURN_FALSE, TERP_TRUE_OR_THROW, and te::gm::LineString::transform().

Referenced by te::qt::widgets::MosaicWizard::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.
bool te::rp::GeoMosaic::initialize ( const AlgorithmInputParameters inputParams)
throw (te::rp::Exception
)
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 te::rp::Module::getLastLogStr()

Implements te::rp::Algorithm.

Definition at line 749 of file GeoMosaic.cpp.

References te::rp::FeederConstRaster::getObjsCount(), te::rp::GeoMosaic::InputParameters::m_feederRasterPtr, m_inputParameters, te::rp::GeoMosaic::InputParameters::m_inputRastersBands, m_isInitialized, reset(), TERP_TRUE_OR_RETURN_FALSE, and TERP_TRUE_OR_THROW.

Referenced by te::qt::widgets::MosaicWizard::executeGeoMosaic().

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.

Definition at line 793 of file GeoMosaic.cpp.

References m_isInitialized.

Member Data Documentation

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

Input execution parameters.

Definition at line 143 of file GeoMosaic.h.

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

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

Tells if this instance is initialized.

Definition at line 145 of file GeoMosaic.h.

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


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