pub struct Pose3D { /* private fields */ }
Expand description
Class, allowing the storage of a pose. The data structure stores both the quaternions and the matrix forms. It supports IO functionality together with various helper methods to work with poses
Implementations§
Trait Implementations§
Source§impl Boxed for Pose3D
impl Boxed for Pose3D
Source§unsafe fn from_raw(ptr: <Pose3D as OpenCVFromExtern>::ExternReceive) -> Self
unsafe fn from_raw(ptr: <Pose3D as OpenCVFromExtern>::ExternReceive) -> Self
Wrap the specified raw pointer Read more
Source§fn into_raw(self) -> <Pose3D as OpenCVTypeExternContainer>::ExternSendMut
fn into_raw(self) -> <Pose3D as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying raw pointer while consuming this wrapper. Read more
Source§fn as_raw(&self) -> <Pose3D as OpenCVTypeExternContainer>::ExternSend
fn as_raw(&self) -> <Pose3D as OpenCVTypeExternContainer>::ExternSend
Return the underlying raw pointer. Read more
Source§fn as_raw_mut(&mut self) -> <Pose3D as OpenCVTypeExternContainer>::ExternSendMut
fn as_raw_mut(&mut self) -> <Pose3D as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying mutable raw pointer Read more
Source§impl Pose3DTrait for Pose3D
impl Pose3DTrait for Pose3D
fn as_raw_mut_Pose3D(&mut self) -> *mut c_void
fn set_alpha(&mut self, val: f64)
fn set_residual(&mut self, val: f64)
fn set_model_index(&mut self, val: size_t)
fn set_num_votes(&mut self, val: size_t)
fn set_pose(&mut self, val: Matx44d)
fn set_angle(&mut self, val: f64)
fn set_t(&mut self, val: Vec3d)
fn set_q(&mut self, val: Vec4d)
Source§fn update_pose(&mut self, new_pose: &mut Matx44d) -> Result<()>
fn update_pose(&mut self, new_pose: &mut Matx44d) -> Result<()>
\brief Updates the pose with the new one
\param [in] NewPose New pose to overwrite
Source§fn update_pose_1(
&mut self,
new_r: &mut Matx33d,
new_t: &mut Vec3d,
) -> Result<()>
fn update_pose_1( &mut self, new_r: &mut Matx33d, new_t: &mut Vec3d, ) -> Result<()>
\brief Updates the pose with the new one
Source§fn update_pose_quat(&mut self, q: &mut Vec4d, new_t: &mut Vec3d) -> Result<()>
fn update_pose_quat(&mut self, q: &mut Vec4d, new_t: &mut Vec3d) -> Result<()>
\brief Updates the pose with the new one, but this time using quaternions to represent rotation
Source§fn append_pose(&mut self, incremental_pose: &mut Matx44d) -> Result<()>
fn append_pose(&mut self, incremental_pose: &mut Matx44d) -> Result<()>
\brief Left multiplies the existing pose in order to update the transformation
\param [in] IncrementalPose New pose to apply
fn print_pose(&mut self) -> Result<()>
fn clone(&mut self) -> Result<Pose3DPtr>
fn write_pose(&mut self, file_name: &str) -> Result<i32>
fn read_pose(&mut self, file_name: &str) -> Result<i32>
Source§impl Pose3DTraitConst for Pose3D
impl Pose3DTraitConst for Pose3D
impl Send for Pose3D
Auto Trait Implementations§
impl Freeze for Pose3D
impl RefUnwindSafe for Pose3D
impl !Sync for Pose3D
impl Unpin for Pose3D
impl UnwindSafe for Pose3D
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<Mat> ModifyInplace for Matwhere
Mat: Boxed,
impl<Mat> ModifyInplace for Matwhere
Mat: Boxed,
Source§unsafe fn modify_inplace<Res>(
&mut self,
f: impl FnOnce(&Mat, &mut Mat) -> Res,
) -> Res
unsafe fn modify_inplace<Res>( &mut self, f: impl FnOnce(&Mat, &mut Mat) -> Res, ) -> Res
Helper function to call OpenCV functions that allow in-place modification of a
Mat
or another similar object. By passing
a mutable reference to the Mat
to this function your closure will get called with the read reference and a write references
to the same Mat
. This is unsafe in a general case as it leads to having non-exclusive mutable access to the internal data,
but it can be useful for some performance sensitive operations. One example of an OpenCV function that allows such in-place
modification is imgproc::threshold
. Read more