Struct Pose3D

Source
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§

Source§

impl Pose3D

Source

pub fn default() -> Result<Pose3D>

Source

pub fn new(alpha: f64, model_index: size_t, num_votes: size_t) -> Result<Pose3D>

§C++ default parameters
  • model_index: 0
  • num_votes: 0
Source

pub fn new_def(alpha: f64) -> Result<Pose3D>

§Note

This alternative version of [new] function uses the following default values for its arguments:

  • model_index: 0
  • num_votes: 0

Trait Implementations§

Source§

impl Boxed for Pose3D

Source§

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

Return the underlying raw pointer while consuming this wrapper. Read more
Source§

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

Return the underlying mutable raw pointer Read more
Source§

impl Debug for Pose3D

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Drop for Pose3D

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl Pose3DTrait for Pose3D

Source§

fn as_raw_mut_Pose3D(&mut self) -> *mut c_void

Source§

fn set_alpha(&mut self, val: f64)

Source§

fn set_residual(&mut self, val: f64)

Source§

fn set_model_index(&mut self, val: size_t)

Source§

fn set_num_votes(&mut self, val: size_t)

Source§

fn set_pose(&mut self, val: Matx44d)

Source§

fn set_angle(&mut self, val: f64)

Source§

fn set_t(&mut self, val: Vec3d)

Source§

fn set_q(&mut self, val: Vec4d)

Source§

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<()>

\brief Updates the pose with the new one
Source§

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<()>

\brief Left multiplies the existing pose in order to update the transformation \param [in] IncrementalPose New pose to apply
Source§

fn print_pose(&mut self) -> Result<()>

Source§

fn clone(&mut self) -> Result<Pose3DPtr>

Source§

fn write_pose(&mut self, file_name: &str) -> Result<i32>

Source§

fn read_pose(&mut self, file_name: &str) -> Result<i32>

Source§

impl Pose3DTraitConst for Pose3D

Source§

fn as_raw_Pose3D(&self) -> *const c_void

Source§

fn alpha(&self) -> f64

Source§

fn residual(&self) -> f64

Source§

fn model_index(&self) -> size_t

Source§

fn num_votes(&self) -> size_t

Source§

fn pose(&self) -> Matx44d

Source§

fn angle(&self) -> f64

Source§

fn t(&self) -> Vec3d

Source§

fn q(&self) -> Vec4d

Source§

impl Send for Pose3D

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<Mat> ModifyInplace for Mat
where Mat: Boxed,

Source§

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
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.