[][src]Struct opencv::core::UMat

pub struct UMat { /* fields omitted */ }

@todo document

Implementations

impl UMat[src]

pub fn as_raw_UMat(&self) -> *const c_void[src]

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

impl UMat[src]

pub fn new(usage_flags: UMatUsageFlags) -> Result<UMat>[src]

default constructor

C++ default parameters

  • usage_flags: USAGE_DEFAULT

pub unsafe fn new_rows_cols(
    rows: i32,
    cols: i32,
    typ: i32,
    usage_flags: UMatUsageFlags
) -> Result<UMat>
[src]

constructs 2D matrix of the specified size and type

C++ default parameters

  • usage_flags: USAGE_DEFAULT

pub unsafe fn new_size(
    size: Size,
    typ: i32,
    usage_flags: UMatUsageFlags
) -> Result<UMat>
[src]

C++ default parameters

  • usage_flags: USAGE_DEFAULT

pub fn new_rows_cols_with_default(
    rows: i32,
    cols: i32,
    typ: i32,
    s: Scalar,
    usage_flags: UMatUsageFlags
) -> Result<UMat>
[src]

constructs 2D matrix and fills it with the specified value _s.

C++ default parameters

  • usage_flags: USAGE_DEFAULT

pub fn new_size_with_default(
    size: Size,
    typ: i32,
    s: Scalar,
    usage_flags: UMatUsageFlags
) -> Result<UMat>
[src]

C++ default parameters

  • usage_flags: USAGE_DEFAULT

pub unsafe fn new_nd(
    sizes: &[i32],
    typ: i32,
    usage_flags: UMatUsageFlags
) -> Result<UMat>
[src]

constructs n-dimensional matrix

C++ default parameters

  • usage_flags: USAGE_DEFAULT

pub fn new_nd_with_default(
    sizes: &[i32],
    typ: i32,
    s: Scalar,
    usage_flags: UMatUsageFlags
) -> Result<UMat>
[src]

C++ default parameters

  • usage_flags: USAGE_DEFAULT

pub fn copy(m: &UMat) -> Result<UMat>[src]

copy constructor

pub fn rowscols(m: &UMat, row_range: &Range, col_range: &Range) -> Result<UMat>[src]

creates a matrix header for a part of the bigger matrix

C++ default parameters

  • col_range: Range::all()

pub fn roi(m: &UMat, roi: Rect) -> Result<UMat>[src]

pub fn ranges(m: &UMat, ranges: &Vector<Range>) -> Result<UMat>[src]

pub fn diag(d: &UMat) -> Result<UMat>[src]

constructs a square diagonal matrix which main diagonal is vector "d"

pub fn zeros(rows: i32, cols: i32, typ: i32) -> Result<UMat>[src]

Matlab-style matrix initialization

pub fn zeros_1(size: Size, typ: i32) -> Result<UMat>[src]

pub fn zeros_2(ndims: i32, sz: &i32, typ: i32) -> Result<UMat>[src]

pub fn ones(rows: i32, cols: i32, typ: i32) -> Result<UMat>[src]

pub fn ones_1(size: Size, typ: i32) -> Result<UMat>[src]

pub fn ones_2(ndims: i32, sz: &i32, typ: i32) -> Result<UMat>[src]

pub fn eye(rows: i32, cols: i32, typ: i32) -> Result<UMat>[src]

pub fn eye_1(size: Size, typ: i32) -> Result<UMat>[src]

pub fn copy_mut(m: &mut UMat) -> Result<UMat>[src]

Trait Implementations

impl Boxed for UMat[src]

impl Clone for UMat[src]

pub fn clone(&self) -> Self[src]

Calls try_clone() and panics if that fails

impl Drop for UMat[src]

impl Send for UMat[src]

impl ToInputArray for UMat[src]

impl<'_> ToInputArray for &'_ UMat[src]

impl ToInputOutputArray for UMat[src]

impl<'_> ToInputOutputArray for &'_ mut UMat[src]

impl ToOutputArray for UMat[src]

impl<'_> ToOutputArray for &'_ mut UMat[src]

impl UMatTrait for UMat[src]

impl VectorElement for UMat where
    Vector<UMat>: VectorExtern<UMat>, 
[src]

Auto Trait Implementations

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.