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>
258 if (
flags[i] ==
false)
262 vpTRACE(
"Warning !!! The interaction matrix is computed but x was not set yet");
265 vpTRACE(
"Warning !!! The interaction matrix is computed but y was not set yet");
268 vpTRACE(
"Warning !!! The interaction matrix is computed but Z was not set yet");
271 vpTRACE(
"Problem during the reading of the variable flags");
285 std::cout <<
"Z = " << Z << std::endl ;
288 "Point is behind the camera ")) ;
294 std::cout <<
"Z = " << Z << std::endl ;
297 "Point Z coordinates is null")) ;
308 Lx[0][4] = -(1+x*x) ;
363 const unsigned int select)
371 ex[0] =
s[0] - s_star[0] ;
379 ey[0] =
s[1] - s_star[1] ;
386 std::cout <<std::endl << me << std::endl ;
392 std::cout <<std::endl << me << std::endl ;
424 std::cout <<
"Point: Z=" <<
get_Z() ;
426 std::cout <<
" x=" <<
get_x() ;
428 std::cout <<
" y=" <<
get_y() ;
429 std::cout <<std::endl ;
454 std::cout <<
"Z = " << Z << std::endl ;
457 "Point is behind the camera ")) ;
463 std::cout <<
"Z = " << Z << std::endl ;
466 "Point Z coordinates is null")) ;
488 unsigned int thickness)
const
519 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
static vpMatrix stackMatrices(const vpMatrix &A, const vpMatrix &B)
Stack two Matrices C = [ A B ]^T.
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