pub struct WCloud { /* private fields */ }
Expand description
This 3D Widget defines a point cloud. :
Note: In case there are four channels in the cloud, fourth channel is ignored.
Implementations§
source§impl WCloud
impl WCloud
sourcepub fn new(
cloud: &dyn ToInputArray,
colors: &dyn ToInputArray
) -> Result<WCloud>
pub fn new( cloud: &dyn ToInputArray, colors: &dyn ToInputArray ) -> Result<WCloud>
Constructs a WCloud.
Parameters
- cloud: Set of points 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.
Points in the cloud belong to mask when they are set to (NaN, NaN, NaN).
sourcepub fn new_1(cloud: &dyn ToInputArray, color: &Color) -> Result<WCloud>
pub fn new_1(cloud: &dyn ToInputArray, color: &Color) -> Result<WCloud>
Constructs a WCloud.
Parameters
- cloud: Set of points which can be of type: CV_32FC3, CV_32FC4, CV_64FC3, CV_64FC4.
- color: A single Color for the whole cloud.
Points in the cloud belong to mask when they are set to (NaN, NaN, NaN).
C++ default parameters
- color: Color::white()
sourcepub fn new_2(
cloud: &dyn ToInputArray,
colors: &dyn ToInputArray,
normals: &dyn ToInputArray
) -> Result<WCloud>
pub fn new_2( cloud: &dyn ToInputArray, colors: &dyn ToInputArray, normals: &dyn ToInputArray ) -> Result<WCloud>
Constructs a WCloud.
Parameters
- cloud: Set of points 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.
- normals: Normals for each point in cloud. Size and type should match with the cloud parameter.
Points in the cloud belong to mask when they are set to (NaN, NaN, NaN).
sourcepub fn new_3(
cloud: &dyn ToInputArray,
color: &Color,
normals: &dyn ToInputArray
) -> Result<WCloud>
pub fn new_3( cloud: &dyn ToInputArray, color: &Color, normals: &dyn ToInputArray ) -> Result<WCloud>
Constructs a WCloud.
Parameters
- cloud: Set of points which can be of type: CV_32FC3, CV_32FC4, CV_64FC3, CV_64FC4.
- color: A single Color for the whole cloud.
- normals: Normals for each point in cloud.
Size and type should match with the cloud parameter. Points in the cloud belong to mask when they are set to (NaN, NaN, NaN).
Trait Implementations§
source§impl Boxed for WCloud
impl Boxed for WCloud
source§impl WCloudTrait for WCloud
impl WCloudTrait for WCloud
fn as_raw_mut_WCloud(&mut self) -> *mut c_void
source§impl WCloudTraitConst for WCloud
impl WCloudTraitConst for WCloud
fn as_raw_WCloud(&self) -> *const c_void
source§impl Widget3DTrait for WCloud
impl Widget3DTrait for WCloud
fn as_raw_mut_Widget3D(&mut self) -> *mut c_void
source§fn update_pose(&mut self, pose: Affine3d) -> Result<()>
fn update_pose(&mut self, pose: Affine3d) -> Result<()>
Updates pose of the widget by pre-multiplying its current pose. Read more
source§impl Widget3DTraitConst for WCloud
impl Widget3DTraitConst for WCloud
source§impl WidgetTrait for WCloud
impl WidgetTrait for WCloud
source§impl WidgetTraitConst for WCloud
impl WidgetTraitConst for WCloud
impl Send for WCloud
Auto Trait Implementations§
impl RefUnwindSafe for WCloud
impl !Sync for WCloud
impl Unpin for WCloud
impl UnwindSafe for WCloud
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more