39#include <visp3/visual_features/vpBasicFeature.h>
40#include <visp3/visual_features/vpFeaturePoint.h>
43#include <visp3/core/vpException.h>
44#include <visp3/visual_features/vpFeatureException.h>
47#include <visp3/core/vpDebug.h>
50#include <visp3/core/vpMath.h>
52#include <visp3/core/vpFeatureDisplay.h>
219 if (
flags[i] ==
false) {
222 vpTRACE(
"Warning !!! The interaction matrix is computed but x was "
226 vpTRACE(
"Warning !!! The interaction matrix is computed but y was "
230 vpTRACE(
"Warning !!! The interaction matrix is computed but Z was "
234 vpTRACE(
"Problem during the reading of the variable flags");
247 std::cout <<
"Z = " << Z_ << std::endl;
252 if (fabs(Z_) < 1e-6) {
254 std::cout <<
"Z = " << Z_ << std::endl;
267 Lx[0][4] = -(1 + x_ * x_);
280 Ly[0][3] = 1 + y_ * y_;
332 ex[0] =
s[0] - s_star[0];
339 ey[0] =
s[1] - s_star[1];
372 std::cout <<
"Point: Z=" <<
get_Z();
374 std::cout <<
" x=" <<
get_x();
376 std::cout <<
" y=" <<
get_y();
377 std::cout << std::endl;
402 std::cout <<
"Z = " << Z_ << std::endl;
407 if (fabs(Z_) < 1e-6) {
409 std::cout <<
"Z = " << Z_ << std::endl;
431 unsigned int thickness)
const
458 unsigned int thickness)
const
void resize(unsigned int nrows, unsigned int ncols, bool flagNullify=true, bool recopy_=true)
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.
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.
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
Definition of the vpImage class member functions.
Implementation of a matrix and operations on matrices.
void stack(const vpMatrix &A)