Struct opencv::surface_matching::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 OpenCVType<'_>>::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<Ptr<Pose3D>>

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<T, U> TryFrom<U> for T
where U: Into<T>,

§

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>,

§

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.