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);
77 const unsigned int height,
const unsigned int width) = 0;
84 const unsigned int width) = 0;
89 unsigned int size = 3) = 0;
119 if (index >= referenceImagePointsList.size()) {
120 vpTRACE(
"Index of the reference point out of range");
124 referencePoint.
set_ij(referenceImagePointsList[index].get_i(), referenceImagePointsList[index].get_j());
140 if (index >= matchedReferencePoints.size()) {
141 vpTRACE(
"Index of the matched points out of range");
144 referencePoint.
set_ij(referenceImagePointsList[matchedReferencePoints[index]].get_i(),
145 referenceImagePointsList[matchedReferencePoints[index]].get_j());
146 currentPoint.
set_ij(currentImagePointsList[index].get_i(), currentImagePointsList[index].get_j());
175 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 getMatchedPointNumber() const
const std::vector< vpImagePoint > & getCurrentImagePointsList() const
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)
unsigned int getReferencePointNumber() const
static const vpColor green
const std::vector< unsigned int > & getMatchedReferencePoints() const
bool _reference_computed
flag to indicate if the reference has been built.
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 ...
bool referenceBuilt() const
const std::vector< vpImagePoint > & getReferenceImagePointsList() const
void set_ij(const double ii, const double jj)