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 unsigned int height,
unsigned int width) = 0;
84 unsigned int width) = 0;
89 unsigned int size = 3) = 0;
120 if (index >= referenceImagePointsList.size()) {
121 vpTRACE(
"Index of the reference point out of range");
125 referencePoint.
set_ij(referenceImagePointsList[index].get_i(), referenceImagePointsList[index].get_j());
141 if (index >= matchedReferencePoints.size()) {
142 vpTRACE(
"Index of the matched points out of range");
145 referencePoint.
set_ij(referenceImagePointsList[matchedReferencePoints[index]].get_i(),
146 referenceImagePointsList[matchedReferencePoints[index]].get_j());
147 currentPoint.
set_ij(currentImagePointsList[index].get_i(), currentImagePointsList[index].get_j());
176 if (indexInMatchedPointList >= matchedReferencePoints.size()) {
177 vpTRACE(
"Index of the matched reference point out of range");
180 return matchedReferencePoints[indexInMatchedPointList];
227 virtual void init() = 0;
unsigned int getIndexInAllReferencePointList(unsigned int indexInMatchedPointList)
class that defines what is a Keypoint. This class provides all the basic elements to implement classe...
Class to define RGB colors available for display functionnalities.
error that can be emited by ViSP classes.
static const vpColor green
void getMatchedPoints(unsigned int index, vpImagePoint &referencePoint, vpImagePoint ¤tPoint)
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
void set_ij(double ii, double jj)
const vpImagePoint * getAllPointsInReferenceImage()
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 ...
void getReferencePoint(unsigned int index, vpImagePoint &referencePoint)
const std::vector< vpImagePoint > & getReferenceImagePointsList() const
const std::vector< unsigned int > & getMatchedReferencePoints() const
unsigned int getMatchedPointNumber() const
unsigned int getReferencePointNumber() const