34#ifndef VP_BASIC_KEYPOINT_H
35#define VP_BASIC_KEYPOINT_H
42#include <visp3/core/vpConfig.h>
43#include <visp3/core/vpDebug.h>
44#include <visp3/core/vpColor.h>
45#include <visp3/core/vpImage.h>
46#include <visp3/core/vpImagePoint.h>
47#include <visp3/core/vpRect.h>
84 unsigned int width) = 0;
100 unsigned int width) = 0;
144 vpTRACE(
"Index of the reference point out of range");
165 vpTRACE(
"Index of the matched points out of range");
199 vpTRACE(
"Index of the matched reference point out of range");
276 virtual void init() = 0;
class that defines what is a keypoint. This class provides all the basic elements to implement classe...
bool referenceBuilt() const
virtual unsigned int buildReference(const vpImage< unsigned char > &I)=0
unsigned int getMatchedPointNumber() const
virtual unsigned int matchPoint(const vpImage< unsigned char > &I, const vpRect &rectangle)=0
const std::vector< vpImagePoint > & getReferenceImagePointsList() const
std::vector< unsigned int > m_matchedReferencePoints
void getReferencePoint(unsigned int index, vpImagePoint &referencePoint)
void getMatchedPoints(unsigned int index, vpImagePoint &referencePoint, vpImagePoint ¤tPoint)
virtual unsigned int matchPoint(const vpImage< unsigned char > &I, const vpImagePoint &iP, unsigned int height, unsigned int width)=0
std::vector< vpImagePoint > m_currentImagePointsList
bool m_reference_computed
std::vector< vpImagePoint > m_referenceImagePointsList
virtual unsigned int buildReference(const vpImage< unsigned char > &I, const vpImagePoint &iP, unsigned int height, unsigned int width)=0
virtual void display(const vpImage< unsigned char > &Icurrent, unsigned int size=3, const vpColor &color=vpColor::green)=0
virtual unsigned int buildReference(const vpImage< unsigned char > &I, const vpRect &rectangle)=0
const std::vector< vpImagePoint > & getCurrentImagePointsList() const
unsigned int getIndexInAllReferencePointList(unsigned int indexInMatchedPointList)
virtual unsigned int matchPoint(const vpImage< unsigned char > &I)=0
unsigned int getReferencePointNumber() const
const std::vector< unsigned int > & getMatchedReferencePoints() const
const vpImagePoint * getAllPointsInReferenceImage()
virtual void display(const vpImage< unsigned char > &Iref, const vpImage< unsigned char > &Icurrent, unsigned int size=3)=0
Class to define RGB colors available for display functionalities.
static const vpColor green
error that can be emitted by ViSP classes.
Class that defines a 2D point in an image. This class is useful for image processing and stores only ...
void set_ij(double ii, double jj)
Definition of the vpImage class member functions.
Defines a rectangle in the plane.