| MatReshape Method (Int32, Int32) |
Changes the shape and/or the number of channels of a 2D matrix without copying the data.
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public Mat Reshape(
int cn,
int rows = 0
)
Public Function Reshape (
cn As Integer,
Optional rows As Integer = 0
) As Mat
public:
Mat^ Reshape(
int cn,
int rows = 0
)
member Reshape :
cn : int *
?rows : int
(* Defaults:
let _rows = defaultArg rows 0
*)
-> Mat
Parameters
- cn
- Type: SystemInt32
New number of channels. If the parameter is 0, the number of channels remains the same. - rows (Optional)
- Type: SystemInt32
New number of rows. If the parameter is 0, the number of rows remains the same.
Return Value
Type:
Mat[Missing <returns> documentation for "M:OpenCvSharp.Mat.Reshape(System.Int32,System.Int32)"]
See Also