47 #include <visp/vpBasicFeature.h>
48 #include <visp/vpFeatureVanishingPoint.h>
51 #include <visp/vpException.h>
52 #include <visp/vpMatrixException.h>
53 #include <visp/vpFeatureException.h>
56 #include <visp/vpDebug.h>
59 #include <visp/vpMath.h>
61 #include <visp/vpFeatureDisplay.h>
137 if (
flags[i] ==
false)
141 vpTRACE(
"Warning !!! The interaction matrix is computed but x was not set yet");
144 vpTRACE(
"Warning !!! The interaction matrix is computed but y was not set yet");
147 vpTRACE(
"Problem during the reading of the variable flags");
165 Lx[0][4] = -(1+x*x) ;
193 const unsigned int select)
201 ex[0] =
s[0] - s_star[0] ;
209 ey[0] =
s[1] - s_star[1] ;
216 std::cout <<std::endl << me << std::endl ;
222 std::cout <<std::endl << me << std::endl ;
234 std::cout <<
"Point: " <<std::endl;
236 std::cout <<
" x=" <<
get_x() ;
238 std::cout <<
" y=" <<
get_y() ;
239 std::cout <<std::endl ;
266 unsigned int thickness)
const
296 unsigned int thickness)
const
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)
void buildFrom(const double _x, const double _y)
vpColVector error(const vpBasicFeature &s_star, const unsigned int select=FEATURE_ALL)
Class to define colors available for display functionnalities.
Class that defines 2D vanishing point visual feature (Z coordinate in 3D space is infinity)...
unsigned int dim_s
Dimension of the visual feature.
error that can be emited by ViSP classes.
void set_xy(const double _x, const double _y)
set the point xy coordinates
static void displayPoint(double x, double y, const vpCameraParameters &cam, const vpImage< unsigned char > &I, const vpColor &color=vpColor::green, unsigned int thickness=1)
class that defines what is a visual feature
double get_y() const
get the point y-coordinates
Generic class defining intrinsic camera parameters.
void print(const unsigned int select=FEATURE_ALL) const
print the name of the feature
static unsigned int selectY()
vpFeatureVanishingPoint()
basic constructor
void display(const vpCameraParameters &cam, const vpImage< unsigned char > &I, const vpColor &color=vpColor::green, unsigned int thickness=1) const
vpFeatureVanishingPoint * duplicate() const
feature duplication
static vpMatrix stackMatrices(const vpMatrix &A, const vpMatrix &B)
Stack two Matrices C = [ A B ]^T.
void set_x(const double _x)
set the point x-coordinates
vpBasicFeatureDeallocatorType deallocate
void set_y(const double _y)
set the point y-coordinates
Class that provides a data structure for the column vectors as well as a set of operations on these v...
double get_x() const
get the point x-coordinates
static unsigned int selectX()
error that can be emited by the vpMatrix class and its derivates
void init()
basic construction
unsigned int nbParameters
Number of parameters needed to compute the interaction matrix.
vpColVector s
State of the visual feature.
vpMatrix interaction(const unsigned int select=FEATURE_ALL)
compute the interaction matrix from a subset a the possible features
void resize(const unsigned int i, const bool flagNullify=true)