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>
217 perspectiveProjWithDistortion
218 } vpCameraParametersProjType ;
225 const double u0,
const double v0) ;
227 const double u0,
const double v0,
228 const double kud,
const double kdu) ;
235 void initFromCalibrationMatrix(
const vpMatrix& _K);
236 void initFromFov(
const unsigned int &w,
const unsigned int &h,
const double &hfov,
const double &vfov);
237 void initPersProjWithoutDistortion(
const double px,
const double py,
const double u0,
const double v0);
238 void initPersProjWithDistortion(
const double px,
const double py,
const double u0,
const double v0,
239 const double kud,
const double kdu) ;
250 void computeFov(
const unsigned int &w,
const unsigned int &h);
260 if(!isFov)
vpTRACE(
"Warning: The FOV is not computed, getHorizontalFovAngle() won't be significant.");
272 if(!isFov)
vpTRACE(
"Warning: The FOV is not computed, getVerticalFovAngle() won't be significant.");
288 if(!isFov)
vpTRACE(
"Warning: The FOV is not computed, getFovNormals() won't be significant.");
292 inline double get_px()
const {
return px; }
295 inline double get_py()
const {
return py; }
296 inline double get_u0()
const {
return u0; }
297 inline double get_v0()
const {
return v0; }
308 void printParameters() ;
309 friend VISP_EXPORT std::ostream & operator << (std::ostream & os,
const vpCameraParameters &cam);
311 #ifdef VISP_BUILD_DEPRECATED_FUNCTIONS
321 if(!isFov)
vpTRACE(
"Warning: The FOV is not computed, getFovAngleX() won't be significant.");
334 if(!isFov)
vpTRACE(
"Warning: The FOV is not computed, getFovAngleY() won't be significant.");
341 static const double DEFAULT_U0_PARAMETER;
342 static const double DEFAULT_V0_PARAMETER;
343 static const double DEFAULT_PX_PARAMETER;
344 static const double DEFAULT_PY_PARAMETER;
345 static const double DEFAULT_KUD_PARAMETER;
346 static const double DEFAULT_KDU_PARAMETER;
347 static const vpCameraParametersProjType DEFAULT_PROJ_TYPE;
356 unsigned int height ;
360 std::vector<vpColVector> fovNormals ;
362 double inv_px, inv_py;
364 vpCameraParametersProjType projModel ;
vp_deprecated double getFovAngleX() const
Definition of the vpMatrix class.
double getHorizontalFovAngle() const
Perspective projection without distortion model.
double get_px_inverse() const
vp_deprecated double getFovAngleY() 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 .
vpCameraParametersProjType get_projModel() const
std::vector< vpColVector > getFovNormals() const
double getVerticalFovAngle() const
Conversion from pixel coordinates to normalized coordinates in meter.