Struct opencv::viz::WCameraPosition
source · pub struct WCameraPosition { /* private fields */ }
Expand description
This 3D Widget represents camera position in a scene by its axes or viewing frustum. :
Implementations§
source§impl WCameraPosition
impl WCameraPosition
sourcepub fn new(scale: f64) -> Result<WCameraPosition>
pub fn new(scale: f64) -> Result<WCameraPosition>
sourcepub fn new_1(k: Matx33d, scale: f64, color: &Color) -> Result<WCameraPosition>
pub fn new_1(k: Matx33d, scale: f64, color: &Color) -> Result<WCameraPosition>
Display the viewing frustum
Parameters
- K: Intrinsic matrix of the camera.
- scale: Scale of the frustum.
- color: Color of the frustum.
Creates viewing frustum of the camera based on its intrinsic matrix K.
C++ default parameters
- scale: 1.0
- color: Color::white()
sourcepub fn new_2(fov: Vec2d, scale: f64, color: &Color) -> Result<WCameraPosition>
pub fn new_2(fov: Vec2d, scale: f64, color: &Color) -> Result<WCameraPosition>
Display the viewing frustum
Parameters
- fov: Field of view of the camera (horizontal, vertical).
- scale: Scale of the frustum.
- color: Color of the frustum.
Creates viewing frustum of the camera based on its field of view fov.
C++ default parameters
- scale: 1.0
- color: Color::white()
sourcepub fn new_3(
k: Matx33d,
image: &impl ToInputArray,
scale: f64,
color: &Color
) -> Result<WCameraPosition>
pub fn new_3( k: Matx33d, image: &impl ToInputArray, scale: f64, color: &Color ) -> Result<WCameraPosition>
Display image on the far plane of the viewing frustum
Parameters
- K: Intrinsic matrix of the camera.
- image: BGR or Gray-Scale image that is going to be displayed on the far plane of the frustum.
- scale: Scale of the frustum and image.
- color: Color of the frustum.
Creates viewing frustum of the camera based on its intrinsic matrix K, and displays image on the far end plane.
C++ default parameters
- scale: 1.0
- color: Color::white()
sourcepub fn new_4(
fov: Vec2d,
image: &impl ToInputArray,
scale: f64,
color: &Color
) -> Result<WCameraPosition>
pub fn new_4( fov: Vec2d, image: &impl ToInputArray, scale: f64, color: &Color ) -> Result<WCameraPosition>
Display image on the far plane of the viewing frustum
Parameters
- fov: Field of view of the camera (horizontal, vertical).
- image: BGR or Gray-Scale image that is going to be displayed on the far plane of the frustum.
- scale: Scale of the frustum and image.
- color: Color of the frustum.
Creates viewing frustum of the camera based on its intrinsic matrix K, and displays image on the far end plane.
C++ default parameters
- scale: 1.0
- color: Color::white()
Trait Implementations§
source§impl Boxed for WCameraPosition
impl Boxed for WCameraPosition
source§impl Drop for WCameraPosition
impl Drop for WCameraPosition
source§impl From<WCameraPosition> for Widget
impl From<WCameraPosition> for Widget
source§fn from(s: WCameraPosition) -> Self
fn from(s: WCameraPosition) -> Self
Converts to this type from the input type.
source§impl From<WCameraPosition> for Widget3D
impl From<WCameraPosition> for Widget3D
source§fn from(s: WCameraPosition) -> Self
fn from(s: WCameraPosition) -> Self
Converts to this type from the input type.
source§impl WCameraPositionTrait for WCameraPosition
impl WCameraPositionTrait for WCameraPosition
fn as_raw_mut_WCameraPosition(&mut self) -> *mut c_void
source§impl WCameraPositionTraitConst for WCameraPosition
impl WCameraPositionTraitConst for WCameraPosition
fn as_raw_WCameraPosition(&self) -> *const c_void
source§impl Widget3DTrait for WCameraPosition
impl Widget3DTrait for WCameraPosition
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 WCameraPosition
impl Widget3DTraitConst for WCameraPosition
source§impl WidgetTrait for WCameraPosition
impl WidgetTrait for WCameraPosition
source§impl WidgetTraitConst for WCameraPosition
impl WidgetTraitConst for WCameraPosition
impl Send for WCameraPosition
Auto Trait Implementations§
impl RefUnwindSafe for WCameraPosition
impl !Sync for WCameraPosition
impl Unpin for WCameraPosition
impl UnwindSafe for WCameraPosition
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