[][src]Struct cv_core::CameraSpecification

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

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.

Fields

pixels: Vector2<usize>pixel_dimensions: Vector2<f64>

Methods

impl CameraSpecification[src]

pub fn from_sensor(
    pixels: Vector2<usize>,
    sensor_dimensions: Vector2<f64>
) -> Self
[src]

Creates a CameraSpecification using the sensor dimensions.

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

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

pub fn intrinsics_centered(&self, focal: f64) -> 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
[src]

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

impl<T> BorrowMut<T> for T where
    T: ?Sized
[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<T> Scalar for T where
    T: PartialEq<T> + Copy + Any + Debug
[src]

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.

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