[][src]Trait opencv::viz::WCloudCollectionTrait

pub trait WCloudCollectionTrait: Widget3DTrait {
    pub fn as_raw_WCloudCollection(&self) -> *const c_void;
pub fn as_raw_mut_WCloudCollection(&mut self) -> *mut c_void; pub fn add_cloud(
        &mut self,
        cloud: &dyn ToInputArray,
        colors: &dyn ToInputArray,
        pose: Affine3d
    ) -> Result<()> { ... }
pub fn add_cloud_1(
        &mut self,
        cloud: &dyn ToInputArray,
        color: &Color,
        pose: Affine3d
    ) -> Result<()> { ... }
pub fn finalize(&mut self) -> Result<()> { ... } }

This 3D Widget defines a collection of clouds. :

Note: In case there are four channels in the cloud, fourth channel is ignored.

Required methods

Loading content...

Provided methods

pub fn add_cloud(
    &mut self,
    cloud: &dyn ToInputArray,
    colors: &dyn ToInputArray,
    pose: Affine3d
) -> Result<()>
[src]

Adds a cloud to the collection.

Parameters

  • cloud: Point set which can be of type: CV_32FC3, CV_32FC4, CV_64FC3, CV_64FC4.
  • colors: Set of colors. It has to be of the same size with cloud.
  • pose: Pose of the cloud. Points in the cloud belong to mask when they are set to (NaN, NaN, NaN).

C++ default parameters

  • pose: Affine3d::Identity()

pub fn add_cloud_1(
    &mut self,
    cloud: &dyn ToInputArray,
    color: &Color,
    pose: Affine3d
) -> Result<()>
[src]

Adds a cloud to the collection.

Parameters

  • cloud: Point set which can be of type: CV_32FC3, CV_32FC4, CV_64FC3, CV_64FC4.
  • color: A single Color for the whole cloud.
  • pose: Pose of the cloud. Points in the cloud belong to mask when they are set to (NaN, NaN, NaN).

C++ default parameters

  • color: Color::white()
  • pose: Affine3d::Identity()

pub fn finalize(&mut self) -> Result<()>[src]

Finalizes cloud data by repacking to single cloud.

Useful for large cloud collections to reduce memory usage

Loading content...

Implementors

impl WCloudCollectionTrait for WCloudCollection[src]

Loading content...