pub struct Rs2Intrinsics(pub rs2_intrinsics);
Expand description
Type representing the model for describing the way that light bends in a stream.
This stores the focal length, principal point, dimensions, and distortion model used on the image frame. See the documentation for Rs2Distortion for specifics on the available distortion models for RealSense devices.
Use the function stream_profile.intrinsics()
to retrieve these intrinsics from a certain stream.
Tuple Fields§
§0: rs2_intrinsics
Implementations§
Source§impl Rs2Intrinsics
impl Rs2Intrinsics
Sourcepub fn ppx(&self) -> f32
pub fn ppx(&self) -> f32
Horizontal coordinate of the principal point of the image, as a pixel offset from the left edge
Sourcepub fn ppy(&self) -> f32
pub fn ppy(&self) -> f32
Vertical coordinate of the principal point of the image, as a pixel offset from the top edge
Sourcepub fn distortion(&self) -> Rs2Distortion
pub fn distortion(&self) -> Rs2Distortion
Distortion model and coefficients of the image
Trait Implementations§
Source§impl Debug for Rs2Intrinsics
impl Debug for Rs2Intrinsics
impl Send for Rs2Intrinsics
Auto Trait Implementations§
impl Freeze for Rs2Intrinsics
impl RefUnwindSafe for Rs2Intrinsics
impl Sync for Rs2Intrinsics
impl Unpin for Rs2Intrinsics
impl UnwindSafe for Rs2Intrinsics
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