OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
MatchPoint.h
Go to the documentation of this file.
1 //**************************************************************************************************
2 //
3 // OSSIM Open Source Geospatial Data Processing Library
4 // See top level LICENSE.txt file for license information
5 //
6 //**************************************************************************************************
7 #ifndef MatchPoint_HEADER
8 #define MatchPoint_HEADER
9 
10 #include <ossim/base/ossimDpt.h>
11 
12 namespace ATP
13 {
14 //*************************************************************************************************
15 // CLASS DESCRIPTION:
25 //*************************************************************************************************
27 {
28 public:
29 
31  MatchPoint(const ossimDpt& cmpImagePt,
32  double corr_value,
33  const ossimDpt& residual=ossimDpt(0,0))
34  : m_confidence(corr_value),
35  m_cmpImagePt (cmpImagePt),
36  m_residual (residual) {}
37 
39  MatchPoint(const MatchPoint& copy)
40  : m_confidence(copy.m_confidence),
42  m_residual (copy.m_residual) {}
43 
46 
48  const double& getConfidenceMeasure() const { return m_confidence; }
49 
51  const ossimDpt& getImagePoint () const { return m_cmpImagePt; }
52 
54  void setResidual(const ossimDpt& residual) { m_residual = residual; }
55  const ossimDpt& getResidual() const { return m_residual; }
56 
58  {
59  out<<cp.m_cmpImagePt<<", "<<cp.m_confidence;
60  return out;
61  }
62 
63 private:
64  double m_confidence;
67 };
68 
69 }
70 #endif
friend std::ostream & operator<<(std::ostream &out, const MatchPoint &cp)
Definition: MatchPoint.h:57
const double & getConfidenceMeasure() const
Const access methods.
Definition: MatchPoint.h:48
double m_confidence
Definition: MatchPoint.h:64
const ossimDpt & getImagePoint() const
Returns the image point corresponding to the correlated feature on the CMP image. ...
Definition: MatchPoint.h:51
ossimDpt m_residual
Definition: MatchPoint.h:66
const ossimDpt & getResidual() const
Definition: MatchPoint.h:55
THESE FUNCTIONS REQUIRE OPENCV.
void setResidual(const ossimDpt &residual)
Sets/gets the residual associated with this peak (for APC functionality in consistency check) ...
Definition: MatchPoint.h:54
~MatchPoint()
Destructor does nothing.
Definition: MatchPoint.h:45
ossimDpt m_cmpImagePt
Definition: MatchPoint.h:65
Maintains quantities associated with single matchpoint peak.
Definition: MatchPoint.h:26
MatchPoint(const ossimDpt &cmpImagePt, double corr_value, const ossimDpt &residual=ossimDpt(0, 0))
Constructor for creating new instance with data members provided.
Definition: MatchPoint.h:31
MatchPoint(const MatchPoint &copy)
Copy constructor.
Definition: MatchPoint.h:39
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23