All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
te::rp::TiePointsLocatorMoravecStrategy Class Reference

Tie-points locator Moravec strategy. More...

#include <TiePointsLocatorMoravecStrategy.h>

Inheritance diagram for te::rp::TiePointsLocatorMoravecStrategy:
te::rp::TiePointsLocatorStrategy

Classes

class  ExecuteMatchingByCorrelationThreadEntryParams
 The parameters passed to the matchCorrelationEuclideanThreadEntry method. More...
 
class  MoravecLocatorThreadParams
 The parameters passed to the moravecLocatorThreadEntry method. More...
 

Public Member Functions

 ~TiePointsLocatorMoravecStrategy ()
 

Protected Types

typedef te::rp::Matrix< double > DoublesMatrix
 A matrix do store double values. More...
 
typedef te::rp::Matrix< float > FloatsMatrix
 A matrix do store float values. More...
 
typedef std::list< InterestPointTInterestPointsListT
 
typedef std::multiset
< InterestPointT
InterestPointsSetT
 
typedef std::multiset
< MatchedInterestPointsT
MatchedInterestPointsSetT
 
typedef te::rp::Matrix
< unsigned char > 
UCharsMatrix
 A matrix do store unsigned char values. More...
 

Protected Member Functions

bool executeMatchingByCorrelation (const FloatsMatrix &featuresSet1, const FloatsMatrix &featuresSet2, const InterestPointsSetT &interestPointsSet1, const InterestPointsSetT &interestPointsSet2, te::gm::GeometricTransformation const *const raster1ToRaster2TransfPtr, const double raster1ToRaster2TransfDMapError, MatchedInterestPointsSetT &matchedPoints) const
 Match each feature using correlation. More...
 
unsigned int getAutoMaxTiePointsNumber () const
 Returns a automatically calculated optimum maximum amount tie-points following the current parameters. More...
 
bool getMatchedInterestPoints (te::gm::GeometricTransformation const *const raster1ToRaster2TransfPtr, const double raster1ToRaster2TransfDMapError, MatchedInterestPointsSetT &matchedInterestPoints)
 Try to find matched interest points. More...
 
bool initialize (const te::rp::TiePointsLocatorInputParameters &inputParameters)
 Initialize the strategy. More...
 
bool locateMoravecInterestPoints (const unsigned int maxInterestPoints, const FloatsMatrix &rasterData, UCharsMatrix const *maskRasterDataPtr, InterestPointsSetT &interestPoints) const
 Moravec interest points locator. More...
 
void reset ()
 Clear all internal allocated resources and go back to the initial not-initialized state. More...
 
 TiePointsLocatorMoravecStrategy ()
 

Static Protected Member Functions

static bool applyMeanFilter (const FloatsMatrix &inputData, FloatsMatrix &outputData, const unsigned int iterationsNumber)
 Mean Filter. More...
 
static bool checkForDuplicatedInterestPoints (const InterestPointsSetT &interestPoints, double &x, double &y)
 Check for duplicated interest points. More...
 
static void createTifFromMatrix (const FloatsMatrix &rasterData, const InterestPointsSetT &interestPoints, const std::string &tifFileName)
 Moravec interest points locator. More...
 
static void executeMatchingByCorrelationThreadEntry (ExecuteMatchingByCorrelationThreadEntryParams *paramsPtr)
 Correlation/Euclidean match thread entry. More...
 
static void features2Tiff (const DoublesMatrix &features, const InterestPointsSetT &interestPoints, const std::string &fileNameBeginning)
 Save the generated features to tif files. More...
 
static bool generateCorrelationFeatures (const InterestPointsSetT &interestPoints, const unsigned int correlationWindowWidth, const FloatsMatrix &rasterData, FloatsMatrix &features, InterestPointsSetT &validInteresPoints)
 Generate correlation features ( normalized - unit vector ) matrix for the given interes points. More...
 
