Struct align3d::camera::CameraIntrinsics
source · pub struct CameraIntrinsics {
pub fx: f64,
pub fy: f64,
pub cx: f64,
pub cy: f64,
pub width: usize,
pub height: usize,
}Expand description
Camera intrinsic parameters.
Fields§
§fx: f64Focal length and pixel scale in the X-axis.
fy: f64Focal length and pixel scale in the Y-axis.
cx: f64Camera X-center.
cy: f64Camera Y-center.
width: usizeImage width in pixels.
height: usizeImage height in pixels.
Implementations§
source§impl CameraIntrinsics
impl CameraIntrinsics
sourcepub fn from_simple_intrinsic(
fx: f64,
fy: f64,
cx: f64,
cy: f64,
width: usize,
height: usize
) -> Self
pub fn from_simple_intrinsic( fx: f64, fy: f64, cx: f64, cy: f64, width: usize, height: usize ) -> Self
pub fn size(&mut self, width: usize, height: usize)
Trait Implementations§
source§impl Clone for CameraIntrinsics
impl Clone for CameraIntrinsics
source§fn clone(&self) -> CameraIntrinsics
fn clone(&self) -> CameraIntrinsics
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl RefUnwindSafe for CameraIntrinsics
impl Send for CameraIntrinsics
impl Sync for CameraIntrinsics
impl Unpin for CameraIntrinsics
impl UnwindSafe for CameraIntrinsics
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
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.