Struct opencv::rgbd::LineMod_DepthNormal
source · pub struct LineMod_DepthNormal { /* private fields */ }
Expand description
\brief Modality that computes quantized surface normals from a dense depth map.
Implementations§
source§impl LineMod_DepthNormal
impl LineMod_DepthNormal
sourcepub fn default() -> Result<LineMod_DepthNormal>
pub fn default() -> Result<LineMod_DepthNormal>
\brief Default constructor. Uses reasonable default parameter values.
sourcepub fn new(
distance_threshold: i32,
difference_threshold: i32,
num_features: size_t,
extract_threshold: i32
) -> Result<LineMod_DepthNormal>
pub fn new( distance_threshold: i32, difference_threshold: i32, num_features: size_t, extract_threshold: i32 ) -> Result<LineMod_DepthNormal>
\brief Constructor.
\param distance_threshold Ignore pixels beyond this distance. \param difference_threshold When computing normals, ignore contributions of pixels whose depth difference with the central pixel is above this threshold. \param num_features How many features a template must contain. \param extract_threshold Consider as candidate feature only if there are no differing orientations within a distance of extract_threshold.
pub fn create( distance_threshold: i32, difference_threshold: i32, num_features: size_t, extract_threshold: i32 ) -> Result<Ptr<LineMod_DepthNormal>>
Trait Implementations§
source§impl Boxed for LineMod_DepthNormal
impl Boxed for LineMod_DepthNormal
source§unsafe fn from_raw(
ptr: <LineMod_DepthNormal as OpenCVFromExtern>::ExternReceive
) -> Self
unsafe fn from_raw( ptr: <LineMod_DepthNormal as OpenCVFromExtern>::ExternReceive ) -> Self
Wrap the specified raw pointer Read more
source§fn into_raw(
self
) -> <LineMod_DepthNormal as OpenCVTypeExternContainer>::ExternSendMut
fn into_raw( self ) -> <LineMod_DepthNormal as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying raw pointer while consuming this wrapper. Read more
source§fn as_raw(
&self
) -> <LineMod_DepthNormal as OpenCVTypeExternContainer>::ExternSend
fn as_raw( &self ) -> <LineMod_DepthNormal as OpenCVTypeExternContainer>::ExternSend
Return the underlying raw pointer. Read more
source§fn as_raw_mut(
&mut self
) -> <LineMod_DepthNormal as OpenCVTypeExternContainer>::ExternSendMut
fn as_raw_mut( &mut self ) -> <LineMod_DepthNormal as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying mutable raw pointer Read more
source§impl Debug for LineMod_DepthNormal
impl Debug for LineMod_DepthNormal
source§impl Drop for LineMod_DepthNormal
impl Drop for LineMod_DepthNormal
source§impl From<LineMod_DepthNormal> for LineMod_Modality
impl From<LineMod_DepthNormal> for LineMod_Modality
source§fn from(s: LineMod_DepthNormal) -> Self
fn from(s: LineMod_DepthNormal) -> Self
Converts to this type from the input type.
source§impl LineMod_DepthNormalTrait for LineMod_DepthNormal
impl LineMod_DepthNormalTrait for LineMod_DepthNormal
fn as_raw_mut_LineMod_DepthNormal(&mut self) -> *mut c_void
fn set_distance_threshold(&mut self, val: i32)
fn set_difference_threshold(&mut self, val: i32)
fn set_num_features(&mut self, val: size_t)
fn set_extract_threshold(&mut self, val: i32)
fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>
source§impl LineMod_DepthNormalTraitConst for LineMod_DepthNormal
impl LineMod_DepthNormalTraitConst for LineMod_DepthNormal
fn as_raw_LineMod_DepthNormal(&self) -> *const c_void
fn distance_threshold(&self) -> i32
fn difference_threshold(&self) -> i32
fn num_features(&self) -> size_t
fn extract_threshold(&self) -> i32
fn name(&self) -> Result<String>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
source§impl LineMod_ModalityTraitConst for LineMod_DepthNormal
impl LineMod_ModalityTraitConst for LineMod_DepthNormal
fn as_raw_LineMod_Modality(&self) -> *const c_void
source§fn process(
&self,
src: &impl MatTraitConst,
mask: &impl MatTraitConst
) -> Result<Ptr<LineMod_QuantizedPyramid>>
fn process( &self, src: &impl MatTraitConst, mask: &impl MatTraitConst ) -> Result<Ptr<LineMod_QuantizedPyramid>>
\brief Form a quantized image pyramid from a source image. Read more
source§fn process_def(
&self,
src: &impl MatTraitConst
) -> Result<Ptr<LineMod_QuantizedPyramid>>
fn process_def( &self, src: &impl MatTraitConst ) -> Result<Ptr<LineMod_QuantizedPyramid>>
\brief Form a quantized image pyramid from a source image. Read more
fn name(&self) -> Result<String>
fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>
impl Send for LineMod_DepthNormal
Auto Trait Implementations§
impl Freeze for LineMod_DepthNormal
impl RefUnwindSafe for LineMod_DepthNormal
impl !Sync for LineMod_DepthNormal
impl Unpin for LineMod_DepthNormal
impl UnwindSafe for LineMod_DepthNormal
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 of course unsafe as it breaks the Rust aliasing rules, but it might be useful for some performance
sensitive operations. One example of an OpenCV function that allows such in-place modification is imgproc::threshold
. Read more