Table of Contents

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

sizes int[]

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

sizes IEnumerable<int>

Per-axis sizes.

layout DataLayout

Data layout.

channels int

Number of channels (C) for the block layout; 0 otherwise.