49 #include <visp/vpBasicFeature.h>
50 #include <visp/vpFeaturePoint.h>
53 #include <visp/vpException.h>
54 #include <visp/vpMatrixException.h>
55 #include <visp/vpFeatureException.h>
58 #include <visp/vpDebug.h>
61 #include <visp/vpMath.h>
63 #include <visp/vpFeatureDisplay.h>
257 if (
flags[i] ==
false)
261 vpTRACE(
"Warning !!! The interaction matrix is computed but x was not set yet");
264 vpTRACE(
"Warning !!! The interaction matrix is computed but y was not set yet");
267 vpTRACE(
"Warning !!! The interaction matrix is computed but Z was not set yet");
270 vpTRACE(
"Problem during the reading of the variable flags");
277 double x_ =
get_x() ;
278 double y_ =
get_y() ;
279 double Z_ =
get_Z() ;
284 std::cout <<
"Z = " << Z_ << std::endl ;
287 "Point is behind the camera ")) ;
293 std::cout <<
"Z = " << Z_ << std::endl ;
296 "Point Z coordinates is null")) ;
307 Lx[0][4] = -(1+x_*x_) ;
362 const unsigned int select)
370 ex[0] =
s[0] - s_star[0] ;
378 ey[0] =
s[1] - s_star[1] ;
385 std::cout <<std::endl << me << std::endl ;
391 std::cout <<std::endl << me << std::endl ;
423 std::cout <<
"Point: Z=" <<
get_Z() ;
425 std::cout <<
" x=" <<
get_x() ;
427 std::cout <<
" y=" <<
get_y() ;
428 std::cout <<std::endl ;
453 std::cout <<
"Z = " << Z_ << std::endl ;
456 "Point is behind the camera ")) ;
462 std::cout <<
"Z = " << Z_ << std::endl ;
465 "Point Z coordinates is null")) ;
487 unsigned int thickness)
const
518 unsigned int thickness)
const
Definition of the vpMatrix class.
vpMatrix interaction(const unsigned int select=FEATURE_ALL)
bool * flags
Ensure that all the parameters needed to compute the iteraction matrix are set.
void resize(const unsigned int nrows, const unsigned int ncols, const bool nullify=true)
void set_xyZ(const double x, const double y, const double Z)
vpColVector error(const vpBasicFeature &s_star, const unsigned int select=FEATURE_ALL)
Class to define colors available for display functionnalities.
unsigned int dim_s
Dimension of the visual feature.
error that can be emited by ViSP classes.
Class that defines a 2D point visual feature which is composed by two parameters that are the cartes...
static void displayPoint(double x, double y, const vpCameraParameters &cam, const vpImage< unsigned char > &I, const vpColor &color=vpColor::green, unsigned int thickness=1)
void set_y(const double y)
void set_x(const double x)
class that defines what is a visual feature
Error that can be emited by the vpBasicFeature class and its derivates.
Generic class defining intrinsic camera parameters.
void display(const vpCameraParameters &cam, const vpImage< unsigned char > &I, const vpColor &color=vpColor::green, unsigned int thickness=1) const
void stackMatrices(const vpMatrix &A)
void buildFrom(const double x, const double y, const double Z)
vpFeaturePoint * duplicate() const
vpBasicFeatureDeallocatorType deallocate
Class that provides a data structure for the column vectors as well as a set of operations on these v...
error that can be emited by the vpMatrix class and its derivates
void set_Z(const double Z)
static unsigned int selectX()
static unsigned int selectY()
unsigned int nbParameters
Number of parameters needed to compute the interaction matrix.
vpColVector s
State of the visual feature.
void resize(const unsigned int i, const bool flagNullify=true)
void print(const unsigned int select=FEATURE_ALL) const