OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
Public Member Functions | Private Attributes | Friends | List of all members
ATP::MatchPoint Class Reference

Maintains quantities associated with single matchpoint peak. More...

#include <MatchPoint.h>

Public Member Functions

 MatchPoint (const ossimDpt &cmpImagePt, double corr_value, const ossimDpt &residual=ossimDpt(0, 0))
 Constructor for creating new instance with data members provided. More...
 
 MatchPoint (const MatchPoint &copy)
 Copy constructor. More...
 
 ~MatchPoint ()
 Destructor does nothing. More...
 
const double & getConfidenceMeasure () const
 Const access methods. More...
 
const ossimDptgetImagePoint () const
 Returns the image point corresponding to the correlated feature on the CMP image. More...
 
void setResidual (const ossimDpt &residual)
 Sets/gets the residual associated with this peak (for APC functionality in consistency check) More...
 
const ossimDptgetResidual () const
 

Private Attributes

double m_confidence
 
ossimDpt m_cmpImagePt
 
ossimDpt m_residual
 

Friends

std::ostream & operator<< (std::ostream &out, const MatchPoint &cp)
 

Detailed Description

Maintains quantities associated with single matchpoint peak.

This consists of the image point on the query/CMP image that corresponds to the feature in the REF image, and the strength (confidence level) of the correlation (0.0 - 1.0). There will be more than one match (one instance of this class) per REF image feature maintained by the AutoTiePoint. The ATP will decide, based on match confidence and consistency with neighboring ATPs, whether a match should be considered as the correct match point.

Wish List: May eventually want to consider a 2x2 (2-D) covariance matrix to accompany the peak value.

Definition at line 26 of file MatchPoint.h.

Constructor & Destructor Documentation

◆ MatchPoint() [1/2]

ATP::MatchPoint::MatchPoint ( const ossimDpt cmpImagePt,
double  corr_value,
const ossimDpt residual = ossimDpt(0,0) 
)
inline

Constructor for creating new instance with data members provided.

Definition at line 31 of file MatchPoint.h.

34  : m_confidence(corr_value),
35  m_cmpImagePt (cmpImagePt),
36  m_residual (residual) {}
double m_confidence
Definition: MatchPoint.h:64
ossimDpt m_residual
Definition: MatchPoint.h:66
ossimDpt m_cmpImagePt
Definition: MatchPoint.h:65

◆ MatchPoint() [2/2]

ATP::MatchPoint::MatchPoint ( const MatchPoint copy)
inline

Copy constructor.

Definition at line 39 of file MatchPoint.h.

40  : m_confidence(copy.m_confidence),
41  m_cmpImagePt (copy.m_cmpImagePt),
42  m_residual (copy.m_residual) {}
double m_confidence
Definition: MatchPoint.h:64
ossimDpt m_residual
Definition: MatchPoint.h:66
ossimDpt m_cmpImagePt
Definition: MatchPoint.h:65

◆ ~MatchPoint()

ATP::MatchPoint::~MatchPoint ( )
inline

Destructor does nothing.

Definition at line 45 of file MatchPoint.h.

45 { }

Member Function Documentation

◆ getConfidenceMeasure()

const double& ATP::MatchPoint::getConfidenceMeasure ( ) const
inline

Const access methods.

Definition at line 48 of file MatchPoint.h.

References m_confidence.

48 { return m_confidence; }
double m_confidence
Definition: MatchPoint.h:64

◆ getImagePoint()

const ossimDpt& ATP::MatchPoint::getImagePoint ( ) const
inline

Returns the image point corresponding to the correlated feature on the CMP image.

Definition at line 51 of file MatchPoint.h.

References m_cmpImagePt.

51 { return m_cmpImagePt; }
ossimDpt m_cmpImagePt
Definition: MatchPoint.h:65

◆ getResidual()

const ossimDpt& ATP::MatchPoint::getResidual ( ) const
inline

Definition at line 55 of file MatchPoint.h.

References m_residual.

55 { return m_residual; }
ossimDpt m_residual
Definition: MatchPoint.h:66

◆ setResidual()

void ATP::MatchPoint::setResidual ( const ossimDpt residual)
inline

Sets/gets the residual associated with this peak (for APC functionality in consistency check)

Definition at line 54 of file MatchPoint.h.

References m_residual.

54 { m_residual = residual; }
ossimDpt m_residual
Definition: MatchPoint.h:66

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  out,
const MatchPoint cp 
)
friend

Definition at line 57 of file MatchPoint.h.

58  {
59  out<<cp.m_cmpImagePt<<", "<<cp.m_confidence;
60  return out;
61  }

Member Data Documentation

◆ m_cmpImagePt

ossimDpt ATP::MatchPoint::m_cmpImagePt
private

Definition at line 65 of file MatchPoint.h.

Referenced by getImagePoint().

◆ m_confidence

double ATP::MatchPoint::m_confidence
private

Definition at line 64 of file MatchPoint.h.

Referenced by getConfidenceMeasure().

◆ m_residual

ossimDpt ATP::MatchPoint::m_residual
private

Definition at line 66 of file MatchPoint.h.

Referenced by getResidual(), and setResidual().


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