CvInitMatHeaderT Method (CvMat, Int32, Int32, MatrixType, T, Int32) OpenCvSharp Class Library
Initializes matrix header.

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public static CvMat InitMatHeader<T>(
	CvMat mat,
	int rows,
	int cols,
	MatrixType type,
	T[] data,
	int step
)
where T : struct, new()

Parameters

mat
Type: OpenCvSharpCvMat
Reference to the matrix header to be initialized.
rows
Type: SystemInt32
Number of rows in the matrix.
cols
Type: SystemInt32
Number of columns in the matrix.
type
Type: OpenCvSharpMatrixType
Type of the matrix elements.
data
Type: T
Optional data pointer assigned to the matrix header.
step
Type: SystemInt32
Full row width in bytes of the data assigned. By default, the minimal possible step is used, i.e., no gaps is assumed between subsequent rows of the matrix.

Type Parameters

T

[Missing <typeparam name="T"/> documentation for "M:OpenCvSharp.Cv.InitMatHeader``1(OpenCvSharp.CvMat,System.Int32,System.Int32,OpenCvSharp.MatrixType,``0[],System.Int32)"]

Return Value

Type: CvMat

[Missing <returns> documentation for "M:OpenCvSharp.Cv.InitMatHeader``1(OpenCvSharp.CvMat,System.Int32,System.Int32,OpenCvSharp.MatrixType,``0[],System.Int32)"]

See Also

Reference