Trait opencv::core::UMatTrait[][src]

pub trait UMatTrait: UMatTraitConst {
Show 19 methods fn as_raw_mut_UMat(&mut self) -> *mut c_void; fn set_flags(&mut self, val: i32) { ... }
fn set_dims(&mut self, val: i32) { ... }
fn set_rows(&mut self, val: i32) { ... }
fn set_cols(&mut self, val: i32) { ... }
fn set_usage_flags(&mut self, val: UMatUsageFlags) { ... }
fn u(&mut self) -> UMatData { ... }
fn set_u(&mut self, val: &mut UMatData) { ... }
fn set_offset(&mut self, val: size_t) { ... }
fn set_to(
        &mut self,
        value: &dyn ToInputArray,
        mask: &dyn ToInputArray
    ) -> Result<UMat> { ... }
unsafe fn create_rows_cols(
        &mut self,
        rows: i32,
        cols: i32,
        typ: i32,
        usage_flags: UMatUsageFlags
    ) -> Result<()> { ... }
unsafe fn create_size(
        &mut self,
        size: Size,
        typ: i32,
        usage_flags: UMatUsageFlags
    ) -> Result<()> { ... }
unsafe fn create_nd(
        &mut self,
        sizes: &[i32],
        typ: i32,
        usage_flags: UMatUsageFlags
    ) -> Result<()> { ... }
unsafe fn create_nd_vec(
        &mut self,
        sizes: &Vector<i32>,
        typ: i32,
        usage_flags: UMatUsageFlags
    ) -> Result<()> { ... }
fn addref(&mut self) -> Result<()> { ... }
fn release(&mut self) -> Result<()> { ... }
fn deallocate(&mut self) -> Result<()> { ... }
fn adjust_roi(
        &mut self,
        dtop: i32,
        dbottom: i32,
        dleft: i32,
        dright: i32
    ) -> Result<UMat> { ... }
fn update_continuity_flag(&mut self) -> Result<()> { ... }
}

Required methods

Provided methods

! includes several bit-fields:

  • the magic signature
  • continuity flag
  • depth
  • number of channels

the matrix dimensionality, >= 2

number of rows in the matrix; -1 when the matrix has more than 2 dimensions

number of columns in the matrix; -1 when the matrix has more than 2 dimensions

usage flags for allocator; recommend do not set directly, instead set during construct/create/getUMat

black-box container of UMat data

black-box container of UMat data

offset of the submatrix (or 0)

sets some of the matrix elements to s, according to the mask

C++ default parameters
  • mask: noArray()

allocates new matrix data unless the matrix already has specified size and type.

C++ default parameters
  • usage_flags: USAGE_DEFAULT
C++ default parameters
  • usage_flags: USAGE_DEFAULT
C++ default parameters
  • usage_flags: USAGE_DEFAULT
C++ default parameters
  • usage_flags: USAGE_DEFAULT

increases the reference counter; use with care to avoid memleaks

decreases reference counter;

deallocates the matrix data

moves/resizes the current matrix ROI inside the parent matrix.

internal use method: updates the continuity flag

Implementors