Пример #1
0
/*!
  Constructor for perspective projection with distortion model

  \param cam_px,cam_py : pixel size
  \param cam_u0,cam_v0 : principal points
  \param cam_kud : undistorted to distorted radial distortion
  \param cam_kdu : distorted to undistorted radial distortion

 */
vpCameraParameters::vpCameraParameters(const double cam_px, const double cam_py,
                                       const double cam_u0, const double cam_v0,
                                       const double cam_kud, const double cam_kdu)
    :
    px(DEFAULT_PX_PARAMETER), py(DEFAULT_PY_PARAMETER),
    u0(DEFAULT_U0_PARAMETER), v0(DEFAULT_V0_PARAMETER),
    kud(DEFAULT_KUD_PARAMETER), kdu(DEFAULT_KDU_PARAMETER),
    width(0), height(0),
    isFov(false), m_hFovAngle(0), m_vFovAngle(0), fovNormals(),
    inv_px(1./DEFAULT_PX_PARAMETER), inv_py(1./DEFAULT_PY_PARAMETER),
    projModel(DEFAULT_PROJ_TYPE)
{
    initPersProjWithDistortion(cam_px,cam_py,cam_u0,cam_v0,cam_kud,cam_kdu) ;
}
Пример #2
0
/*!
  Constructor for perspective projection with distortion model

  \param px,py : pixel size
  \param u0,v0 : principal points
  \param kud : undistorted to distorted radial distortion
  \param kdu : distorted to undistorted radial distortion

 */
vpCameraParameters::vpCameraParameters(const double px, const double py,
                                       const double u0, const double v0,
                                       const double kud, const double kdu)
{
  initPersProjWithDistortion(px,py,u0,v0,kud,kdu) ;
}