43 #ifndef vpBasicKeyPoint_H
44 #define vpBasicKeyPoint_H
51 #include <visp/vpColor.h>
52 #include <visp/vpImage.h>
53 #include <visp/vpImagePoint.h>
54 #include <visp/vpRect.h>
74 matchedReferencePoints.resize(0);
75 currentImagePointsList.resize(0);
76 referenceImagePointsList.resize(0);
83 const unsigned int height,
const unsigned int width) =0;
86 const vpRect& rectangle) =0;
92 const unsigned int height,
const unsigned int width) =0;
95 const vpRect& rectangle) =0;
116 return &referenceImagePointsList[0];
127 if (index >= referenceImagePointsList.size())
129 vpTRACE(
"Index of the reference point out of range");
133 referencePoint.
set_ij(referenceImagePointsList[index].get_i(), referenceImagePointsList[index].get_j());
144 if (index >= matchedReferencePoints.size())
146 vpTRACE(
"Index of the matched points out of range");
149 referencePoint.
set_ij(referenceImagePointsList[matchedReferencePoints[index]].get_i(),referenceImagePointsList[matchedReferencePoints[index]].get_j());
150 currentPoint.
set_ij(currentImagePointsList[index].get_i(), currentImagePointsList[index].get_j());
174 if (indexInMatchedPointList >= matchedReferencePoints.size())
176 vpTRACE(
"Index of the matched reference point out of range");
179 return matchedReferencePoints[indexInMatchedPointList];
226 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
void set_ij(const double i, const double j)
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
unsigned int getReferencePointNumber() const