MatOfFloat4 Constructor (IEnumerableInt32, Array, IEnumerableInt64)
|
constructor for matrix headers pointing to user-allocated data
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 3.4.1.20180605-33-CaRLSharp
Syntaxpublic MatOfFloat4(
IEnumerable<int> sizes,
Array data,
IEnumerable<long> steps = null
)
Public Sub New (
sizes As IEnumerable(Of Integer),
data As Array,
Optional steps As IEnumerable(Of Long) = Nothing
)
public:
MatOfFloat4(
IEnumerable<int>^ sizes,
Array^ data,
IEnumerable<long long>^ steps = nullptr
)
new :
sizes : IEnumerable<int> *
data : Array *
?steps : IEnumerable<int64>
(* Defaults:
let _steps = defaultArg steps null
*)
-> MatOfFloat4
OpenCvSharp.MatOfFloat4 = function(sizes, data, steps);
Parameters
- sizes
- Type: System.Collections.GenericIEnumerableInt32
Array of integers specifying an n-dimensional array shape. - data
- Type: SystemArray
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