Struct opencv_ros_camera::RosCameraInfo[][src]

pub struct RosCameraInfo<R: RealField> {
    pub image_width: usize,
    pub image_height: usize,
    pub camera_name: String,
    pub camera_matrix: RosMatrix<R>,
    pub distortion_model: String,
    pub distortion_coefficients: RosMatrix<R>,
    pub rectification_matrix: RosMatrix<R>,
    pub projection_matrix: RosMatrix<R>,
}

Camera calibration info as saved by ROS.

This is a low-level structure only intended for interoperation with ROS. To convert to a more Rust-friedly type, use NamedIntrinsicParameters::try_from(). To create an instance of this structure from a NamedIntrinsicParameters struct, use RosCameraInfo::from().

This structure implements the format written by writeCalibrationYml in ROS code camera_calibration_parsers/src/parse_yml.cpp. It can be serialized or deserialized with serde. (It is strange that writeCalibrationYml has its own serializer rather than using the ROS message type sensor_msgs/CameraInfo.)

Fields

image_width: usize

The width of the image sensor (in pixels).

image_height: usize

The height of the image sensor (in pixels).

camera_name: String

The name of the camera

camera_matrix: RosMatrix<R>

The camera matrix k.

distortion_model: String

The name of the distortion model. Only “plumb_bob” is supported.

distortion_coefficients: RosMatrix<R>

The coefficients of the distortion parameters.

rectification_matrix: RosMatrix<R>

The stereo rectification matrix.

projection_matrix: RosMatrix<R>

The projection matrix p.

Trait Implementations

impl<'de, R: RealField> Deserialize<'de> for RosCameraInfo<R> where
    R: Deserialize<'de>, 
[src]

impl<R: RealField> From<NamedIntrinsicParameters<R>> for RosCameraInfo<R>[src]

impl<R: RealField> Serialize for RosCameraInfo<R> where
    R: Serialize
[src]

impl<R: RealField> TryFrom<RosCameraInfo<R>> for NamedIntrinsicParameters<R>[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl<R> RefUnwindSafe for RosCameraInfo<R> where
    R: RefUnwindSafe

impl<R> Send for RosCameraInfo<R>

impl<R> Sync for RosCameraInfo<R>

impl<R> Unpin for RosCameraInfo<R> where
    R: Unpin

impl<R> UnwindSafe for RosCameraInfo<R> where
    R: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.