Constructor MatShape
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
MatShape(params int[])
Creates an N-D shape from the given per-axis sizes. Passing no sizes creates a 0-D scalar shape.
public MatShape(params int[] sizes)
Parameters
sizesint[]Per-axis sizes.
MatShape(IEnumerable<int>, DataLayout, int)
Creates an N-D shape with an explicit layout and channel count.
public MatShape(IEnumerable<int> sizes, DataLayout layout, int channels = 0)
Parameters
sizesIEnumerable<int>Per-axis sizes.
layoutDataLayoutData layout.
channelsintNumber of channels (C) for the block layout; 0 otherwise.