Struct opencv::core::UMat [−][src]
pub struct UMat { /* fields omitted */ }Expand description
@todo document
Implementations
pub unsafe fn new_rows_cols(
rows: i32,
cols: i32,
typ: i32,
usage_flags: UMatUsageFlags
) -> Result<UMat>
pub unsafe fn new_rows_cols(
rows: i32,
cols: i32,
typ: i32,
usage_flags: UMatUsageFlags
) -> Result<UMat>
constructs 2D matrix of the specified size and type
C++ default parameters
- usage_flags: USAGE_DEFAULT
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>
pub fn new_rows_cols_with_default(
rows: i32,
cols: i32,
typ: i32,
s: Scalar,
usage_flags: UMatUsageFlags
) -> Result<UMat>
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>
pub fn new_size_with_default(
size: Size,
typ: i32,
s: Scalar,
usage_flags: UMatUsageFlags
) -> Result<UMat>
C++ default parameters
- usage_flags: USAGE_DEFAULT
pub fn new_nd_with_default(
sizes: &[i32],
typ: i32,
s: Scalar,
usage_flags: UMatUsageFlags
) -> Result<UMat>
pub fn new_nd_with_default(
sizes: &[i32],
typ: i32,
s: Scalar,
usage_flags: UMatUsageFlags
) -> Result<UMat>
C++ default parameters
- usage_flags: USAGE_DEFAULT
creates a matrix header for a part of the bigger matrix
C++ default parameters
- col_range: Range::all()
constructs a square diagonal matrix which main diagonal is vector “d”
Matlab-style matrix initialization
Trait Implementations
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
offset of the submatrix (or 0)
sets some of the matrix elements to s, according to the mask Read more
unsafe fn create_rows_cols(
&mut self,
rows: i32,
cols: i32,
typ: i32,
usage_flags: UMatUsageFlags
) -> Result<()>
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. Read more
unsafe fn create_size(
&mut self,
size: Size,
typ: i32,
usage_flags: UMatUsageFlags
) -> Result<()>
unsafe fn create_size(
&mut self,
size: Size,
typ: i32,
usage_flags: UMatUsageFlags
) -> Result<()>
C++ default parameters Read more
C++ default parameters Read more
unsafe fn create_nd_vec(
&mut self,
sizes: &Vector<i32>,
typ: i32,
usage_flags: UMatUsageFlags
) -> Result<()>
unsafe fn create_nd_vec(
&mut self,
sizes: &Vector<i32>,
typ: i32,
usage_flags: UMatUsageFlags
) -> Result<()>
C++ default parameters Read more
increases the reference counter; use with care to avoid memleaks
deallocates the matrix data
moves/resizes the current matrix ROI inside the parent matrix.
internal use method: updates the continuity flag
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
… for the specified column span
… for the specified diagonal (d=0 - the main diagonal, >0 - a diagonal from the upper half, <0 - a diagonal from the lower half) Read more
copies the matrix content to “m”.
copies those matrix elements to “m” that are marked with non-zero mask elements.
fn convert_to(
&self,
m: &mut dyn ToOutputArray,
rtype: i32,
alpha: f64,
beta: f64
) -> Result<()>
fn convert_to(
&self,
m: &mut dyn ToOutputArray,
rtype: i32,
alpha: f64,
beta: f64
) -> Result<()>
converts matrix to another datatype with optional scaling. See cvConvertScale. Read more
creates alternative matrix header for the same data, with different Read more
matrix inversion by means of matrix expressions Read more
per-element matrix multiplication by means of matrix expressions Read more
computes dot-product
locates matrix header within a parent matrix. See below
returns true iff the matrix data is continuous
returns true if the matrix is a submatrix of another matrix
returns the size of element channel in bytes.
returns N if the matrix is 1-channel (N x ptdim) or ptdim-channel (1 x N) or (N x 1); negative number otherwise Read more
! Returns the OpenCL buffer handle on which UMat operates on. The UMat instance should be kept alive during the use of the handle to prevent the buffer to be returned to the OpenCV buffer pool. Read more
Auto Trait Implementations
Blanket Implementations
Mutably borrows from an owned value. Read more
