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: &impl ToInputArray,
colors: &impl ToInputArray,
) -> Result<WCloud>
pub fn new( cloud: &impl ToInputArray, colors: &impl 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: &impl ToInputArray,
color: &impl ColorTraitConst,
) -> Result<WCloud>
pub fn new_1( cloud: &impl ToInputArray, color: &impl ColorTraitConst, ) -> Result<WCloud>
Sourcepub fn new_def(cloud: &impl ToInputArray) -> Result<WCloud>
pub fn new_def(cloud: &impl 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.
Points in the cloud belong to mask when they are set to (NaN, NaN, NaN).
§Note
This alternative version of [new] function uses the following default values for its arguments:
- color: Color::white()
Sourcepub fn new_2(
cloud: &impl ToInputArray,
colors: &impl ToInputArray,
normals: &impl ToInputArray,
) -> Result<WCloud>
pub fn new_2( cloud: &impl ToInputArray, colors: &impl ToInputArray, normals: &impl 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: &impl ToInputArray,
color: &impl ColorTraitConst,
normals: &impl ToInputArray,
) -> Result<WCloud>
pub fn new_3( cloud: &impl ToInputArray, color: &impl ColorTraitConst, normals: &impl 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§unsafe fn from_raw(ptr: <WCloud as OpenCVFromExtern>::ExternReceive) -> Self
unsafe fn from_raw(ptr: <WCloud as OpenCVFromExtern>::ExternReceive) -> Self
Wrap the specified raw pointer Read more
Source§fn into_raw(self) -> <WCloud as OpenCVTypeExternContainer>::ExternSendMut
fn into_raw(self) -> <WCloud as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying raw pointer while consuming this wrapper. Read more
Source§fn as_raw(&self) -> <WCloud as OpenCVTypeExternContainer>::ExternSend
fn as_raw(&self) -> <WCloud as OpenCVTypeExternContainer>::ExternSend
Return the underlying raw pointer. Read more
Source§fn as_raw_mut(&mut self) -> <WCloud as OpenCVTypeExternContainer>::ExternSendMut
fn as_raw_mut(&mut self) -> <WCloud as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying mutable raw pointer Read more
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 Freeze for WCloud
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
Source§impl<Mat> ModifyInplace for Matwhere
Mat: Boxed,
impl<Mat> ModifyInplace for Matwhere
Mat: Boxed,
Source§unsafe fn modify_inplace<Res>(
&mut self,
f: impl FnOnce(&Mat, &mut Mat) -> Res,
) -> Res
unsafe fn modify_inplace<Res>( &mut self, f: impl FnOnce(&Mat, &mut Mat) -> Res, ) -> Res
Helper function to call OpenCV functions that allow in-place modification of a
Mat
or another similar object. By passing
a mutable reference to the Mat
to this function your closure will get called with the read reference and a write references
to the same Mat
. This is unsafe in a general case as it leads to having non-exclusive mutable access to the internal data,
but it can be useful for some performance sensitive operations. One example of an OpenCV function that allows such in-place
modification is imgproc::threshold
. Read more