opencv::hub_prelude

Trait Dynafu_DynaFuTrait

Source
pub trait Dynafu_DynaFuTrait: Dynafu_DynaFuTraitConst {
    // Required method
    fn as_raw_mut_Dynafu_DynaFu(&mut self) -> *mut c_void;

    // Provided methods
    fn reset(&mut self) -> Result<()> { ... }
    fn update(&mut self, depth: &impl ToInputArray) -> Result<bool> { ... }
    fn render_surface(
        &mut self,
        depth_image: &mut impl ToOutputArray,
        vert_image: &mut impl ToOutputArray,
        norm_image: &mut impl ToOutputArray,
        warp: bool,
    ) -> Result<()> { ... }
    fn render_surface_def(
        &mut self,
        depth_image: &mut impl ToOutputArray,
        vert_image: &mut impl ToOutputArray,
        norm_image: &mut impl ToOutputArray,
    ) -> Result<()> { ... }
}
Expand description

Mutable methods for crate::rgbd::Dynafu_DynaFu

Required Methods§

Provided Methods§

Source

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

Resets the algorithm

Clears current model and resets a pose.

Source

fn update(&mut self, depth: &impl ToInputArray) -> Result<bool>

Process next depth frame

Integrates depth into voxel space with respect to its ICP-calculated pose. Input image is converted to CV_32F internally if has another type.

§Parameters
  • depth: one-channel image which size and depth scale is described in algorithm’s parameters
§Returns

true if succeeded to align new frame with current scene, false if opposite

Source

fn render_surface( &mut self, depth_image: &mut impl ToOutputArray, vert_image: &mut impl ToOutputArray, norm_image: &mut impl ToOutputArray, warp: bool, ) -> Result<()>

§C++ default parameters
  • warp: true
Source

fn render_surface_def( &mut self, depth_image: &mut impl ToOutputArray, vert_image: &mut impl ToOutputArray, norm_image: &mut impl ToOutputArray, ) -> Result<()>

§Note

This alternative version of Dynafu_DynaFuTrait::render_surface function uses the following default values for its arguments:

  • warp: true

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§