41 #include <visp3/visual_features/vpBasicFeature.h>
42 #include <visp3/visual_features/vpFeatureDepth.h>
45 #include <visp3/core/vpException.h>
46 #include <visp3/visual_features/vpFeatureException.h>
49 #include <visp3/core/vpDebug.h>
52 #include <visp3/core/vpMath.h>
54 #include <visp3/core/vpFeatureDisplay.h>
215 if (
flags[i] ==
false) {
218 vpTRACE(
"Warning !!! The interaction matrix is computed but x was "
222 vpTRACE(
"Warning !!! The interaction matrix is computed but y was "
226 vpTRACE(
"Warning !!! The interaction matrix is computed but z was "
230 vpTRACE(
"Problem during the reading of the variable flags");
244 vpERROR_TRACE(
"Point is behind the camera ");
245 std::cout <<
"Z = " << Z_ << std::endl;
250 if (fabs(Z_) < 1e-6) {
251 vpERROR_TRACE(
"Point Z coordinates is null ");
252 std::cout <<
"Z = " << Z_ << std::endl;
310 vpERROR_TRACE(
"s* should be zero ! ");
340 std::cout <<
"Point: x=" <<
get_x();
341 std::cout <<
" Point: y=" <<
get_y();
342 std::cout <<
" Point: Z=" <<
get_Z();
346 std::cout << std::endl;
364 s[0] = LogZoverZstar;
371 vpERROR_TRACE(
"Point is behind the camera ");
372 std::cout <<
"Z = " << Z << std::endl;
377 if (fabs(Z) < 1e-6) {
378 vpERROR_TRACE(
"Point Z coordinates is null ");
379 std::cout <<
"Z = " << Z << std::endl;
412 const vpColor & ,
unsigned int )
const
414 static int firsttime = 0;
416 if (firsttime == 0) {
418 vpERROR_TRACE(
"not implemented");
429 const vpColor & ,
unsigned int )
const
431 static int firsttime = 0;
433 if (firsttime == 0) {
435 vpERROR_TRACE(
"not implemented");
class that defines what is a visual feature
vpColVector s
State of the visual feature.
unsigned int nbParameters
Number of parameters needed to compute the interaction matrix.
vpColVector get_s(unsigned int select=FEATURE_ALL) const
Get the feature vector .
unsigned int dim_s
Dimension of the visual feature.
vpBasicFeatureDeallocatorType deallocate
Generic class defining intrinsic camera parameters.
Implementation of column vector and the associated operations.
void resize(unsigned int i, bool flagNullify=true)
Class to define RGB colors available for display functionalities.
Class that defines a 3D point visual feature which is composed by one parameters that is that defin...
void print(unsigned int select=FEATURE_ALL) const VP_OVERRIDE
vpMatrix interaction(unsigned int select=FEATURE_ALL) VP_OVERRIDE
vpFeatureDepth & buildFrom(const double &x, const double &y, const double &Z, const double &LogZoverZstar)
void display(const vpCameraParameters &cam, const vpImage< unsigned char > &I, const vpColor &color=vpColor::green, unsigned int thickness=1) const VP_OVERRIDE
vpColVector error(const vpBasicFeature &s_star, unsigned int select=FEATURE_ALL) VP_OVERRIDE
double get_LogZoverZstar() const
void set_LogZoverZstar(double LogZoverZstar)
void set_xyZLogZoverZstar(double x, double y, double Z, double logZZs)
vpFeatureDepth * duplicate() const VP_OVERRIDE
Error that can be emitted by the vpBasicFeature class and its derivates.
@ badInitializationError
Wrong feature initialization.
Implementation of a matrix and operations on matrices.