static bool loadRasterData (te::rst::Raster const *rasterPtr, const std::vector< unsigned int > &rasterBands, te::rst::Raster const *maskRasterPtr, const unsigned int maskRasterBand, const unsigned int rasterTargetAreaLineStart, const unsigned int rasterTargetAreaColStart, const unsigned int rasterTargetAreaWidth, const unsigned int rasterTargetAreaHeight, const double desiredRescaleFactorX, const double desiredRescaleFactorY, const te::rst::Interpolator::Method rasterInterpMethod, const unsigned char maxMemPercentUsage, std::vector< boost::shared_ptr< FloatsMatrix > > &loadedRasterData, UCharsMatrix &loadedMaskRasterData, double &achievedRescaleFactorX, double &achievedRescaleFactorY)
 Load rasters data (normalized between 0 and 1). More...
 
static void locateMoravecInterestPointsThreadEntry (MoravecLocatorThreadParams *paramsPtr)
 Movavec locator thread entry. More...
 
template<typename BufferElementT >
static void roolUpBuffer (BufferElementT **bufferPtr, const unsigned int &bufferLinesNumber)
 RoolUp a buffer of lines. More...
 

Protected Attributes

te::rp::TiePointsLocatorInputParameters m_inputParameters
 Input parameters. More...
 
bool m_isInitialized
 true if this instance is initialized. More...
 

Friends

class TiePointsLocator
 

Detailed Description

Tie-points locator Moravec strategy.

Definition at line 46 of file TiePointsLocatorMoravecStrategy.h.

Member Typedef Documentation

A matrix do store double values.

Definition at line 71 of file TiePointsLocatorStrategy.h.

A matrix do store float values.

Definition at line 65 of file TiePointsLocatorStrategy.h.

Interest points list container type

Definition at line 128 of file TiePointsLocatorStrategy.h.

typedef std::multiset< InterestPointT > te::rp::TiePointsLocatorStrategy::InterestPointsSetT
protectedinherited

Interest points set container type

Definition at line 124 of file TiePointsLocatorStrategy.h.

Matched interest points container type

Definition at line 171 of file TiePointsLocatorStrategy.h.

A matrix do store unsigned char values.

Definition at line 77 of file TiePointsLocatorStrategy.h.

Constructor & Destructor Documentation

te::rp::TiePointsLocatorMoravecStrategy::~TiePointsLocatorMoravecStrategy ( )

Definition at line 40 of file TiePointsLocatorMoravecStrategy.cpp.

References reset().

te::rp::TiePointsLocatorMoravecStrategy::TiePointsLocatorMoravecStrategy ( )
protected

Definition at line 35 of file TiePointsLocatorMoravecStrategy.cpp.

References reset().

Member Function Documentation

bool te::rp::TiePointsLocatorMoravecStrategy::applyMeanFilter ( const FloatsMatrix inputData,
FloatsMatrix outputData,
const unsigned int  iterationsNumber 
)
staticprotected

Mean Filter.

Parameters
inputDataThe input data.
outputDataThe output data.
iterationsNumberThe number of filter iterations.
Returns
true if ok, false on errors.

Definition at line 676 of file TiePointsLocatorMoravecStrategy.cpp.

References te::rp::Matrix< TemplateElementType >::AutoMemPol, te::rp::Matrix< TemplateElementType >::getColumnsNumber(), te::rp::Matrix< TemplateElementType >::getLinesNumber(), te::rp::Matrix< TemplateElementType >::reset(), and TERP_TRUE_OR_RETURN_FALSE.

Referenced by getMatchedInterestPoints().

bool te::rp::TiePointsLocatorStrategy::checkForDuplicatedInterestPoints ( const InterestPointsSetT interestPoints,
double &  x,
double &  y 
)
staticprotectedinherited

Check for duplicated interest points.

Parameters
xThe duplicated tie-points X coord.
yThe duplicated tie-points Y coord.
Returns
false if duplicated interest points were found.

Definition at line 363 of file TiePointsLocatorStrategy.cpp.

Referenced by te::rp::TiePointsLocatorSURFStrategy::locateSurfInterestPointsThreadEntry().

void te::rp::TiePointsLocatorStrategy::createTifFromMatrix ( const FloatsMatrix rasterData,
const InterestPointsSetT interestPoints,
const std::string &  tifFileName 
)
staticprotectedinherited

Moravec interest points locator.

Parameters
rasterDataThe loaded raster data.
interestPointsThe found raster 1 interest points (coords related to rasterData lines/cols).
tifFileNameTif file name.

