[][src]Struct opencv::viz::WCameraPosition

pub struct WCameraPosition { /* fields omitted */ }

This 3D Widget represents camera position in a scene by its axes or viewing frustum. :

Methods

impl WCameraPosition[src]

pub fn as_raw_WCameraPosition(&self) -> *mut c_void[src]

pub unsafe fn from_raw_ptr(ptr: *mut c_void) -> Self[src]

impl WCameraPosition[src]

pub fn new(scale: f64) -> Result<WCameraPosition>[src]

Creates camera coordinate frame at the origin.

Camera coordinate frame

C++ default parameters

  • scale: 1.0

pub fn new_1(fov: Vec2d, scale: f64, color: &Color) -> Result<WCameraPosition>[src]

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.

Camera viewing frustum

C++ default parameters

  • scale: 1.0
  • color: Color::white()

pub fn new_2(
    fov: Vec2d,
    image: &dyn ToInputArray,
    scale: f64,
    color: &Color
) -> Result<WCameraPosition>
[src]

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.

Camera viewing frustum with image

C++ default parameters

  • scale: 1.0
  • color: Color::white()

Trait Implementations

impl Widget for WCameraPosition[src]

impl Widget3D for WCameraPosition[src]

impl Drop for WCameraPosition[src]

impl Send for WCameraPosition[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]