[−][src]Struct cv_core::CameraSpecification
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<f32>
Methods
impl CameraSpecification
[src]
pub fn new(
pixels: Vector2<usize>,
pixel_dimensions: Vector2<f32>
) -> CameraSpecification
[src]
pixels: Vector2<usize>,
pixel_dimensions: Vector2<f32>
) -> CameraSpecification
impl CameraSpecification
[src]
pub fn from_sensor(
pixels: Vector2<usize>,
sensor_dimensions: Vector2<f32>
) -> Self
[src]
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]
fn clone(&self) -> CameraSpecification
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for CameraSpecification
[src]
impl Debug for CameraSpecification
[src]
impl PartialEq<CameraSpecification> for CameraSpecification
[src]
fn eq(&self, other: &CameraSpecification) -> bool
[src]
fn ne(&self, other: &CameraSpecification) -> bool
[src]
impl PartialOrd<CameraSpecification> for CameraSpecification
[src]
fn partial_cmp(&self, other: &CameraSpecification) -> Option<Ordering>
[src]
fn lt(&self, other: &CameraSpecification) -> bool
[src]
fn le(&self, other: &CameraSpecification) -> bool
[src]
fn gt(&self, other: &CameraSpecification) -> bool
[src]
fn ge(&self, other: &CameraSpecification) -> bool
[src]
impl StructuralPartialEq for CameraSpecification
[src]
Auto Trait Implementations
impl Send for CameraSpecification
impl Sync for CameraSpecification
impl Unpin for CameraSpecification
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,
fn borrow_mut(&mut self) -> &mut T
[src]
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<T> Scalar for T where
T: PartialEq<T> + Copy + Any + Debug,
[src]
T: PartialEq<T> + Copy + Any + Debug,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
unsafe fn to_subset_unchecked(&self) -> SS
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,