Definition at line 222 of file TiePointsLocatorStrategy.cpp.

References te::rst::BlueCInt, te::rp::Matrix< TemplateElementType >::getColumnsNumber(), te::rp::Matrix< TemplateElementType >::getLinesNumber(), te::rst::GreenCInt, te::sa::Grid, te::rst::RasterFactory::make(), te::rst::RedCInt, TERP_TRUE_OR_THROW, and te::dt::UCHAR_TYPE.

bool te::rp::TiePointsLocatorMoravecStrategy::executeMatchingByCorrelation ( const FloatsMatrix featuresSet1,
const FloatsMatrix featuresSet2,
const InterestPointsSetT interestPointsSet1,
const InterestPointsSetT interestPointsSet2,
te::gm::GeometricTransformation const *const  raster1ToRaster2TransfPtr,
const double  raster1ToRaster2TransfDMapError,
MatchedInterestPointsSetT matchedPoints 
) const
protected

Match each feature using correlation.

Parameters
featuresSet1Features set 1.
featuresSet2Features set 2.
interestPointsSet1The interest pionts set 1 (full raster 1 indexed coods reference).
interestPointsSet2The interest pionts set 2 (full raster 1 indexed coods reference).
raster1ToRaster2TransfPtrA pointer to a transformation direct mapping raster 1 indexed coords into raster 2 indexed coords, of an empty pointer if there is no transformation avaliable.
raster1ToRaster2TransfDMapErrorThe expected transformation error.
matchedPointsThe matched points (full raster 1 indexed coods reference).
Note
Each matched point feature value ( MatchedInterestPoint::m_feature ) will be set to the absolute value of the correlation between then.

Definition at line 1504 of file TiePointsLocatorMoravecStrategy.cpp.

References executeMatchingByCorrelationThreadEntry(), te::rp::Matrix< TemplateElementType >::getColumnsNumber(), te::rp::Matrix< TemplateElementType >::getLinesNumber(), te::rp::Matrix< TemplateElementType >::getMemPolicy(), te::common::GetPhysProcNumber(), te::rp::TiePointsLocatorMoravecStrategy::ExecuteMatchingByCorrelationThreadEntryParams::m_corrMatrixPtr, te::rp::TiePointsLocatorInputParameters::m_enableMultiThread, te::rp::TiePointsLocatorStrategy::MatchedInterestPointsT::m_feature, te::rp::TiePointsLocatorMoravecStrategy::ExecuteMatchingByCorrelationThreadEntryParams::m_featuresSet1Ptr, te::rp::TiePointsLocatorMoravecStrategy::ExecuteMatchingByCorrelationThreadEntryParams::m_featuresSet2Ptr, m_inputParameters, te::rp::TiePointsLocatorMoravecStrategy::ExecuteMatchingByCorrelationThreadEntryParams::m_interestPointsSet1Ptr, te::rp::TiePointsLocatorMoravecStrategy::ExecuteMatchingByCorrelationThreadEntryParams::m_interestPointsSet2Ptr, te::rp::TiePointsLocatorInputParameters::m_moravecMinAbsCorrelation, te::rp::TiePointsLocatorMoravecStrategy::ExecuteMatchingByCorrelationThreadEntryParams::m_nextFeatureIdx1ToProcessPtr, te::rp::TiePointsLocatorStrategy::MatchedInterestPointsT::m_point1, te::rp::TiePointsLocatorStrategy::MatchedInterestPointsT::m_point2, te::rp::TiePointsLocatorMoravecStrategy::ExecuteMatchingByCorrelationThreadEntryParams::m_raster1ToRaster2TransfPtr, te::rp::TiePointsLocatorMoravecStrategy::ExecuteMatchingByCorrelationThreadEntryParams::m_searchOptTreeSearchRadius, te::rp::TiePointsLocatorMoravecStrategy::ExecuteMatchingByCorrelationThreadEntryParams::m_syncMutexPtr, te::rp::Matrix< TemplateElementType >::RAMMemPol, te::rp::Matrix< TemplateElementType >::reset(), and TERP_TRUE_OR_RETURN_FALSE.

Referenced by getMatchedInterestPoints().

