pub struct WCloudNormals { /* private fields */ }
Expand description
This 3D Widget represents normals of a point cloud. :
Implementations§
Source§impl WCloudNormals
impl WCloudNormals
Sourcepub fn new(
cloud: &impl ToInputArray,
normals: &impl ToInputArray,
level: i32,
scale: f64,
color: &impl ColorTraitConst,
) -> Result<WCloudNormals>
pub fn new( cloud: &impl ToInputArray, normals: &impl ToInputArray, level: i32, scale: f64, color: &impl ColorTraitConst, ) -> Result<WCloudNormals>
Constructs a WCloudNormals.
§Parameters
- cloud: Point set which can be of type: CV_32FC3, CV_32FC4, CV_64FC3, CV_64FC4.
- normals: A set of normals that has to be of same type with cloud.
- level: Display only every level th normal.
- scale: Scale of the arrows that represent normals.
- color: Color of the arrows that represent normals.
Note: In case there are four channels in the cloud, fourth channel is ignored.
§C++ default parameters
- level: 64
- scale: 0.1
- color: Color::white()
Sourcepub fn new_def(
cloud: &impl ToInputArray,
normals: &impl ToInputArray,
) -> Result<WCloudNormals>
pub fn new_def( cloud: &impl ToInputArray, normals: &impl ToInputArray, ) -> Result<WCloudNormals>
Constructs a WCloudNormals.
§Parameters
- cloud: Point set which can be of type: CV_32FC3, CV_32FC4, CV_64FC3, CV_64FC4.
- normals: A set of normals that has to be of same type with cloud.
- level: Display only every level th normal.
- scale: Scale of the arrows that represent normals.
- color: Color of the arrows that represent normals.
Note: In case there are four channels in the cloud, fourth channel is ignored.
§Note
This alternative version of [new] function uses the following default values for its arguments:
- level: 64
- scale: 0.1
- color: Color::white()
Trait Implementations§
Source§impl Boxed for WCloudNormals
impl Boxed for WCloudNormals
Source§unsafe fn from_raw(
ptr: <WCloudNormals as OpenCVFromExtern>::ExternReceive,
) -> Self
unsafe fn from_raw( ptr: <WCloudNormals as OpenCVFromExtern>::ExternReceive, ) -> Self
Wrap the specified raw pointer Read more
Source§fn into_raw(self) -> <WCloudNormals as OpenCVTypeExternContainer>::ExternSendMut
fn into_raw(self) -> <WCloudNormals as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying raw pointer while consuming this wrapper. Read more
Source§fn as_raw(&self) -> <WCloudNormals as OpenCVTypeExternContainer>::ExternSend
fn as_raw(&self) -> <WCloudNormals as OpenCVTypeExternContainer>::ExternSend
Return the underlying raw pointer. Read more
Source§fn as_raw_mut(
&mut self,
) -> <WCloudNormals as OpenCVTypeExternContainer>::ExternSendMut
fn as_raw_mut( &mut self, ) -> <WCloudNormals as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying mutable raw pointer Read more
Source§impl Debug for WCloudNormals
impl Debug for WCloudNormals
Source§impl Drop for WCloudNormals
impl Drop for WCloudNormals
Source§impl From<WCloudNormals> for Widget
impl From<WCloudNormals> for Widget
Source§fn from(s: WCloudNormals) -> Self
fn from(s: WCloudNormals) -> Self
Converts to this type from the input type.
Source§impl From<WCloudNormals> for Widget3D
impl From<WCloudNormals> for Widget3D
Source§fn from(s: WCloudNormals) -> Self
fn from(s: WCloudNormals) -> Self
Converts to this type from the input type.
Source§impl WCloudNormalsTrait for WCloudNormals
impl WCloudNormalsTrait for WCloudNormals
fn as_raw_mut_WCloudNormals(&mut self) -> *mut c_void
Source§impl WCloudNormalsTraitConst for WCloudNormals
impl WCloudNormalsTraitConst for WCloudNormals
fn as_raw_WCloudNormals(&self) -> *const c_void
Source§impl Widget3DTrait for WCloudNormals
impl Widget3DTrait for WCloudNormals
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 WCloudNormals
impl Widget3DTraitConst for WCloudNormals
Source§impl WidgetTrait for WCloudNormals
impl WidgetTrait for WCloudNormals
Source§impl WidgetTraitConst for WCloudNormals
impl WidgetTraitConst for WCloudNormals
impl Send for WCloudNormals
Auto Trait Implementations§
impl Freeze for WCloudNormals
impl RefUnwindSafe for WCloudNormals
impl !Sync for WCloudNormals
impl Unpin for WCloudNormals
impl UnwindSafe for WCloudNormals
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