[−][src]Function opencv::core::ensure_size_is_enough
pub fn ensure_size_is_enough(
rows: i32,
cols: i32,
typ: i32,
arr: &mut dyn ToOutputArray
) -> Result<()>
Ensures that the size of a matrix is big enough and the matrix has a proper type.
Parameters
- rows: Minimum desired number of rows.
- cols: Minimum desired number of columns.
- type: Desired matrix type.
- arr: Destination matrix.
The function does not reallocate memory if the matrix has proper attributes already.