void te::rp::TiePointsLocatorMoravecStrategy::executeMatchingByCorrelationThreadEntry ( ExecuteMatchingByCorrelationThreadEntryParams paramsPtr)
staticprotected

Correlation/Euclidean match thread entry.

Parameters
paramsPtrA pointer to the thread parameters.

Definition at line 1667 of file TiePointsLocatorMoravecStrategy.cpp.

References te::gm::GeometricTransformation::clone(), te::rp::Matrix< TemplateElementType >::getColumnsNumber(), te::rp::Matrix< TemplateElementType >::getLinesNumber(), te::rp::Matrix< TemplateElementType >::getMemPolicy(), te::sam::rtree::Index< DATATYPE, MAXNODES, MINNODES >::insert(), te::rp::TiePointsLocatorMoravecStrategy::ExecuteMatchingByCorrelationThreadEntryParams::m_corrMatrixPtr, te::rp::TiePointsLocatorMoravecStrategy::ExecuteMatchingByCorrelationThreadEntryParams::m_featuresSet1Ptr, te::rp::TiePointsLocatorMoravecStrategy::ExecuteMatchingByCorrelationThreadEntryParams::m_featuresSet2Ptr, te::rp::TiePointsLocatorMoravecStrategy::ExecuteMatchingByCorrelationThreadEntryParams::m_interestPointsSet1Ptr, te::rp::TiePointsLocatorMoravecStrategy::ExecuteMatchingByCorrelationThreadEntryParams::m_interestPointsSet2Ptr, te::gm::Envelope::m_llx, te::gm::Envelope::m_lly, te::rp::TiePointsLocatorMoravecStrategy::ExecuteMatchingByCorrelationThreadEntryParams::m_nextFeatureIdx1ToProcessPtr, te::rp::TiePointsLocatorMoravecStrategy::ExecuteMatchingByCorrelationThreadEntryParams::m_raster1ToRaster2TransfPtr, te::rp::TiePointsLocatorMoravecStrategy::ExecuteMatchingByCorrelationThreadEntryParams::m_searchOptTreeSearchRadius, te::rp::TiePointsLocatorMoravecStrategy::ExecuteMatchingByCorrelationThreadEntryParams::m_syncMutexPtr, te::gm::Envelope::m_urx, te::gm::Envelope::m_ury, te::rp::TiePointsLocatorStrategy::InterestPointT::m_x, te::rp::TiePointsLocatorStrategy::InterestPointT::m_y, te::rp::Matrix< TemplateElementType >::RAMMemPol, and te::sam::rtree::Index< DATATYPE, MAXNODES, MINNODES >::search().

Referenced by executeMatchingByCorrelation().

void te::rp::TiePointsLocatorStrategy::features2Tiff ( const DoublesMatrix features,
const InterestPointsSetT interestPoints,
const std::string &  fileNameBeginning 
)
staticprotectedinherited

Save the generated features to tif files.

Parameters
featuresThe features to be saved.
validInteresPointsThe interest pionts related to each feature inside the features matrix.
fileNameStartThe output file name beginning.

Definition at line 298 of file TiePointsLocatorStrategy.cpp.

References te::rp::Matrix< TemplateElementType >::getColumnsNumber(), te::rp::Matrix< TemplateElementType >::getLinesNumber(), te::sa::Grid, te::rst::RasterFactory::make(), MAX, MIN, te::rst::RedCInt, TERP_TRUE_OR_THROW, and te::dt::UCHAR_TYPE.

bool te::rp::TiePointsLocatorMoravecStrategy::generateCorrelationFeatures ( const InterestPointsSetT interestPoints,
const unsigned int  correlationWindowWidth,
const FloatsMatrix rasterData,
FloatsMatrix features,
InterestPointsSetT validInteresPoints 
)
staticprotected

Generate correlation features ( normalized - unit vector ) matrix for the given interes points.

Parameters
interestPointsThe interest points (coords related to rasterData lines/cols).
correlationWindowWidthThe correlation window width used to correlate points between the images.
rasterDataThe loaded raster data.
featuresThe generated features matrix (one feature per line, one feature per interes point).
validInteresPointsThe valid interest pionts related to each feature inside the features matrix (some interest points may be invalid and are removed).
Returns
true if ok, false on errors.

