40 #include <visp3/core/vpMath.h> 41 #include <visp3/visual_features/vpBasicFeature.h> 42 #include <visp3/visual_features/vpFeatureThetaU.h> 45 #include <visp3/core/vpException.h> 46 #include <visp3/visual_features/vpFeatureException.h> 49 #include <visp3/core/vpDebug.h> 416 if (
flags[i] ==
false) {
419 vpTRACE(
"Warning !!! The interaction matrix is computed but Tu_x " 423 vpTRACE(
"Warning !!! The interaction matrix is computed but Tu_y " 427 vpTRACE(
"Warning !!! The interaction matrix is computed but Tu_z " 431 vpTRACE(
"Problem during the reading of the variable flags");
440 for (
unsigned int i = 0; i < 3; i++) {
452 for (
unsigned int i = 0; i < 3; i++)
460 if (rotation ==
cdRc) {
473 for (
int i = 0; i < 3; i++)
474 Lx[0][i + 3] = Lw[0][i];
485 for (
int i = 0; i < 3; i++)
486 Ly[0][i + 3] = Lw[1][i];
497 for (
int i = 0; i < 3; i++)
498 Lz[0][i + 3] = Lw[2][i];
625 std::cout <<
"ThetaU:";
627 std::cout <<
" tux=" <<
s[0];
630 std::cout <<
" tuy=" <<
s[1];
633 std::cout <<
" tuz=" <<
s[2];
635 std::cout << std::endl;
652 if (rotation ==
cdRc)
666 const vpColor & ,
unsigned int )
const 668 static int firsttime = 0;
670 if (firsttime == 0) {
683 const vpColor & ,
unsigned int )
const 685 static int firsttime = 0;
687 if (firsttime == 0) {
Implementation of a matrix and operations on matrices.
void resize(unsigned int nrows, unsigned int ncols, bool flagNullify=true, bool recopy_=true)
void set_TUx(double tu_x)
Implementation of an homogeneous matrix and operations on such kind of matrices.
void print(unsigned int select=FEATURE_ALL) const
Class to define RGB colors available for display functionnalities.
void stack(const vpMatrix &A)
unsigned int dim_s
Dimension of the visual feature.
void setFeatureThetaURotationType(const vpFeatureThetaURotationRepresentationType r)
void extract(vpRotationMatrix &R) const
vpColVector get_s(unsigned int select=FEATURE_ALL) const
Get the feature vector .
static double sinc(double x)
Implementation of a rotation matrix and operations on such kind of matrices.
vpFeatureThetaURotationRepresentationType
class that defines what is a visual feature
static unsigned int selectTUx()
static double sqr(double x)
Error that can be emited by the vpBasicFeature class and its derivates.
void set_TUz(double tu_z)
Generic class defining intrinsic camera parameters.
vpMatrix interaction(unsigned int select=FEATURE_ALL)
vpFeatureThetaURotationRepresentationType getFeatureThetaURotationType() const
void display(const vpCameraParameters &cam, const vpImage< unsigned char > &I, const vpColor &color=vpColor::green, unsigned int thickness=1) const
void buildFrom(vpThetaUVector &tu)
static const unsigned int FEATURE_LINE[32]
vpColVector error(const vpBasicFeature &s_star, unsigned int select=FEATURE_ALL)
void set_TUy(double tu_y)
void resize(unsigned int i, bool flagNullify=true)
vpBasicFeatureDeallocatorType deallocate
vpFeatureThetaU * duplicate() const
Feature duplication.
Implementation of column vector and the associated operations.
static unsigned int selectTUz()
Class that defines a 3D visual feature from a axis/angle parametrization that represent the rotatio...
static vpMatrix skew(const vpColVector &v)
static unsigned int selectTUy()
Implementation of a rotation vector as axis-angle minimal representation.
unsigned int nbParameters
Number of parameters needed to compute the interaction matrix.
vpColVector s
State of the visual feature.