Public Member Functions |
| | TCamera () |
| void | saveToConfigFile (const std::string §ion, mrpt::utils::CConfigFileBase &cfg) const |
| | Save as a config block:.
|
| void | loadFromConfigFile (const std::string §ion, const mrpt::utils::CConfigFileBase &cfg) |
| | Load all the params from a config source, in the format used in saveToConfigFile(), that is:.
|
| void | setIntrinsicParamsFromValues (double fx, double fy, double cx, double cy) |
| | Set the matrix of intrinsic params of the camera from the individual values of focal length and principal point coordinates (in pixels).
|
| void | getDistortionParamsVector (CMatrixDouble15 &distParVector) const |
| | Get the vector of distortion params of the camera.
|
| vector_double | getDistortionParamsAsVector () const |
| | Get a vector with the distortion params of the camera.
|
| void | setDistortionParamsVector (const CMatrixDouble15 &distParVector) |
| | Set the whole vector of distortion params of the camera.
|
| template<class VECTORLIKE > |
| void | setDistortionParamsVector (const VECTORLIKE &distParVector) |
| | Set the whole vector of distortion params of the camera from a 4 or 5-vector.
|
| void | setDistortionParamsFromValues (double k1, double k2, double p1, double p2, double p3=0) |
| | Set the vector of distortion params of the camera from the individual values of the distortion coefficients.
|
| double | cx () const |
| | Get the value of the principal point x-coordinate (in pixels).
|
| double | cy () const |
| | Get the value of the principal point y-coordinate (in pixels).
|
| double | fx () const |
| | Get the value of the focal length x-value (in pixels).
|
| double | fy () const |
| | Get the value of the focal length y-value (in pixels).
|
| double | k1 () const |
| | Get the value of the k1 distortion parameter.
|
| double | k2 () const |
| | Get the value of the k2 distortion parameter.
|
| double | p1 () const |
| | Get the value of the p1 distortion parameter.
|
| double | p2 () const |
| | Get the value of the p2 distortion parameter.
|
| double | p3 () const |
| | Get the value of the p3 distortion parameter.
|
Public Attributes |
|
|
| uint32_t | ncols |
| uint32_t | nrows |
| | Camera resolution.
|
| CMatrixDouble33 | intrinsicParams |
| | Matrix of intrinsic parameters (containing the focal length and principal point coordinates).
|
| CArrayDouble< 5 > | dist |
| | [k1 k2 t1 t2 t3] -> k_i: parameters of radial distortion, t_i: parameters of tangential distortion (default=0)
|
| double | focalLengthMeters |
| | The focal length of the camera, in meters (can be used among 'intrinsicParams' to determine the pixel size).
|
Structure to hold the parameters of a pinhole camera model.