pub trait ColoredKinfu_ColoredKinFuConst {
    // Required method
    fn as_raw_ColoredKinfu_ColoredKinFu(&self) -> *const c_void;

    // Provided methods
    fn get_params(&self) -> Result<ColoredKinfu_Params> { ... }
    fn render(&self, image: &mut dyn ToOutputArray) -> Result<()> { ... }
    fn render_1(
        &self,
        image: &mut dyn ToOutputArray,
        camera_pose: Matx44f
    ) -> Result<()> { ... }
    fn get_cloud(
        &self,
        points: &mut dyn ToOutputArray,
        normals: &mut dyn ToOutputArray,
        colors: &mut dyn ToOutputArray
    ) -> Result<()> { ... }
    fn get_points(&self, points: &mut dyn ToOutputArray) -> Result<()> { ... }
    fn get_normals(
        &self,
        points: &dyn ToInputArray,
        normals: &mut dyn ToOutputArray
    ) -> Result<()> { ... }
    fn get_pose(&self) -> Result<Affine3f> { ... }
}
Expand description

Required Methods§

Provided Methods§

source

fn get_params(&self) -> Result<ColoredKinfu_Params>

Get current parameters

source

fn render(&self, image: &mut dyn ToOutputArray) -> Result<()>

Renders a volume into an image

Renders a 0-surface of TSDF using Phong shading into a CV_8UC4 Mat. Light pose is fixed in KinFu params.

Parameters
  • image: resulting image
source

fn render_1( &self, image: &mut dyn ToOutputArray, camera_pose: Matx44f ) -> Result<()>

Renders a volume into an image

Renders a 0-surface of TSDF using Phong shading into a CV_8UC4 Mat. Light pose is fixed in KinFu params.

Parameters
  • image: resulting image
  • cameraPose: pose of camera to render from. If empty then render from current pose which is a last frame camera pose.
source

fn get_cloud( &self, points: &mut dyn ToOutputArray, normals: &mut dyn ToOutputArray, colors: &mut dyn ToOutputArray ) -> Result<()>

Gets points, normals and colors of current 3d mesh

The order of normals corresponds to order of points. The order of points is undefined.

Parameters
  • points: vector of points which are 4-float vectors
  • normals: vector of normals which are 4-float vectors
  • colors: vector of colors which are 4-float vectors
C++ default parameters
  • colors: noArray()
source

fn get_points(&self, points: &mut dyn ToOutputArray) -> Result<()>

Gets points of current 3d mesh

The order of points is undefined.

Parameters
  • points: vector of points which are 4-float vectors
source

fn get_normals( &self, points: &dyn ToInputArray, normals: &mut dyn ToOutputArray ) -> Result<()>

Calculates normals for given points

Parameters
  • points: input vector of points which are 4-float vectors
  • normals: output vector of corresponding normals which are 4-float vectors
source

fn get_pose(&self) -> Result<Affine3f>

Get current pose in voxel space

Implementors§