Definition at line 1232 of file TiePointsLocatorMoravecStrategy.cpp.

References te::rp::Matrix< TemplateElementType >::getColumnsNumber(), te::rp::Matrix< TemplateElementType >::getLinesNumber(), te::rp::Matrix< TemplateElementType >::reset(), ROUND, and TERP_TRUE_OR_RETURN_FALSE.

Referenced by getMatchedInterestPoints().

bool te::rp::TiePointsLocatorMoravecStrategy::getMatchedInterestPoints ( te::gm::GeometricTransformation const *const  raster1ToRaster2TransfPtr,
const double  raster1ToRaster2TransfDMapError,
MatchedInterestPointsSetT matchedInterestPoints 
)
protectedvirtual

Try to find matched interest points.

Parameters
matchedInterestPointsThe matched interest points.
raster1ToRaster2TransfPtrA pointer to a transformation (estimation) direct mapping raster 1 indexed coords into raster 2 indexed coords, of an empty pointer if there is no transformation avaliable.
raster1ToRaster2TransfDMapErrorThe expected transformation error.
Returns
true if OK, false on errors.

Implements te::rp::TiePointsLocatorStrategy.

Definition at line 89 of file TiePointsLocatorMoravecStrategy.cpp.

References applyMeanFilter(), te::rp::Matrix< TemplateElementType >::AutoMemPol, te::rp::Matrix< TemplateElementType >::clear(), executeMatchingByCorrelation(), generateCorrelationFeatures(), te::rp::Matrix< TemplateElementType >::getLinesNumber(), te::rp::TiePointsLocatorStrategy::loadRasterData(), locateMoravecInterestPoints(), te::rp::TiePointsLocatorInputParameters::m_enableProgress, te::rp::TiePointsLocatorStrategy::MatchedInterestPointsT::m_feature, te::rp::TiePointsLocatorStrategy::InterestPointT::m_feature1, 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_interpMethod, m_isInitialized, te::rp::TiePointsLocatorInputParameters::m_maxTiePoints, te::rp::TiePointsLocatorInputParameters::m_moravecCorrelationWindowWidth, te::rp::TiePointsLocatorInputParameters::m_moravecNoiseFilterIterations, te::rp::TiePointsLocatorInputParameters::m_pixelSizeXRelation, te::rp::TiePointsLocatorInputParameters::m_pixelSizeYRelation, te::rp::TiePointsLocatorStrategy::MatchedInterestPointsT::m_point1, te::rp::TiePointsLocatorStrategy::MatchedInterestPointsT::m_point2, 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_subSampleOptimizationRescaleFactor, te::rp::TiePointsLocatorStrategy::InterestPointT::m_x, te::rp::TiePointsLocatorStrategy::InterestPointT::m_y, te::rp::Matrix< TemplateElementType >::RAMMemPol, te::rp::Matrix< TemplateElementType >::reset(), and TERP_TRUE_OR_RETURN_FALSE.

bool te::rp::TiePointsLocatorStrategy::loadRasterData ( te::rst::Raster const *  rasterPtr,
const std::vector< unsigned int > &  rasterBands,
te::rst::Raster const *  maskRasterPtr,
const unsigned int  maskRasterBand,
const unsigned int  rasterTargetAreaLineStart,
const unsigned int  rasterTargetAreaColStart,
const unsigned int  rasterTargetAreaWidth,
const unsigned int  rasterTargetAreaHeight,
const double  desiredRescaleFactorX,
const double  desiredRescaleFactorY,
const te::rst::Interpolator::Method  rasterInterpMethod,
const unsigned char  maxMemPercentUsage,
std::vector< boost::shared_ptr< FloatsMatrix > > &  loadedRasterData,
UCharsMatrix loadedMaskRasterData,
double &  achievedRescaleFactorX,
double &  achievedRescaleFactorY 
)
staticprotectedinherited

Load rasters data (normalized between 0 and 1).

