te::rp::TiePointsLocator Class Reference

Tie points locator. More...

#include <TiePointsLocator.h>

Inheritance diagram for te::rp::TiePointsLocator:
te::rp::Algorithm

Classes

class  OutputParameters
 TiePointsLocator output parameters. More...
 

Public Types

typedef TiePointsLocatorInputParameters InputParameters
 

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...
 
 TiePointsLocator ()
 
 ~TiePointsLocator ()
 

Protected Member Functions

void convertMatchedInterestPoints2TiePoints (const te::rp::TiePointsLocatorStrategy::MatchedInterestPointsSetT &matchedInterestPoints, std::vector< te::gm::GTParameters::TiePoint > &tiePoints, std::vector< double > &tiePointsWeights)
 Convert matched interest points to tie-points. More...
 
void setErrorMessage (const std::string &newErrorMessage)
 Set the current error message. More...
 

Protected Attributes

TiePointsLocator::InputParameters m_inputParameters
 TiePointsLocator input execution parameters. More...
 
bool m_isInitialized
 Tells if this instance is initialized. More...
 

Detailed Description

Tie points locator.

Designed to find tie-points inside raster areas.

Definition at line 47 of file TiePointsLocator.h.

Member Typedef Documentation

Constructor & Destructor Documentation

te::rp::TiePointsLocator::TiePointsLocator ( )
te::rp::TiePointsLocator::~TiePointsLocator ( )
default

Referenced by TiePointsLocator().

Member Function Documentation

void te::rp::TiePointsLocator::convertMatchedInterestPoints2TiePoints ( const te::rp::TiePointsLocatorStrategy::MatchedInterestPointsSetT matchedInterestPoints,
std::vector< te::gm::GTParameters::TiePoint > &  tiePoints,
std::vector< double > &  tiePointsWeights 
)
protected

Convert matched interest points to tie-points.

Parameters
matchedInterestPointsThe matched interest points.
tiePointsThe generated tie-points.
tiePointsWeightsThe generated tie-points weights.

Definition at line 565 of file TiePointsLocator.cpp.

Referenced by execute().

bool te::rp::TiePointsLocator::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 86 of file TiePointsLocator.cpp.

References te::gm::GTFilter::applyRansac(), convertMatchedInterestPoints2TiePoints(), te::rp::TiePointsLocatorInputParameters::getSpecStrategyParams(), te::rp::GetTPConvexHullArea(), te::rp::TiePointsLocatorInputParameters::m_enableGeometryFilter, te::rp::TiePointsLocatorInputParameters::m_enableMultiThread, te::rp::TiePointsLocatorInputParameters::m_geometryFilterAssurance, te::rp::TiePointsLocatorInputParameters::m_geomTransfMaxError, te::rp::TiePointsLocatorInputParameters::m_geomTransfName, m_inputParameters, te::rp::TiePointsLocatorInputParameters::m_interesPointsLocationStrategyName, m_isInitialized, te::rp::TiePointsLocatorInputParameters::m_maxTiePoints, te::rp::TiePointsLocatorInputParameters::m_raster1TargetAreaHeight, te::rp::TiePointsLocatorInputParameters::m_raster1TargetAreaWidth, te::rp::TiePointsLocatorInputParameters::m_raster2TargetAreaHeight, te::rp::TiePointsLocatorInputParameters::m_raster2TargetAreaWidth, te::rp::TiePointsLocatorInputParameters::m_subSampleOptimizationMinTPAreaCoverage, te::rp::TiePointsLocatorInputParameters::m_subSampleOptimizationMinTPNumberFactor, te::rp::TiePointsLocatorInputParameters::m_subSampleOptimizationRescaleFactor, te::rp::TiePointsLocator::OutputParameters::m_tiePoints, te::gm::GTParameters::m_tiePoints, te::rp::TiePointsLocator::OutputParameters::m_tiePointsWeights, te::rp::TiePointsLocator::OutputParameters::m_transformationPtr, te::common::AbstractFactory< GeometricTransformation, std::string >::make(), te::common::AbstractFactory< te::rp::TiePointsLocatorStrategy, std::string, std::less< std::string > >::make(), te::rp::TiePointsLocatorInputParameters::setSpecStrategyParams(), TERP_DEBUG_TRUE_OR_THROW, TERP_INSTANCE_TRUE_OR_RETURN_FALSE, and TERP_TRUE_OR_THROW.

