pub trait WCloudCollectionTrait: WCloudCollectionTraitConst + Widget3DTrait {
    // Required method
    fn as_raw_mut_WCloudCollection(&mut self) -> *mut c_void;

    // Provided methods
    fn add_cloud(
        &mut self,
        cloud: &dyn ToInputArray,
        colors: &dyn ToInputArray,
        pose: Affine3d
    ) -> Result<()> { ... }
    fn add_cloud_1(
        &mut self,
        cloud: &dyn ToInputArray,
        color: &Color,
        pose: Affine3d
    ) -> Result<()> { ... }
    fn finalize(&mut self) -> Result<()> { ... }
}
Expand description

Mutable methods for crate::viz::WCloudCollection

Required Methods§

Provided Methods§

source

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

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()
source

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

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()
source

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

Finalizes cloud data by repacking to single cloud.

Useful for large cloud collections to reduce memory usage

Implementors§