48 #ifndef vpCameraParameters_H
49 #define vpCameraParameters_H
53 #include <visp3/core/vpConfig.h>
54 #include <visp3/core/vpMatrix.h>
55 #include <visp3/core/vpColVector.h>
56 #include <visp3/core/vpDebug.h>
225 perspectiveProjWithDistortion
226 } vpCameraParametersProjType ;
233 const double u0,
const double v0) ;
235 const double u0,
const double v0,
236 const double kud,
const double kdu) ;
243 void initFromCalibrationMatrix(
const vpMatrix& _K);
244 void initFromFov(
const unsigned int &w,
const unsigned int &h,
const double &hfov,
const double &vfov);
245 void initPersProjWithoutDistortion(
const double px,
const double py,
const double u0,
const double v0);
246 void initPersProjWithDistortion(
const double px,
const double py,
const double u0,
const double v0,
247 const double kud,
const double kdu) ;
258 void computeFov(
const unsigned int &w,
const unsigned int &h);
268 if(!isFov)
vpTRACE(
"Warning: The FOV is not computed, getHorizontalFovAngle() won't be significant.");
280 if(!isFov)
vpTRACE(
"Warning: The FOV is not computed, getVerticalFovAngle() won't be significant.");
296 if(!isFov)
vpTRACE(
"Warning: The FOV is not computed, getFovNormals() won't be significant.");
300 inline double get_px()
const {
return px; }
303 inline double get_py()
const {
return py; }
304 inline double get_u0()
const {
return u0; }
305 inline double get_v0()
const {
return v0; }
316 void printParameters() ;
317 friend VISP_EXPORT std::ostream & operator << (std::ostream & os,
const vpCameraParameters &cam);
320 static const double DEFAULT_U0_PARAMETER;
321 static const double DEFAULT_V0_PARAMETER;
322 static const double DEFAULT_PX_PARAMETER;
323 static const double DEFAULT_PY_PARAMETER;
324 static const double DEFAULT_KUD_PARAMETER;
325 static const double DEFAULT_KDU_PARAMETER;
326 static const vpCameraParametersProjType DEFAULT_PROJ_TYPE;
335 unsigned int height ;
339 std::vector<vpColVector> fovNormals ;
341 double inv_px, inv_py;
343 vpCameraParametersProjType projModel ;
Implementation of a matrix and operations on matrices.
double getHorizontalFovAngle() const
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 .
vpCameraParametersProjType get_projModel() const
std::vector< vpColVector > getFovNormals() const
double getVerticalFovAngle() const
Conversion from pixel coordinates to normalized coordinates in meter.