[][src]Struct cv_core::CameraSpecification

pub struct CameraSpecification {
    pub pixels: Vector2<usize>,
    pub pixel_dimensions: Vector2<f32>,

This contains basic camera specifications that one could find on a manufacturer's website. This only contains parameters that cannot be changed about a camera. The focal length is not included since that can typically be changed and images can also be magnified.

All distance units should be in meters to avoid conversion issues.


pixels: Vector2<usize>pixel_dimensions: Vector2<f32>


impl CameraSpecification[src]

pub fn from_sensor(
    pixels: Vector2<usize>,
    sensor_dimensions: Vector2<f32>
) -> Self

Creates a CameraSpecification using the sensor dimensions.

pub fn from_sensor_square(pixels: Vector2<usize>, sensor_width: f32) -> Self[src]

Creates a CameraSpecification using the sensor width assuming a square pixel.

pub fn intrinsics_centered(&self, focal: f32) -> CameraIntrinsics[src]

Combines the CameraSpecification with a focal length to create a CameraIntrinsics.

This assumes square pixels and a perfectly centered principal point.

Trait Implementations

impl Clone for CameraSpecification[src]

impl Copy for CameraSpecification[src]

impl Debug for CameraSpecification[src]

impl PartialEq<CameraSpecification> for CameraSpecification[src]

impl PartialOrd<CameraSpecification> for CameraSpecification[src]

impl StructuralPartialEq for CameraSpecification[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Scalar for T where
    T: PartialEq<T> + Copy + Any + Debug

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

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,