Struct opencv::core::UMat

source ·
pub struct UMat { /* private fields */ }
Expand description

@todo document

Implementations

default constructor

C++ default parameters
  • usage_flags: USAGE_DEFAULT

constructs 2D matrix of the specified size and type

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

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

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

constructs n-dimensional matrix

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

copy constructor

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

Wrap the specified raw pointer Read more
Return an the underlying raw pointer while consuming this wrapper. Read more
Return the underlying raw pointer. Read more
Return the underlying mutable raw pointer Read more

Calls try_clone() and panics if that fails

Performs copy-assignment from source. Read more
Executes the destructor for this type. Read more
! includes several bit-fields: Read more
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 Read more
allocates new matrix data unless the matrix already has specified size and type. Read more
C++ default parameters Read more
C++ default parameters Read more
C++ default parameters Read more
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
! includes several bit-fields: Read more
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
offset of the submatrix (or 0)
dimensional size of the matrix; accessible in various formats
number of bytes each matrix element/row/plane/dimension occupies
returns a new matrix header for the specified row
returns a new matrix header for the specified column
… for the specified row span
… 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
returns deep copy of the matrix, i.e. the data is copied
copies the matrix content to “m”.
copies those matrix elements to “m” that are marked with non-zero mask elements.
converts matrix to another datatype with optional scaling. See cvConvertScale. Read more
C++ default parameters Read more
creates alternative matrix header for the same data, with different Read more
matrix transposition by means of matrix expressions
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 element size in bytes,
returns the size of element channel in bytes.
returns element type, similar to CV_MAT_TYPE(cvmat->type)
returns element type, similar to CV_MAT_DEPTH(cvmat->type)
returns element type, similar to CV_MAT_CN(cvmat->type)
returns step/elemSize1() Read more
returns true if matrix data is NULL
returns the total number of matrix elements
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

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.