52 #ifndef vpCameraParameters_H
53 #define vpCameraParameters_H
57 #include <visp/vpConfig.h>
58 #include <visp/vpMatrix.h>
59 #include <visp/vpColVector.h>
60 #include <visp/vpDebug.h>
209 perspectiveProjWithDistortion
210 } vpCameraParametersProjType ;
217 const double u0,
const double v0) ;
219 const double u0,
const double v0,
220 const double kud,
const double kdu) ;
227 void initFromCalibrationMatrix(
const vpMatrix& _K);
229 void initPersProjWithoutDistortion(
const double px,
const double py,
230 const double u0,
const double v0) ;
231 void initPersProjWithDistortion(
const double px,
const double py,
232 const double u0,
const double v0,
const double kud,
const double kdu) ;
243 void computeFov(
const unsigned int &w,
const unsigned int &h);
253 if(!isFov)
vpTRACE(
"Warning: The FOV is not computed, getFovAngleX() won't be significant.");
265 if(!isFov)
vpTRACE(
"Warning: The FOV is not computed, getFovAngleY() won't be significant.");
281 if(!isFov)
vpTRACE(
"Warning: The FOV is not computed, getFovNormals() won't be significant.");
285 inline double get_px()
const {
return px; }
288 inline double get_py()
const {
return py; }
289 inline double get_u0()
const {
return u0; }
290 inline double get_v0()
const {
return v0; }
301 void printParameters() ;
302 friend VISP_EXPORT std::ostream & operator << (std::ostream & os,
306 static const double DEFAULT_U0_PARAMETER;
307 static const double DEFAULT_V0_PARAMETER;
308 static const double DEFAULT_PX_PARAMETER;
309 static const double DEFAULT_PY_PARAMETER;
310 static const double DEFAULT_KUD_PARAMETER;
311 static const double DEFAULT_KDU_PARAMETER;
312 static const vpCameraParametersProjType DEFAULT_PROJ_TYPE;
321 unsigned int height ;
325 std::vector<vpColVector> fovNormals ;
327 double inv_px, inv_py;
329 vpCameraParametersProjType projModel ;
Definition of the vpMatrix class.
Perspective projection without distortion model.
double get_px_inverse() const
bool isFovComputed() const
double get_py_inverse() const
vpCameraParametersProjType
Generic class defining intrinsic camera parameters.
Conversion from normalized coordinates in meter to pixel coordinates .
double getFovAngleY() const
vpCameraParametersProjType get_projModel() const
double getFovAngleX() const
std::vector< vpColVector > getFovNormals() const
Conversion from pixel coordinates to normalized coordinates in meter.