Changes shape of multi-dimensional array w/o copying data
Namespace: OpenCvSharp
Assembly: OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public T ReshapeMatND<T>( int sizeofHeader, T header, int newCn, int newDims, int[] newSizes ) where T : CvArr
Parameters
- sizeofHeader
- Type: SystemInt32
Size of output header to distinguish between IplImage, CvMat and CvMatND output headers. - header
- Type: T
Output header to be filled. - newCn
- Type: SystemInt32
New number of channels. new_cn = 0 means that number of channels remains unchanged. - newDims
- Type: SystemInt32
New number of dimensions. new_dims = 0 means that number of dimensions remains the same. - newSizes
- Type: SystemInt32
Array of new dimension sizes. Only new_dims-1 values are used, because the total number of elements must remain the same. Thus, if new_dims = 1, new_sizes array is not used
Type Parameters
- T
[Missing <typeparam name="T"/> documentation for "M:OpenCvSharp.CvArr.ReshapeMatND``1(System.Int32,``0,System.Int32,System.Int32,System.Int32[])"]
Return Value
Type: T[Missing <returns> documentation for "M:OpenCvSharp.CvArr.ReshapeMatND``1(System.Int32,``0,System.Int32,System.Int32,System.Int32[])"]
See Also