pub struct CameraToCamera(pub IsometryMatrix3<f64>);
Expand description
This contains a relative pose, which is a pose that transforms the CameraPoint
of one image into the corresponding CameraPoint
of another image. This transforms
the point from the camera space of camera A
to camera B
.
Camera space for a given camera is defined as thus:
- Origin is the optical center
- Positive z axis is forwards
- Positive y axis is up
- Positive x axis is right
Note that this is a left-handed coordinate space.
Tuple Fields§
§0: IsometryMatrix3<f64>
Trait Implementations§
Source§impl AsMut<Isometry<f64, U3, Rotation<f64, U3>>> for CameraToCamera
impl AsMut<Isometry<f64, U3, Rotation<f64, U3>>> for CameraToCamera
Source§fn as_mut(&mut self) -> &mut IsometryMatrix3<f64>
fn as_mut(&mut self) -> &mut IsometryMatrix3<f64>
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<Isometry<f64, U3, Rotation<f64, U3>>> for CameraToCamera
impl AsRef<Isometry<f64, U3, Rotation<f64, U3>>> for CameraToCamera
Source§fn as_ref(&self) -> &IsometryMatrix3<f64>
fn as_ref(&self) -> &IsometryMatrix3<f64>
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for CameraToCamera
impl Clone for CameraToCamera
Source§fn clone(&self) -> CameraToCamera
fn clone(&self) -> CameraToCamera
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 moreSource§impl Debug for CameraToCamera
impl Debug for CameraToCamera
Source§impl From<CameraToCamera> for IsometryMatrix3<f64>
impl From<CameraToCamera> for IsometryMatrix3<f64>
Source§fn from(original: CameraToCamera) -> Self
fn from(original: CameraToCamera) -> Self
Converts to this type from the input type.
Source§impl From<Isometry<f64, U3, Rotation<f64, U3>>> for CameraToCamera
impl From<Isometry<f64, U3, Rotation<f64, U3>>> for CameraToCamera
Source§fn from(original: IsometryMatrix3<f64>) -> CameraToCamera
fn from(original: IsometryMatrix3<f64>) -> CameraToCamera
Converts to this type from the input type.
Source§impl PartialEq for CameraToCamera
impl PartialEq for CameraToCamera
Source§impl Pose for CameraToCamera
impl Pose for CameraToCamera
type InputPoint = CameraPoint
type OutputPoint = CameraPoint
type Inverse = CameraToCamera
Source§fn isometry(self) -> IsometryMatrix3<f64>
fn isometry(self) -> IsometryMatrix3<f64>
Retrieve the isometry.
Source§fn scale(self, scale: f64) -> Self
fn scale(self, scale: f64) -> Self
Applies a scale factor to the pose (scales the translation component)
Source§fn from_parts(translation: Vector3<f64>, rotation: Rotation3<f64>) -> Self
fn from_parts(translation: Vector3<f64>, rotation: Rotation3<f64>) -> Self
Create the pose from rotation and translation.
Source§fn homogeneous(self) -> Matrix4<f64>
fn homogeneous(self) -> Matrix4<f64>
Retrieve the homogeneous matrix.
Source§fn transform_jacobians(
self,
input: Self::InputPoint,
) -> (Self::OutputPoint, Matrix4<f64>, Matrix4x6<f64>)
fn transform_jacobians( self, input: Self::InputPoint, ) -> (Self::OutputPoint, Matrix4<f64>, Matrix4x6<f64>)
Transform the given point to an output point, while also retrieving both Jacobians. Read more
Source§fn transform_jacobian_input(
self,
input: Self::InputPoint,
) -> (Self::OutputPoint, Matrix4<f64>)
fn transform_jacobian_input( self, input: Self::InputPoint, ) -> (Self::OutputPoint, Matrix4<f64>)
Transform the given point to an output point, while also retrieving the input Jacobian. Read more
Source§fn transform_jacobian_self(
self,
input: Self::InputPoint,
) -> (Self::OutputPoint, Matrix4x6<f64>)
fn transform_jacobian_self( self, input: Self::InputPoint, ) -> (Self::OutputPoint, Matrix4x6<f64>)
Transform the given point to an output point, while also retrieving the transform Jacobian. Read more
Source§fn transform(self, input: Self::InputPoint) -> Self::OutputPoint
fn transform(self, input: Self::InputPoint) -> Self::OutputPoint
Transform the given point to an output point, while also retrieving the transform Jacobian. Read more
impl Copy for CameraToCamera
impl StructuralPartialEq for CameraToCamera
Auto Trait Implementations§
impl Freeze for CameraToCamera
impl RefUnwindSafe for CameraToCamera
impl Send for CameraToCamera
impl Sync for CameraToCamera
impl Unpin for CameraToCamera
impl UnwindSafe for CameraToCamera
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<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§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 moreSource§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).Source§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.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.