43 #include <visp3/visual_features/vpBasicFeature.h>
44 #include <visp3/visual_features/vpFeatureVanishingPoint.h>
47 #include <visp3/core/vpException.h>
48 #include <visp3/visual_features/vpFeatureException.h>
51 #include <visp3/core/vpDebug.h>
54 #include <visp3/core/vpMath.h>
56 #include <visp3/core/vpFeatureDisplay.h>
132 if (
flags[i] ==
false)
136 vpTRACE(
"Warning !!! The interaction matrix is computed but x was not set yet");
139 vpTRACE(
"Warning !!! The interaction matrix is computed but y was not set yet");
142 vpTRACE(
"Problem during the reading of the variable flags");
160 Lx[0][4] = -(1+x*x) ;
188 const unsigned int select)
196 ex[0] =
s[0] - s_star[0] ;
204 ey[0] =
s[1] - s_star[1] ;
220 std::cout <<
"Point: " <<std::endl;
222 std::cout <<
" x=" <<
get_x() ;
224 std::cout <<
" y=" <<
get_y() ;
225 std::cout <<std::endl ;
252 unsigned int thickness)
const
282 unsigned int thickness)
const
Implementation of a matrix and operations on matrices.
bool * flags
Ensure that all the parameters needed to compute the iteraction matrix are set.
void buildFrom(const double _x, const double _y)
vpColVector error(const vpBasicFeature &s_star, const unsigned int select=FEATURE_ALL)
void stack(const double &d)
void resize(const unsigned int nrows, const unsigned int ncols, const bool flagNullify=true)
Class to define colors available for display functionnalities.
Class that defines 2D vanishing point visual feature (Z coordinate in 3D space is infinity)...
void stack(const vpMatrix &A)
unsigned int dim_s
Dimension of the visual feature.
void set_xy(const double _x, const double _y)
Set the point xy coordinates.
static void displayPoint(double x, double y, const vpCameraParameters &cam, const vpImage< unsigned char > &I, const vpColor &color=vpColor::green, unsigned int thickness=1)
class that defines what is a visual feature
static unsigned int selectX()
double get_y() const
get the point y-coordinates
static unsigned int selectY()
Generic class defining intrinsic camera parameters.
void print(const unsigned int select=FEATURE_ALL) const
print the name of the feature
vpFeatureVanishingPoint()
Default constructor.
void display(const vpCameraParameters &cam, const vpImage< unsigned char > &I, const vpColor &color=vpColor::green, unsigned int thickness=1) const
vpFeatureVanishingPoint * duplicate() const
feature duplication
static const unsigned int FEATURE_LINE[32]
void set_x(const double _x)
Set the point x-coordinates.
vpBasicFeatureDeallocatorType deallocate
void set_y(const double _y)
Set the point y-coordinates.
Implementation of column vector and the associated operations.
double get_x() const
get the point x-coordinates
void init()
Default initialization.
unsigned int nbParameters
Number of parameters needed to compute the interaction matrix.
vpColVector s
State of the visual feature.
vpMatrix interaction(const unsigned int select=FEATURE_ALL)
compute the interaction matrix from a subset a the possible features
void resize(const unsigned int i, const bool flagNullify=true)