Struct cv::core::Rect2f[][src]

pub struct Rect2f {
    pub x: f32,
    pub y: f32,
    pub width: f32,
    pub height: f32,
}

The Rect2f are rectangles in float.

Fields

x: f32

x coordinate of the left-top corner

y: f32

y coordinate of the left-top corner

width: f32

width of this rectangle

height: f32

height of this rectangle

Implementations

impl Rect2f[src]

pub fn normalize_to_mat(&self, mat: &Mat) -> Rect[src]

Normalize the rectangle according to the image. This will restore the Rect in absolute pixel numbers.

Trait Implementations

impl Clone for Rect2f[src]

impl Copy for Rect2f[src]

impl Debug for Rect2f[src]

impl Default for Rect2f[src]

Auto Trait Implementations

impl RefUnwindSafe for Rect2f

impl Send for Rect2f

impl Sync for Rect2f

impl Unpin for Rect2f

impl UnwindSafe for Rect2f

Blanket Implementations

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

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

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

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.