All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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...
 
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...
 

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 ( )

Definition at line 79 of file TiePointsLocator.cpp.

References reset().

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

Definition at line 84 of file TiePointsLocator.cpp.

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 637 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.

Implements te::rp::Algorithm.

Definition at line 88 of file TiePointsLocator.cpp.

References te::gm::GTFilter::applyRansac(), convertMatchedInterestPoints2TiePoints(), 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_interesPointsLocationStrategy, m_isInitialized, te::rp::TiePointsLocatorInputParameters::m_maxTiePoints, te::rp::TiePointsLocatorInputParameters::m_moravecCorrelationWindowWidth, te::rp::TiePointsLocatorInputParameters::m_moravecWindowWidth, 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::TiePointsLocatorInputParameters::m_surfOctavesNumber, te::rp::TiePointsLocatorInputParameters::m_surfScalesNumber, 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::rp::TiePointsLocatorInputParameters::MoravecStrategyT, te::rp::TiePointsLocatorInputParameters::SurfStrategyT, TERP_DEBUG_TRUE_OR_THROW, TERP_LOG_AND_THROW, TERP_TRUE_OR_RETURN_FALSE, and TERP_TRUE_OR_THROW.

Referenced by 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 te::rp::Module::getLastLogStr()

Implements te::rp::Algorithm.

Definition at line 409 of file TiePointsLocator.cpp.

References te::common::AbstractFactory< GeometricTransformation, std::string >::find(), te::rst::Raster::getAccessPolicy(), 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_interesPointsLocationStrategy, 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::rp::TiePointsLocatorInputParameters::MoravecStrategyT, te::common::RAccess, reset(), te::rp::TiePointsLocatorInputParameters::SurfStrategyT, TERP_LOG_AND_RETURN_FALSE, and TERP_TRUE_OR_RETURN_FALSE.

Referenced by 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 632 of file TiePointsLocator.cpp.

References m_isInitialized.

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

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: