Struct opencv_ros_camera::RosCameraInfo [−][src]
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]
R: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<R: RealField> From<NamedIntrinsicParameters<R>> for RosCameraInfo<R>
[src]
fn from(orig: NamedIntrinsicParameters<R>) -> Self
[src]
impl<R: RealField> Serialize for RosCameraInfo<R> where
R: Serialize,
[src]
R: Serialize,
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<R: RealField> TryFrom<RosCameraInfo<R>> for NamedIntrinsicParameters<R>
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(ros_camera: RosCameraInfo<R>) -> Result<NamedIntrinsicParameters<R>>
[src]
Auto Trait Implementations
impl<R> RefUnwindSafe for RosCameraInfo<R> where
R: RefUnwindSafe,
R: RefUnwindSafe,
impl<R> Send for RosCameraInfo<R>
impl<R> Sync for RosCameraInfo<R>
impl<R> Unpin for RosCameraInfo<R> where
R: Unpin,
R: Unpin,
impl<R> UnwindSafe for RosCameraInfo<R> where
R: UnwindSafe,
R: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
pub fn to_subset(&self) -> Option<SS>
pub fn is_in_subset(&self) -> bool
pub fn to_subset_unchecked(&self) -> SS
pub fn from_subset(element: &SS) -> SP
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,