Method Reshape
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
Reshape(int)
Changes the shape of channels of a 2D matrix without copying the data.
public Mat<TElem> Reshape(int rows)
Parameters
rowsintNew number of rows. If the parameter is 0, the number of rows remains the same.
Returns
- Mat<TElem>
Reshape(int[])
Changes the shape of a 2D matrix without copying the data.
public Mat<TElem> Reshape(int[] newDims)
Parameters
newDimsint[]New number of rows. If the parameter is 0, the number of rows remains the same.
Returns
- Mat<TElem>