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>
117 s[0] = LogZoverZstar ;
219 const double LogZoverZstar)
259 if (
flags[i] ==
false)
263 vpTRACE(
"Warning !!! The interaction matrix is computed but x was not set yet");
266 vpTRACE(
"Warning !!! The interaction matrix is computed but y was not set yet");
269 vpTRACE(
"Warning !!! The interaction matrix is computed but z was not set yet");
272 vpTRACE(
"Problem during the reading of the variable flags");
288 std::cout <<
"Z = " << Z_ << std::endl ;
291 "Point is behind the camera ")) ;
297 std::cout <<
"Z = " << Z_ << std::endl ;
300 "Point Z coordinates is null")) ;
355 const unsigned int select)
362 "s* should be zero !")) ;
394 std::cout <<
"Point: x=" <<
get_x() ;
395 std::cout <<
" Point: y=" <<
get_y() ;
396 std::cout <<
" Point: Z=" <<
get_Z() ;
400 std::cout <<std::endl ;
417 s[0] = LogZoverZstar;
426 std::cout <<
"Z = " << Z << std::endl ;
429 "Point is behind the camera ")) ;
435 std::cout <<
"Z = " << Z << std::endl ;
438 "Point Z coordinates is null")) ;
474 static int firsttime =0 ;
495 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)
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)