Parameters
rasterPtrInput raster pointer.
rasterBandsInput raster bands.
maskRasterPtrThe related input mask raster pointer (or zero, if no mask raster is avaliable).
maskRasterBandThe input mask raster band to use.
rasterTargetAreaLineStartThe raster target area initial line.
rasterTargetAreaColStartThe raster target area initial column.
rasterTargetAreaWidthThe raster target area width.
rasterTargetAreaHeightThe raster target area height.
desiredRescaleFactorXThe desired Scale factor to be applied on the loaded data.
desiredRescaleFactorYThe desired Scale factor to be applied on the loaded data.
rasterInterpMethodThe interpolation used when loading the input raster.
maxMemPercentUsageThe maximum amount (percent) of memory to use for the loaded data [0,100].
loadedRasterDataThe loaded raster data.
loadedMaskRasterDataThe loaded mask raster data.
desiredRescaleFactorXThe real achieved Scale factor.
desiredRescaleFactorYThe real achieved Scale factor.
Returns
true if ok, false on errors.

Definition at line 54 of file TiePointsLocatorStrategy.cpp.

References te::rp::Matrix< TemplateElementType >::AutoMemPol, te::rp::Matrix< double >::AutoMemPol, te::rst::Raster::getBand(), te::rst::Interpolator::getValue(), te::rst::Band::getValue(), MAX, te::rp::Matrix< TemplateElementType >::reset(), te::rp::TiePointsLocatorStrategy::reset(), and TERP_TRUE_OR_RETURN_FALSE.

Referenced by getMatchedInterestPoints(), and te::rp::TiePointsLocatorSURFStrategy::getMatchedInterestPoints().

bool te::rp::TiePointsLocatorMoravecStrategy::locateMoravecInterestPoints ( const unsigned int  maxInterestPoints,
const FloatsMatrix rasterData,
UCharsMatrix const *  maskRasterDataPtr,
InterestPointsSetT interestPoints 
) const
protected

Moravec interest points locator.

Parameters
maxInterestPointsThe maximum number of interest points to find.
rasterDataThe loaded raster data.
maskRasterDataPtrThe loaded mask raster data pointer (or zero if no mask is avaliable).
interestPointsThe found interest points (coords related to rasterData lines/cols).
Note
InterestPointT::m_feature1 will be sum of differences between the Moravec filter response of each pixel and its neighborhoods (always a positive value).
Returns
true if ok, false on errors.

Definition at line 795 of file TiePointsLocatorMoravecStrategy.cpp.

References te::rp::Matrix< TemplateElementType >::getColumnsNumber(), te::rp::Matrix< TemplateElementType >::getLinesNumber(), te::common::GetPhysProcNumber(), locateMoravecInterestPointsThreadEntry(), te::rp::TiePointsLocatorInputParameters::m_enableMultiThread, m_inputParameters, te::rp::TiePointsLocatorMoravecStrategy::MoravecLocatorThreadParams::m_interestPointsAccessMutexPtr, te::rp::TiePointsLocatorMoravecStrategy::MoravecLocatorThreadParams::m_interestPointsSubSectorsPtr, te::rp::TiePointsLocatorMoravecStrategy::MoravecLocatorThreadParams::m_maskRasterDataPtr, te::rp::TiePointsLocatorMoravecStrategy::MoravecLocatorThreadParams::m_maxInterestPointsBySubSector, te::rp::TiePointsLocatorMoravecStrategy::MoravecLocatorThreadParams::m_moravecWindowWidth, te::rp::TiePointsLocatorInputParameters::m_moravecWindowWidth, te::rp::TiePointsLocatorMoravecStrategy::MoravecLocatorThreadParams::m_nextRasterLinesBlockToProcessValuePtr, te::rp::TiePointsLocatorMoravecStrategy::MoravecLocatorThreadParams::m_processingBlocksNumber, te::rp::TiePointsLocatorMoravecStrategy::MoravecLocatorThreadParams::m_rastaDataAccessMutexPtr, te::rp::TiePointsLocatorMoravecStrategy::MoravecLocatorThreadParams::m_rasterDataPtr, te::rp::TiePointsLocatorMoravecStrategy::MoravecLocatorThreadParams::m_returnValuePtr, te::rp::TiePointsLocatorMoravecStrategy::MoravecLocatorThreadParams::m_tiePointsSubSectorsSplitFactor, and te::rp::TiePointsLocatorInputParameters::m_tiePointsSubSectorsSplitFactor.

Referenced by getMatchedInterestPoints().

