39 #ifndef vpBasicKeyPoint_H
40 #define vpBasicKeyPoint_H
47 #include <visp3/core/vpColor.h>
48 #include <visp3/core/vpImage.h>
49 #include <visp3/core/vpImagePoint.h>
50 #include <visp3/core/vpRect.h>
69 matchedReferencePoints.resize(0);
70 currentImagePointsList.resize(0);
71 referenceImagePointsList.resize(0);
78 const unsigned int height,
const unsigned int width) =0;
81 const vpRect& rectangle) =0;
87 const unsigned int height,
const unsigned int width) =0;
90 const vpRect& rectangle) =0;
111 return &referenceImagePointsList[0];
122 if (index >= referenceImagePointsList.size())
124 vpTRACE(
"Index of the reference point out of range");
128 referencePoint.
set_ij(referenceImagePointsList[index].get_i(), referenceImagePointsList[index].get_j());
139 if (index >= matchedReferencePoints.size())
141 vpTRACE(
"Index of the matched points out of range");
144 referencePoint.
set_ij(referenceImagePointsList[matchedReferencePoints[index]].get_i(),referenceImagePointsList[matchedReferencePoints[index]].get_j());
145 currentPoint.
set_ij(currentImagePointsList[index].get_i(), currentImagePointsList[index].get_j());
169 if (indexInMatchedPointList >= matchedReferencePoints.size())
171 vpTRACE(
"Index of the matched reference point out of range");
174 return matchedReferencePoints[indexInMatchedPointList];
221 virtual void init()=0;
class that defines what is a Keypoint. This class provides all the basic elements to implement classe...
unsigned int getIndexInAllReferencePointList(const unsigned int indexInMatchedPointList)
Class to define colors available for display functionnalities.
error that can be emited by ViSP classes.
void getMatchedPoints(const unsigned int index, vpImagePoint &referencePoint, vpImagePoint ¤tPoint)
static const vpColor green
bool referenceBuilt() const
bool _reference_computed
flag to indicate if the reference has been built.
const std::vector< vpImagePoint > & getCurrentImagePointsList() const
std::vector< vpImagePoint > referenceImagePointsList
const vpImagePoint * getAllPointsInReferenceImage()
void getReferencePoint(const unsigned int index, vpImagePoint &referencePoint)
std::vector< unsigned int > matchedReferencePoints
virtual ~vpBasicKeyPoint()
Defines a rectangle in the plane.
std::vector< vpImagePoint > currentImagePointsList
Class that defines a 2D point in an image. This class is useful for image processing and stores only ...
const std::vector< vpImagePoint > & getReferenceImagePointsList() const
const std::vector< unsigned int > & getMatchedReferencePoints() const
unsigned int getMatchedPointNumber() const
void set_ij(const double ii, const double jj)
unsigned int getReferencePointNumber() const