23 o <<
"******" << std::endl;
24 o <<
"a_pmat" << std::endl;
25 o <<
"*****" << std::endl;
26 o <<
"This is a P projective matrix class, representing a camera" << std::endl;
27 o <<
"3x4 matrix of the form:" << std::endl;
28 o <<
"----------------------" << std::endl;
29 o <<
"[p11 p12 p13 p14]" << std::endl;
30 o <<
"[p21 p22 p23 p24]" << std::endl;
31 o <<
"[p31 p32 p33 p34]" << std::endl;
32 o <<
"Commands:" << std::endl;
33 o <<
"--------" << std::endl;
34 o <<
"intern a_intern: set the camera (internal calibration)" << std::endl;
35 o <<
"move a_pos: place the camera in 3D (external calibration)" << std::endl;
36 o <<
"project a_3dh: project a 3D point (in homogeneous coordinate)" << std::endl;
42 for (
int i = 0; i<3; i++)
44 for (
int j = 0; j<3; j++)
45 (*
this)(i,j)= cam(i,j);
58 for (
int i = 0; i<3; i++)
60 for (
int j = 0; j<4; j++)
68 for (
int i = 0; i<3; i++)
70 for (
int j = 0; j<3; j++)
an homogeneous 2d matrix class
an homogeneous 3d matrix class
intern calibration matrix
a_pmat & operator=(const a_mat &m)
static const std::string help()
void move(const a_pos &m)
a_2dh project(const a_3dh &p3d) const
void intern(const a_intern &in)