pub struct RgbdFrame { /* private fields */ }Expand description
Object that contains a frame data.
Implementations§
Source§impl RgbdFrame
impl RgbdFrame
pub fn default() -> Result<RgbdFrame>
Sourcepub fn new(
image: &impl MatTraitConst,
depth: &impl MatTraitConst,
mask: &impl MatTraitConst,
normals: &impl MatTraitConst,
id: i32,
) -> Result<RgbdFrame>
pub fn new( image: &impl MatTraitConst, depth: &impl MatTraitConst, mask: &impl MatTraitConst, normals: &impl MatTraitConst, id: i32, ) -> Result<RgbdFrame>
§C++ default parameters
- mask: Mat()
- normals: Mat()
- id: -1
Sourcepub fn new_def(
image: &impl MatTraitConst,
depth: &impl MatTraitConst,
) -> Result<RgbdFrame>
pub fn new_def( image: &impl MatTraitConst, depth: &impl MatTraitConst, ) -> Result<RgbdFrame>
§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<RgbdFrame>>
pub fn create( image: &impl MatTraitConst, depth: &impl MatTraitConst, mask: &impl MatTraitConst, normals: &impl MatTraitConst, id: i32, ) -> Result<Ptr<RgbdFrame>>
§C++ default parameters
- image: Mat()
- depth: Mat()
- mask: Mat()
- normals: Mat()
- id: -1
Sourcepub fn create_def() -> Result<Ptr<RgbdFrame>>
pub fn create_def() -> Result<Ptr<RgbdFrame>>
§Note
This alternative version of RgbdFrame::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 RgbdFrame
impl Boxed for RgbdFrame
Source§unsafe fn from_raw(ptr: <RgbdFrame as OpenCVFromExtern>::ExternReceive) -> Self
unsafe fn from_raw(ptr: <RgbdFrame as OpenCVFromExtern>::ExternReceive) -> Self
Wrap the specified raw pointer Read more
Source§fn into_raw(self) -> <RgbdFrame as OpenCVTypeExternContainer>::ExternSendMut
fn into_raw(self) -> <RgbdFrame as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying raw pointer while consuming this wrapper. Read more
Source§fn as_raw(&self) -> <RgbdFrame as OpenCVTypeExternContainer>::ExternSend
fn as_raw(&self) -> <RgbdFrame as OpenCVTypeExternContainer>::ExternSend
Return the underlying raw pointer. Read more
Source§fn as_raw_mut(
&mut self,
) -> <RgbdFrame as OpenCVTypeExternContainer>::ExternSendMut
fn as_raw_mut( &mut self, ) -> <RgbdFrame as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying mutable raw pointer Read more
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 RgbdFrameTrait for RgbdFrame
impl RgbdFrameTrait for RgbdFrame
Source§impl RgbdFrameTraitConst for RgbdFrame
impl RgbdFrameTraitConst for RgbdFrame
Source§impl TryFrom<RgbdFrame> for OdometryFrame
impl TryFrom<RgbdFrame> for OdometryFrame
impl Send for RgbdFrame
Auto Trait Implementations§
impl Freeze for RgbdFrame
impl RefUnwindSafe for RgbdFrame
impl !Sync for RgbdFrame
impl Unpin for RgbdFrame
impl UnwindSafe for RgbdFrame
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