pub struct CameraMatrix3 { /* private fields */ }Expand description
Calibrated pinhole intrinsic matrix and its analytic inverse.
Implementations§
Source§impl CameraMatrix3
impl CameraMatrix3
Sourcepub fn from_intrinsics(intrinsics: CameraIntrinsics) -> Self
pub fn from_intrinsics(intrinsics: CameraIntrinsics) -> Self
Builds K and K^-1 from validated camera intrinsics.
Sourcepub fn normalize_pixel(self, pixel: Vec2<f64>) -> Vec3<f64>
pub fn normalize_pixel(self, pixel: Vec2<f64>) -> Vec3<f64>
Converts a pixel into the homogeneous normalized camera plane.
Trait Implementations§
Source§impl Clone for CameraMatrix3
impl Clone for CameraMatrix3
Source§fn clone(&self) -> CameraMatrix3
fn clone(&self) -> CameraMatrix3
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CameraMatrix3
impl Debug for CameraMatrix3
Source§impl PartialEq for CameraMatrix3
impl PartialEq for CameraMatrix3
Source§fn eq(&self, other: &CameraMatrix3) -> bool
fn eq(&self, other: &CameraMatrix3) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CameraMatrix3
impl StructuralPartialEq for CameraMatrix3
Auto Trait Implementations§
impl Freeze for CameraMatrix3
impl RefUnwindSafe for CameraMatrix3
impl Send for CameraMatrix3
impl Sync for CameraMatrix3
impl Unpin for CameraMatrix3
impl UnsafeUnpin for CameraMatrix3
impl UnwindSafe for CameraMatrix3
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more