Table of Contents

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

rows int

New 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

newDims int[]

New number of rows. If the parameter is 0, the number of rows remains the same.

Returns

Mat<TElem>