Referenced by BOOST_AUTO_TEST_CASE(), te::rp::SequenceMosaic::execute(), te::qt::widgets::TiePointsLocatorDialog::on_autoAcquireTiePointsPushButton_clicked(), and te::qt::widgets::TiePointLocatorWidget::onAutoAcquireTiePointsToolButtonClicked().

bool te::rp::TiePointsLocator::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 Algorithm::getErrorMessage()

Implements te::rp::Algorithm.

Definition at line 350 of file TiePointsLocator.cpp.

References te::common::AbstractFactory< GeometricTransformation, std::string >::find(), te::rst::Raster::getAccessPolicy(), te::common::AbstractFactory< te::rp::TiePointsLocatorStrategy, std::string, std::less< std::string > >::getDictionary(), te::rst::Raster::getNumberOfBands(), te::rst::Raster::getNumberOfColumns(), te::rst::Raster::getNumberOfRows(), te::rp::TiePointsLocatorInputParameters::m_geometryFilterAssurance, te::rp::TiePointsLocatorInputParameters::m_geomTransfMaxError, te::rp::TiePointsLocatorInputParameters::m_geomTransfName, te::rp::TiePointsLocatorInputParameters::m_inMaskRaster1Ptr, te::rp::TiePointsLocatorInputParameters::m_inMaskRaster2Ptr, m_inputParameters, te::rp::TiePointsLocatorInputParameters::m_inRaster1Bands, te::rp::TiePointsLocatorInputParameters::m_inRaster1Ptr, te::rp::TiePointsLocatorInputParameters::m_inRaster2Bands, te::rp::TiePointsLocatorInputParameters::m_inRaster2Ptr, te::rp::TiePointsLocatorInputParameters::m_interesPointsLocationStrategyName, m_isInitialized, te::rp::TiePointsLocatorInputParameters::m_pixelSizeXRelation, te::rp::TiePointsLocatorInputParameters::m_pixelSizeYRelation, te::rp::TiePointsLocatorInputParameters::m_raster1TargetAreaColStart, te::rp::TiePointsLocatorInputParameters::m_raster1TargetAreaHeight, te::rp::TiePointsLocatorInputParameters::m_raster1TargetAreaLineStart, te::rp::TiePointsLocatorInputParameters::m_raster1TargetAreaWidth, te::rp::TiePointsLocatorInputParameters::m_raster2TargetAreaColStart, te::rp::TiePointsLocatorInputParameters::m_raster2TargetAreaHeight, te::rp::TiePointsLocatorInputParameters::m_raster2TargetAreaLineStart, te::rp::TiePointsLocatorInputParameters::m_raster2TargetAreaWidth, te::rp::TiePointsLocatorInputParameters::m_subSampleOptimizationMinTPAreaCoverage, te::rp::TiePointsLocatorInputParameters::m_subSampleOptimizationMinTPNumberFactor, te::rp::TiePointsLocatorInputParameters::m_subSampleOptimizationRescaleFactor, te::rp::TiePointsLocatorInputParameters::m_tiePointsSubSectorsSplitFactor, te::common::RAccess, te::rp::TiePointsLocator::OutputParameters::reset(), and TERP_INSTANCE_TRUE_OR_RETURN_FALSE.

Referenced by BOOST_AUTO_TEST_CASE(), te::rp::SequenceMosaic::execute(), te::qt::widgets::TiePointsLocatorDialog::on_autoAcquireTiePointsPushButton_clicked(), and te::qt::widgets::TiePointLocatorWidget::onAutoAcquireTiePointsToolButtonClicked().

bool te::rp::TiePointsLocator::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 560 of file TiePointsLocator.cpp.

References m_isInitialized.

void te::rp::TiePointsLocator::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 342 of file TiePointsLocator.cpp.

References m_inputParameters, m_isInitialized, te::rp::Algorithm::reset(), and te::rp::TiePointsLocatorInputParameters::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

TiePointsLocator::InputParameters te::rp::TiePointsLocator::m_inputParameters
protected

TiePointsLocator input execution parameters.

Definition at line 104 of file TiePointsLocator.h.

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

bool te::rp::TiePointsLocator::m_isInitialized
protected

Tells if this instance is initialized.

Definition at line 106 of file TiePointsLocator.h.

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


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