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 static T ReshapeND<T>( CvArr arr, T header, int newCn, int newDims, int[] newSizes ) where T : CvArr
Parameters
- arr
- Type: OpenCvSharpCvArr
Input array. - 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.Cv.ReshapeND``1(OpenCvSharp.CvArr,``0,System.Int32,System.Int32,System.Int32[])"]
Return Value
Type: T[Missing <returns> documentation for "M:OpenCvSharp.Cv.ReshapeND``1(OpenCvSharp.CvArr,``0,System.Int32,System.Int32,System.Int32[])"]
See Also