void te::rp::TiePointsLocatorMoravecStrategy::locateMoravecInterestPointsThreadEntry ( MoravecLocatorThreadParams paramsPtr)
staticprotected

Movavec locator thread entry.

Parameters
paramsPtrA pointer to the thread parameters.

Definition at line 869 of file TiePointsLocatorMoravecStrategy.cpp.

References te::rp::Matrix< TemplateElementType >::getColumnsNumber(), te::rp::Matrix< TemplateElementType >::getLinesNumber(), insert(), te::rp::TiePointsLocatorStrategy::InterestPointT::m_feature1, te::rp::TiePointsLocatorMoravecStrategy::MoravecLocatorThreadParams::m_interestPointsAccessMutexPtr, te::rp::TiePointsLocatorMoravecStrategy::MoravecLocatorThreadParams::m_interestPointsSubSectorsPtr, te::rp::TiePointsLocatorMoravecStrategy::MoravecLocatorThreadParams::m_maskRasterDataPtr, te::rp::TiePointsLocatorMoravecStrategy::MoravecLocatorThreadParams::m_maxInterestPointsBySubSector, te::rp::TiePointsLocatorMoravecStrategy::MoravecLocatorThreadParams::m_moravecWindowWidth, te::rp::TiePointsLocatorMoravecStrategy::MoravecLocatorThreadParams::m_nextRasterLinesBlockToProcessValuePtr, te::rp::TiePointsLocatorMoravecStrategy::MoravecLocatorThreadParams::m_processingBlocksNumber, te::rp::TiePointsLocatorMoravecStrategy::MoravecLocatorThreadParams::m_rastaDataAccessMutexPtr, te::rp::TiePointsLocatorMoravecStrategy::MoravecLocatorThreadParams::m_rasterDataPtr, te::rp::TiePointsLocatorMoravecStrategy::MoravecLocatorThreadParams::m_returnValuePtr, te::rp::TiePointsLocatorMoravecStrategy::MoravecLocatorThreadParams::m_tiePointsSubSectorsSplitFactor, te::rp::TiePointsLocatorStrategy::InterestPointT::m_x, te::rp::TiePointsLocatorStrategy::InterestPointT::m_y, te::rp::Matrix< TemplateElementType >::RAMMemPol, te::rp::Matrix< TemplateElementType >::reset(), and te::rp::TiePointsLocatorStrategy::roolUpBuffer().

Referenced by locateMoravecInterestPoints().

void te::rp::TiePointsLocatorMoravecStrategy::reset ( )
protectedvirtual

Clear all internal allocated resources and go back to the initial not-initialized state.

Implements te::rp::TiePointsLocatorStrategy.

Definition at line 83 of file TiePointsLocatorMoravecStrategy.cpp.

References m_inputParameters, m_isInitialized, and te::rp::TiePointsLocatorInputParameters::reset().

Referenced by TiePointsLocatorMoravecStrategy(), and ~TiePointsLocatorMoravecStrategy().

template<typename BufferElementT >
static void te::rp::TiePointsLocatorStrategy::roolUpBuffer ( BufferElementT **  bufferPtr,
const unsigned int &  bufferLinesNumber 
)
inlinestaticprotectedinherited

RoolUp a buffer of lines.

Parameters
bufferPtrBuffer pointer.
bufferLinesNumberBuffer lines number.

Definition at line 269 of file TiePointsLocatorStrategy.h.

Referenced by locateMoravecInterestPointsThreadEntry(), and te::rp::TiePointsLocatorSURFStrategy::locateSurfInterestPointsThreadEntry().

Friends And Related Function Documentation

friend class TiePointsLocator
friend

Definition at line 48 of file TiePointsLocatorMoravecStrategy.h.

Member Data Documentation

te::rp::TiePointsLocatorInputParameters te::rp::TiePointsLocatorMoravecStrategy::m_inputParameters
protected
bool te::rp::TiePointsLocatorMoravecStrategy::m_isInitialized
protected

true if this instance is initialized.

Definition at line 120 of file TiePointsLocatorMoravecStrategy.h.

Referenced by getAutoMaxTiePointsNumber(), getMatchedInterestPoints(), initialize(), and reset().


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