44 #include <visp/vpBasicFeature.h>
45 #include <visp/vpFeaturePoint3D.h>
48 #include <visp/vpException.h>
49 #include <visp/vpMatrixException.h>
50 #include <visp/vpFeatureException.h>
53 #include <visp/vpDebug.h>
272 if (
flags[i] ==
false)
276 vpTRACE(
"Warning !!! The interaction matrix is computed but X was not set yet");
279 vpTRACE(
"Warning !!! The interaction matrix is computed but Y was not set yet");
282 vpTRACE(
"Warning !!! The interaction matrix is computed but Z was not set yet");
285 vpTRACE(
"Problem during the reading of the variable flags");
390 const unsigned int select)
398 ex[0] =
s[0] - s_star[0] ;
406 ey[0] =
s[1] - s_star[1] ;
413 ez[0] =
s[2] - s_star[2] ;
420 std::cout <<std::endl << me << std::endl ;
426 std::cout <<std::endl << me << std::endl ;
456 s[0] = p.
cP[0]/p.
cP[3] ;
457 s[1] = p.
cP[1]/p.
cP[3] ;
458 s[2] = p.
cP[2]/p.
cP[3] ;
464 std::cout <<
"Z = " << Z << std::endl ;
467 "Point is behind the camera ")) ;
473 std::cout <<
"Z = " << Z << std::endl ;
476 "Point Z coordinates is null")) ;
510 std::cout <<
"Z = " << Z << std::endl ;
513 "Point is behind the camera ")) ;
519 std::cout <<
"Z = " << Z << std::endl ;
522 "Point Z coordinates is null")) ;
557 std::cout <<
"Point3D: " ;
559 std::cout <<
" X=" <<
get_X() ;
561 std::cout <<
" Y=" <<
get_Y() ;
563 std::cout <<
" Z=" <<
get_Z() ;
564 std::cout <<std::endl ;
595 static int firsttime =0 ;
616 static int firsttime =0 ;
Definition of the vpMatrix class.
void set_X(const double X)
bool * flags
Ensure that all the parameters needed to compute the iteraction matrix are set.
void set_XYZ(const double X, const double Y, const double Z)
void resize(const unsigned int nrows, const unsigned int ncols, const bool nullify=true)
double get_Z() const
Return the coordinate in the camera frame of the 3D point.
void set_Z(const double Z)
void print(const unsigned int select=FEATURE_ALL) const
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.
vpMatrix interaction(const unsigned int select=FEATURE_ALL)
void buildFrom(const vpPoint &p)
Class that defines what is a point.
class that defines what is a visual feature
vpFeaturePoint3D * duplicate() const
vpColVector error(const vpBasicFeature &s_star, const unsigned int select=FEATURE_ALL)
Error that can be emited by the vpBasicFeature class and its derivates.
Class that defines the 3D point visual feature.
Generic class defining intrinsic camera parameters.
static unsigned int selectZ()
void stackMatrices(const vpMatrix &A)
vpBasicFeatureDeallocatorType deallocate
static unsigned int selectX()
Class that provides a data structure for the column vectors as well as a set of operations on these v...
static unsigned int selectY()
void display(const vpCameraParameters &cam, const vpImage< unsigned char > &I, const vpColor &color=vpColor::green, unsigned int thickness=1) const
error that can be emited by the vpMatrix class and its derivates
double get_X() const
Return the coordinate in the camera frame of the 3D point.
void set_Y(const double Y)
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)
double get_Y() const
Return the coordinate in the camera frame of the 3D point.