pub struct StereoRig { /* private fields */ }Expand description
Calibrated two-camera stereo geometry.
Implementations§
Source§impl StereoRig
impl StereoRig
Sourcepub fn try_new(
left: CameraMatrix3,
right: CameraMatrix3,
pose: RelativePose,
) -> VisionResult<Self>
pub fn try_new( left: CameraMatrix3, right: CameraMatrix3, pose: RelativePose, ) -> VisionResult<Self>
Creates a rig from left/right intrinsics and the right-camera pose in the
left-camera frame (X_right = R X_left + t).
Sourcepub const fn left(self) -> CameraMatrix3
pub const fn left(self) -> CameraMatrix3
Returns the left intrinsic matrix.
Sourcepub const fn right(self) -> CameraMatrix3
pub const fn right(self) -> CameraMatrix3
Returns the right intrinsic matrix.
Sourcepub const fn pose(self) -> RelativePose
pub const fn pose(self) -> RelativePose
Returns the right camera pose expressed in the left camera frame.
Trait Implementations§
impl Copy for StereoRig
impl StructuralPartialEq for StereoRig
Auto Trait Implementations§
impl Freeze for StereoRig
impl RefUnwindSafe for StereoRig
impl Send for StereoRig
impl Sync for StereoRig
impl Unpin for StereoRig
impl UnsafeUnpin for StereoRig
impl UnwindSafe for StereoRig
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