pub struct OdometryFrame { /* private fields */ }
Expand description
Object that contains a frame data that is possibly needed for the Odometry. It’s used for the efficiency (to pass precomputed/cached data of the frame that participates in the Odometry processing several times).
Implementations§
Source§impl OdometryFrame
impl OdometryFrame
pub fn default() -> Result<OdometryFrame>
Sourcepub fn new(
image: &impl MatTraitConst,
depth: &impl MatTraitConst,
mask: &impl MatTraitConst,
normals: &impl MatTraitConst,
id: i32,
) -> Result<OdometryFrame>
pub fn new( image: &impl MatTraitConst, depth: &impl MatTraitConst, mask: &impl MatTraitConst, normals: &impl MatTraitConst, id: i32, ) -> Result<OdometryFrame>
§C++ default parameters
- mask: Mat()
- normals: Mat()
- id: -1
Sourcepub fn new_def(
image: &impl MatTraitConst,
depth: &impl MatTraitConst,
) -> Result<OdometryFrame>
pub fn new_def( image: &impl MatTraitConst, depth: &impl MatTraitConst, ) -> Result<OdometryFrame>
§Note
This alternative version of [new] function uses the following default values for its arguments:
- mask: Mat()
- normals: Mat()
- id: -1
Sourcepub fn create(
image: &impl MatTraitConst,
depth: &impl MatTraitConst,
mask: &impl MatTraitConst,
normals: &impl MatTraitConst,
id: i32,
) -> Result<Ptr<OdometryFrame>>
pub fn create( image: &impl MatTraitConst, depth: &impl MatTraitConst, mask: &impl MatTraitConst, normals: &impl MatTraitConst, id: i32, ) -> Result<Ptr<OdometryFrame>>
§C++ default parameters
- image: Mat()
- depth: Mat()
- mask: Mat()
- normals: Mat()
- id: -1
Sourcepub fn create_def() -> Result<Ptr<OdometryFrame>>
pub fn create_def() -> Result<Ptr<OdometryFrame>>
§Note
This alternative version of OdometryFrame::create function uses the following default values for its arguments:
- image: Mat()
- depth: Mat()
- mask: Mat()
- normals: Mat()
- id: -1
Trait Implementations§
Source§impl Boxed for OdometryFrame
impl Boxed for OdometryFrame
Source§unsafe fn from_raw(
ptr: <OdometryFrame as OpenCVFromExtern>::ExternReceive,
) -> Self
unsafe fn from_raw( ptr: <OdometryFrame as OpenCVFromExtern>::ExternReceive, ) -> Self
Wrap the specified raw pointer Read more
Source§fn into_raw(self) -> <OdometryFrame as OpenCVTypeExternContainer>::ExternSendMut
fn into_raw(self) -> <OdometryFrame as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying raw pointer while consuming this wrapper. Read more
Source§fn as_raw(&self) -> <OdometryFrame as OpenCVTypeExternContainer>::ExternSend
fn as_raw(&self) -> <OdometryFrame as OpenCVTypeExternContainer>::ExternSend
Return the underlying raw pointer. Read more
Source§fn as_raw_mut(
&mut self,
) -> <OdometryFrame as OpenCVTypeExternContainer>::ExternSendMut
fn as_raw_mut( &mut self, ) -> <OdometryFrame as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying mutable raw pointer Read more
Source§impl Debug for OdometryFrame
impl Debug for OdometryFrame
Source§impl Drop for OdometryFrame
impl Drop for OdometryFrame
Source§impl From<OdometryFrame> for RgbdFrame
impl From<OdometryFrame> for RgbdFrame
Source§fn from(s: OdometryFrame) -> Self
fn from(s: OdometryFrame) -> Self
Converts to this type from the input type.
Source§impl OdometryFrameTrait for OdometryFrame
impl OdometryFrameTrait for OdometryFrame
fn as_raw_mut_OdometryFrame(&mut self) -> *mut c_void
fn set_pyramid_image(&mut self, val: Vector<Mat>)
fn set_pyramid_depth(&mut self, val: Vector<Mat>)
fn set_pyramid_mask(&mut self, val: Vector<Mat>)
fn set_pyramid_cloud(&mut self, val: Vector<Mat>)
fn set_pyramid_d_i_dx(&mut self, val: Vector<Mat>)
fn set_pyramid_d_i_dy(&mut self, val: Vector<Mat>)
fn set_pyramid_textured_mask(&mut self, val: Vector<Mat>)
fn set_pyramid_normals(&mut self, val: Vector<Mat>)
fn set_pyramid_normals_mask(&mut self, val: Vector<Mat>)
fn release(&mut self) -> Result<()>
fn release_pyramids(&mut self) -> Result<()>
Source§impl OdometryFrameTraitConst for OdometryFrame
impl OdometryFrameTraitConst for OdometryFrame
fn as_raw_OdometryFrame(&self) -> *const c_void
fn pyramid_image(&self) -> Vector<Mat>
fn pyramid_depth(&self) -> Vector<Mat>
fn pyramid_mask(&self) -> Vector<Mat>
fn pyramid_cloud(&self) -> Vector<Mat>
fn pyramid_d_i_dx(&self) -> Vector<Mat>
fn pyramid_d_i_dy(&self) -> Vector<Mat>
fn pyramid_textured_mask(&self) -> Vector<Mat>
fn pyramid_normals(&self) -> Vector<Mat>
fn pyramid_normals_mask(&self) -> Vector<Mat>
Source§impl RgbdFrameTrait for OdometryFrame
impl RgbdFrameTrait for OdometryFrame
Source§impl RgbdFrameTraitConst for OdometryFrame
impl RgbdFrameTraitConst for OdometryFrame
Source§impl TryFrom<RgbdFrame> for OdometryFrame
impl TryFrom<RgbdFrame> for OdometryFrame
impl Send for OdometryFrame
Auto Trait Implementations§
impl Freeze for OdometryFrame
impl RefUnwindSafe for OdometryFrame
impl !Sync for OdometryFrame
impl Unpin for OdometryFrame
impl UnwindSafe for OdometryFrame
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