[−][src]Struct opencv::viz::WCameraPosition
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]
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.
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]
fov: Vec2d,
image: &dyn 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
impl Widget for WCameraPosition
[src]
fn as_raw_Widget(&self) -> *mut c_void
[src]
fn set_rendering_property(&mut self, property: i32, value: f64) -> Result<()>
[src]
fn get_rendering_property(&self, property: i32) -> Result<f64>
[src]
impl Widget3D for WCameraPosition
[src]
fn as_raw_Widget3D(&self) -> *mut c_void
[src]
fn set_color(&mut self, color: &Color) -> Result<()>
[src]
impl Drop for WCameraPosition
[src]
impl Send for WCameraPosition
[src]
Auto Trait Implementations
impl Unpin for WCameraPosition
impl !Sync for WCameraPosition
impl UnwindSafe for WCameraPosition
impl RefUnwindSafe for WCameraPosition
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,