Trait opencv::core::UMatTrait

source ·
pub trait UMatTrait: UMatTraitConst {
Show 24 methods // Required method fn as_raw_mut_UMat(&mut self) -> *mut c_void; // Provided methods 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: &impl ToInputArray, mask: &impl ToInputArray ) -> Result<UMat> { ... } fn set_to_def(&mut self, value: &impl ToInputArray) -> Result<UMat> { ... } unsafe fn create_rows_cols( &mut self, rows: i32, cols: i32, typ: i32, usage_flags: UMatUsageFlags ) -> Result<()> { ... } fn create_rows_cols_def( &mut self, rows: i32, cols: i32, typ: i32 ) -> Result<()> { ... } unsafe fn create_size( &mut self, size: Size, typ: i32, usage_flags: UMatUsageFlags ) -> Result<()> { ... } fn create_size_def(&mut self, size: Size, typ: i32) -> Result<()> { ... } unsafe fn create_nd( &mut self, sizes: &[i32], typ: i32, usage_flags: UMatUsageFlags ) -> Result<()> { ... } fn create_nd_def(&mut self, sizes: &[i32], typ: i32) -> Result<()> { ... } unsafe fn create_nd_vec( &mut self, sizes: &Vector<i32>, typ: i32, usage_flags: UMatUsageFlags ) -> Result<()> { ... } fn create_nd_vec_def(&mut self, sizes: &Vector<i32>, typ: i32) -> 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<()> { ... }
}
Expand description

Mutable methods for core::UMat

Required Methods§

Provided Methods§

source

fn set_flags(&mut self, val: i32)

! includes several bit-fields:

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

fn set_dims(&mut self, val: i32)

the matrix dimensionality, >= 2

source

fn set_rows(&mut self, val: i32)

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

source

fn set_cols(&mut self, val: i32)

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

source

fn set_usage_flags(&mut self, val: UMatUsageFlags)

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

source

fn u(&mut self) -> UMatData

black-box container of UMat data

source

fn set_u(&mut self, val: &mut UMatData)

black-box container of UMat data

source

fn set_offset(&mut self, val: size_t)

offset of the submatrix (or 0)

source

fn set_to( &mut self, value: &impl ToInputArray, mask: &impl ToInputArray ) -> Result<UMat>

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

C++ default parameters
  • mask: noArray()
source

fn set_to_def(&mut self, value: &impl ToInputArray) -> Result<UMat>

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

Note

This alternative version of [set_to] function uses the following default values for its arguments:

  • mask: noArray()
source

unsafe fn create_rows_cols( &mut self, rows: i32, cols: i32, typ: i32, usage_flags: UMatUsageFlags ) -> Result<()>

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

C++ default parameters
  • usage_flags: USAGE_DEFAULT
source

fn create_rows_cols_def(&mut self, rows: i32, cols: i32, typ: i32) -> Result<()>

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

Note

This alternative version of [create_rows_cols] function uses the following default values for its arguments:

  • usage_flags: USAGE_DEFAULT
source

unsafe fn create_size( &mut self, size: Size, typ: i32, usage_flags: UMatUsageFlags ) -> Result<()>

C++ default parameters
  • usage_flags: USAGE_DEFAULT
source

fn create_size_def(&mut self, size: Size, typ: i32) -> Result<()>

Note

This alternative version of [create_size] function uses the following default values for its arguments:

  • usage_flags: USAGE_DEFAULT
source

unsafe fn create_nd( &mut self, sizes: &[i32], typ: i32, usage_flags: UMatUsageFlags ) -> Result<()>

C++ default parameters
  • usage_flags: USAGE_DEFAULT
source

fn create_nd_def(&mut self, sizes: &[i32], typ: i32) -> Result<()>

Note

This alternative version of [create_nd] function uses the following default values for its arguments:

  • usage_flags: USAGE_DEFAULT
source

unsafe fn create_nd_vec( &mut self, sizes: &Vector<i32>, typ: i32, usage_flags: UMatUsageFlags ) -> Result<()>

C++ default parameters
  • usage_flags: USAGE_DEFAULT
source

fn create_nd_vec_def(&mut self, sizes: &Vector<i32>, typ: i32) -> Result<()>

Note

This alternative version of [create_nd_vec] function uses the following default values for its arguments:

  • usage_flags: USAGE_DEFAULT
source

fn addref(&mut self) -> Result<()>

increases the reference counter; use with care to avoid memleaks

source

fn release(&mut self) -> Result<()>

decreases reference counter;

source

fn deallocate(&mut self) -> Result<()>

deallocates the matrix data

source

fn adjust_roi( &mut self, dtop: i32, dbottom: i32, dleft: i32, dright: i32 ) -> Result<UMat>

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

source

fn update_continuity_flag(&mut self) -> Result<()>

internal use method: updates the continuity flag

Object Safety§

This trait is not object safe.

Implementors§