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
sourceimpl 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
sourceimpl Boxed for WCloud
impl Boxed for WCloud
sourceimpl WCloudTrait for WCloud
impl WCloudTrait for WCloud
fn as_raw_mut_WCloud(&mut self) -> *mut c_void
sourceimpl WCloudTraitConst for WCloud
impl WCloudTraitConst for WCloud
fn as_raw_WCloud(&self) -> *const c_void
sourceimpl Widget3DTrait for WCloud
impl Widget3DTrait for WCloud
fn as_raw_mut_Widget3D(&mut self) -> *mut c_void
sourcefn 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
sourceimpl Widget3DTraitConst for WCloud
impl Widget3DTraitConst for WCloud
sourceimpl WidgetTrait for WCloud
impl WidgetTrait for WCloud
sourceimpl WidgetTraitConst for WCloud
impl WidgetTraitConst for WCloud
fn as_raw_Widget(&self) -> *const c_void
impl Send for WCloud
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more