Method FromArray
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
FromArray<TElem>(params TElem[])
Initializes as N x 1 matrix and copies array data to this
public static Mat<TElem> FromArray<TElem>(params TElem[] arr) where TElem : unmanaged
Parameters
arrTElem[]Source array data to be copied to this
Returns
- Mat<TElem>
Type Parameters
TElem
FromArray<TElem>(TElem[,])
Initializes as M x N matrix and copies array data to this
public static Mat<TElem> FromArray<TElem>(TElem[,] arr) where TElem : unmanaged
Parameters
arrTElem[,]Source array data to be copied to this
Returns
- Mat<TElem>
Type Parameters
TElem
FromArray<TElem>(IEnumerable<TElem>)
Initializes as N x 1 matrix and copies array data to this
public static Mat<TElem> FromArray<TElem>(IEnumerable<TElem> enumerable) where TElem : unmanaged
Parameters
enumerableIEnumerable<TElem>Source array data to be copied to this
Returns
- Mat<TElem>
Type Parameters
TElem