pub struct WTrajectoryFrustums { /* private fields */ }
Expand description
This 3D Widget represents a trajectory. :
Implementations§
Source§impl WTrajectoryFrustums
impl WTrajectoryFrustums
Sourcepub fn new(
path: &impl ToInputArray,
k: Matx33d,
scale: f64,
color: &impl ColorTraitConst,
) -> Result<WTrajectoryFrustums>
pub fn new( path: &impl ToInputArray, k: Matx33d, scale: f64, color: &impl ColorTraitConst, ) -> Result<WTrajectoryFrustums>
Constructs a WTrajectoryFrustums.
§Parameters
- path: List of poses on a trajectory. Takes std::vector<Affine<T>> with T == [float | double]
- K: Intrinsic matrix of the camera.
- scale: Scale of the frustums.
- color: Color of the frustums.
Displays frustums at each pose of the trajectory.
§C++ default parameters
- scale: 1.
- color: Color::white()
Sourcepub fn new_def(
path: &impl ToInputArray,
k: Matx33d,
) -> Result<WTrajectoryFrustums>
pub fn new_def( path: &impl ToInputArray, k: Matx33d, ) -> Result<WTrajectoryFrustums>
Constructs a WTrajectoryFrustums.
§Parameters
- path: List of poses on a trajectory. Takes std::vector<Affine<T>> with T == [float | double]
- K: Intrinsic matrix of the camera.
- scale: Scale of the frustums.
- color: Color of the frustums.
Displays frustums at each pose of the trajectory.
§Note
This alternative version of [new] function uses the following default values for its arguments:
- scale: 1.
- color: Color::white()
Sourcepub fn new_1(
path: &impl ToInputArray,
fov: Vec2d,
scale: f64,
color: &impl ColorTraitConst,
) -> Result<WTrajectoryFrustums>
pub fn new_1( path: &impl ToInputArray, fov: Vec2d, scale: f64, color: &impl ColorTraitConst, ) -> Result<WTrajectoryFrustums>
Constructs a WTrajectoryFrustums.
§Parameters
- path: List of poses on a trajectory. Takes std::vector<Affine<T>> with T == [float | double]
- fov: Field of view of the camera (horizontal, vertical).
- scale: Scale of the frustums.
- color: Color of the frustums.
Displays frustums at each pose of the trajectory.
§C++ default parameters
- scale: 1.
- color: Color::white()
Sourcepub fn new_def_1(
path: &impl ToInputArray,
fov: Vec2d,
) -> Result<WTrajectoryFrustums>
pub fn new_def_1( path: &impl ToInputArray, fov: Vec2d, ) -> Result<WTrajectoryFrustums>
Constructs a WTrajectoryFrustums.
§Parameters
- path: List of poses on a trajectory. Takes std::vector<Affine<T>> with T == [float | double]
- fov: Field of view of the camera (horizontal, vertical).
- scale: Scale of the frustums.
- color: Color of the frustums.
Displays frustums at each pose of the trajectory.
§Note
This alternative version of [new] function uses the following default values for its arguments:
- scale: 1.
- color: Color::white()
Trait Implementations§
Source§impl Boxed for WTrajectoryFrustums
impl Boxed for WTrajectoryFrustums
Source§unsafe fn from_raw(
ptr: <WTrajectoryFrustums as OpenCVFromExtern>::ExternReceive,
) -> Self
unsafe fn from_raw( ptr: <WTrajectoryFrustums as OpenCVFromExtern>::ExternReceive, ) -> Self
Wrap the specified raw pointer Read more
Source§fn into_raw(
self,
) -> <WTrajectoryFrustums as OpenCVTypeExternContainer>::ExternSendMut
fn into_raw( self, ) -> <WTrajectoryFrustums as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying raw pointer while consuming this wrapper. Read more
Source§fn as_raw(
&self,
) -> <WTrajectoryFrustums as OpenCVTypeExternContainer>::ExternSend
fn as_raw( &self, ) -> <WTrajectoryFrustums as OpenCVTypeExternContainer>::ExternSend
Return the underlying raw pointer. Read more
Source§fn as_raw_mut(
&mut self,
) -> <WTrajectoryFrustums as OpenCVTypeExternContainer>::ExternSendMut
fn as_raw_mut( &mut self, ) -> <WTrajectoryFrustums as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying mutable raw pointer Read more
Source§impl Debug for WTrajectoryFrustums
impl Debug for WTrajectoryFrustums
Source§impl Drop for WTrajectoryFrustums
impl Drop for WTrajectoryFrustums
Source§impl From<WTrajectoryFrustums> for Widget
impl From<WTrajectoryFrustums> for Widget
Source§fn from(s: WTrajectoryFrustums) -> Self
fn from(s: WTrajectoryFrustums) -> Self
Converts to this type from the input type.
Source§impl From<WTrajectoryFrustums> for Widget3D
impl From<WTrajectoryFrustums> for Widget3D
Source§fn from(s: WTrajectoryFrustums) -> Self
fn from(s: WTrajectoryFrustums) -> Self
Converts to this type from the input type.
Source§impl WTrajectoryFrustumsTrait for WTrajectoryFrustums
impl WTrajectoryFrustumsTrait for WTrajectoryFrustums
fn as_raw_mut_WTrajectoryFrustums(&mut self) -> *mut c_void
Source§impl WTrajectoryFrustumsTraitConst for WTrajectoryFrustums
impl WTrajectoryFrustumsTraitConst for WTrajectoryFrustums
fn as_raw_WTrajectoryFrustums(&self) -> *const c_void
Source§impl Widget3DTrait for WTrajectoryFrustums
impl Widget3DTrait for WTrajectoryFrustums
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 WidgetTrait for WTrajectoryFrustums
impl WidgetTrait for WTrajectoryFrustums
impl Send for WTrajectoryFrustums
Auto Trait Implementations§
impl Freeze for WTrajectoryFrustums
impl RefUnwindSafe for WTrajectoryFrustums
impl !Sync for WTrajectoryFrustums
impl Unpin for WTrajectoryFrustums
impl UnwindSafe for WTrajectoryFrustums
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