constructor for matrix headers pointing to user-allocated data
Namespace: OpenCvSharp.CPlusPlus
Assembly: OpenCvSharp.CPlusPlus (in OpenCvSharp.CPlusPlus.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public MatOfFloat( IEnumerable<int> sizes, float[] data, IEnumerable<long> steps = null )
Parameters
- sizes
- Type: System.Collections.GenericIEnumerableInt32
Array of integers specifying an n-dimensional array shape. - data
- Type: SystemSingle
Pointer to the user data. Matrix constructors that take data and step parameters do not allocate matrix data. Instead, they just initialize the matrix header that points to the specified data, which means that no data is copied. This operation is very efficient and can be used to process external data using OpenCV functions. The external data is not automatically deallocated, so you should take care of it. - steps (Optional)
- Type: System.Collections.GenericIEnumerableInt64
Array of ndims-1 steps in case of a multi-dimensional array (the last step is always set to the element size). If not specified, the matrix is assumed to be continuous.
See Also