41 #include <visp3/visual_features/vpBasicFeature.h>
42 #include <visp3/visual_features/vpFeaturePoint.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>
221 if (
flags[i] ==
false) {
224 vpTRACE(
"Warning !!! The interaction matrix is computed but x was "
228 vpTRACE(
"Warning !!! The interaction matrix is computed but y was "
232 vpTRACE(
"Warning !!! The interaction matrix is computed but Z was "
236 vpTRACE(
"Problem during the reading of the variable flags");
248 vpERROR_TRACE(
"Point is behind the camera ");
249 std::cout <<
"Z = " << Z_ << std::endl;
254 if (fabs(Z_) < 1e-6) {
255 vpERROR_TRACE(
"Point Z coordinates is null ");
256 std::cout <<
"Z = " << Z_ << std::endl;
269 Lx[0][4] = -(1 + x_ * x_);
282 Ly[0][3] = 1 + y_ * y_;
334 ex[0] =
s[0] - s_star[0];
341 ey[0] =
s[1] - s_star[1];
374 std::cout <<
"Point: Z=" <<
get_Z();
376 std::cout <<
" x=" <<
get_x();
378 std::cout <<
" y=" <<
get_y();
379 std::cout << std::endl;
403 vpERROR_TRACE(
"Point is behind the camera ");
404 std::cout <<
"Z = " << Z_ << std::endl;
409 if (fabs(Z_) < 1e-6) {
410 vpERROR_TRACE(
"Point Z coordinates is null ");
411 std::cout <<
"Z = " << Z_ << std::endl;
433 unsigned int thickness)
const
444 vpERROR_TRACE(
"Error caught");
460 unsigned int thickness)
const
471 vpERROR_TRACE(
"Error caught");
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.
unsigned int dim_s
Dimension of the visual feature.
static const unsigned int FEATURE_LINE[32]
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.
static void displayPoint(double x, double y, const vpCameraParameters &cam, const vpImage< unsigned char > &I, const vpColor &color=vpColor::green, unsigned int thickness=1)
Error that can be emitted by the vpBasicFeature class and its derivates.
@ badInitializationError
Wrong feature initialization.
Class that defines a 2D point visual feature which is composed by two parameters that are the cartes...
vpFeaturePoint & buildFrom(const double &x, const double &y, const double &Z)
static unsigned int selectX()
void set_xyZ(double x, double y, double Z)
vpFeaturePoint * duplicate() const VP_OVERRIDE
vpColVector error(const vpBasicFeature &s_star, unsigned int select=FEATURE_ALL) VP_OVERRIDE
void print(unsigned int select=FEATURE_ALL) const VP_OVERRIDE
static unsigned int selectY()
vpMatrix interaction(unsigned int select=FEATURE_ALL) VP_OVERRIDE
void display(const vpCameraParameters &cam, const vpImage< unsigned char > &I, const vpColor &color=vpColor::green, unsigned int thickness=1) const VP_OVERRIDE
Implementation of a matrix and operations on matrices.
void stack(const vpMatrix &A)