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

    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<()> { ... } }

Required Methods

Provided Methods

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

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

Finalizes cloud data by repacking to single cloud.

Useful for large cloud collections to reduce memory usage

Implementors