49 #include <visp/vpBasicFeature.h>
50 #include <visp/vpFeatureDepth.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>
115 s[0] = LogZoverZstar ;
217 const double LogZoverZstar)
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");
286 std::cout <<
"Z = " << Z << std::endl ;
289 "Point is behind the camera ")) ;
295 std::cout <<
"Z = " << Z << std::endl ;
298 "Point Z coordinates is null")) ;
353 const unsigned int select)
360 "s* should be zero !")) ;
392 std::cout <<
"Point: x=" <<
get_x() ;
393 std::cout <<
" Point: y=" <<
get_y() ;
394 std::cout <<
" Point: Z=" <<
get_Z() ;
398 std::cout <<std::endl ;
415 s[0] = LogZoverZstar;
424 std::cout <<
"Z = " << Z << std::endl ;
427 "Point is behind the camera ")) ;
433 std::cout <<
"Z = " << Z << std::endl ;
436 "Point Z coordinates is null")) ;
472 static int firsttime =0 ;
493 static int firsttime =0 ;
Definition of the vpMatrix class.
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)
static const unsigned int FEATURE_ALL
void display(const vpCameraParameters &cam, const vpImage< unsigned char > &I, const vpColor &color=vpColor::green, unsigned int thickness=1) const
Class to define colors available for display functionnalities.
void buildFrom(const double x, const double y, const double Z, const double LogZoverZstar)
Class that defines a 3D point visual feature which is composed by one parameters that is that defin...
unsigned int dim_s
Dimension of the visual feature.
void print(const unsigned int select=FEATURE_ALL) const
void set_y(const double y)
double sumSquare() const
return sum of the Aij^2 (for all i, for all j)
void set_LogZoverZstar(const double LogZoverZstar)
class that defines what is a visual feature
vpMatrix interaction(const unsigned int select=FEATURE_ALL)
void set_x(const double x)
Error that can be emited by the vpBasicFeature class and its derivates.
Generic class defining intrinsic camera parameters.
vpBasicFeatureDeallocatorType deallocate
Class that provides a data structure for the column vectors as well as a set of operations on these v...
void set_Z(const double Z)
double get_LogZoverZstar() const
void set_xyZLogZoverZstar(const double x, const double y, const double Z, const double logZZs)
vpFeatureDepth * duplicate() const
vpColVector error(const vpBasicFeature &s_star, const unsigned int select=FEATURE_ALL)
vpColVector get_s(unsigned int select=FEATURE_ALL) const
Get the feature vector .
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)