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];
125 inline void getReferencePoint (
const unsigned int index,
vpImagePoint &referencePoint )
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;