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>,
}Expand description
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: usizeThe width of the image sensor (in pixels).
image_height: usizeThe height of the image sensor (in pixels).
camera_name: StringThe name of the camera
camera_matrix: RosMatrix<R>The camera matrix k.
distortion_model: StringThe 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
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
Performs the conversion.
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
Mutably borrows from an owned value. Read more
type Output = T
type Output = TShould always be Self
The inverse inclusion map: attempts to construct self from the equivalent element of its
superset. Read more
pub fn is_in_subset(&self) -> bool
pub fn is_in_subset(&self) -> boolChecks if self is actually part of its subset T (and can be converted to it).
pub fn to_subset_unchecked(&self) -> SS
pub fn to_subset_unchecked(&self) -> SSUse with care! Same as self.to_subset but without any property checks. Always succeeds.
pub fn from_subset(element: &SS) -> SP
pub fn from_subset(element: &SS) -> SPThe inclusion map: converts self to the equivalent element of its superset.