Class VectorOfMat
Wrapped class of the C++ standard vector of Mat.
public class VectorOfMat : UnmanagedVector, IAsyncDisposable, IInputOutputArray, IInputArrayOfArrays, IOutputArrayOfArrays, IOutputArray, IInputArray, IDisposable
- Inheritance
-
VectorOfMat
- Implements
- Inherited Members
- Extension Methods
Constructors
VectorOfMat()
Create an empty standard vector of Mat
public VectorOfMat()
VectorOfMat(params Mat[])
Create an standard vector of Mat with the initial values
public VectorOfMat(params Mat[] values)
Parameters
values
Mat[]The initial values
VectorOfMat(int)
Create an standard vector of Mat of the specific size
public VectorOfMat(int size)
Parameters
size
intThe size of the vector
Properties
this[int]
Get the item in the specific index
public Mat this[int index] { get; }
Parameters
index
intThe index
Property Value
- Mat
The item in the specific index
Length
The size of memory in bytes, that is needed to hold all the items in this vector
public override long Length { get; }
Property Value
Size
Get the size of the vector
public override int Size { get; }
Property Value
SizeOfItemInBytes
The size of the item in this Vector, counted as size in bytes.
public static int SizeOfItemInBytes { get; }
Property Value
StartAddress
The pointer to the first element on the vector. In case of an empty vector, IntPtr.Zero will be returned.
public override nint StartAddress { get; }
Property Value
Methods
Clear()
Clear the vector
public void Clear()
DisposeObject()
Release the standard vector
protected override void DisposeObject()
GetInputArray()
Get the pointer to cv::_InputArray
public InputArray GetInputArray()
Returns
- InputArray
The input array
GetInputOutputArray()
Get the pointer to cv::_InputOutputArray
public InputOutputArray GetInputOutputArray()
Returns
- InputOutputArray
The input output array
GetOutputArray()
Get the pointer to cv::_OutputArray
public OutputArray GetOutputArray()
Returns
- OutputArray
The output array
Push(Mat)
Push a value into the standard vector
public void Push(Mat value)
Parameters
value
MatThe value to be pushed to the vector
Push(Mat[])
Push multiple values into the standard vector
public void Push(Mat[] values)
Parameters
values
Mat[]The values to be pushed to the vector
Push(VectorOfMat)
Push multiple values from the other vector into this vector
public void Push(VectorOfMat other)
Parameters
other
VectorOfMatThe other vector, from which the values will be pushed to the current vector
Push<TDepth>(CvArray<TDepth>)
Convert a CvArray to Mat and push it into the vector
public void Push<TDepth>(CvArray<TDepth> cvArray) where TDepth : new()
Parameters
cvArray
CvArray<TDepth>The cvArray to be pushed into the vector
Type Parameters
TDepth
The type of depth of the cvArray
Push<TDepth>(CvArray<TDepth>[])
Convert a group of CvArray to Mat and push them into the vector
public void Push<TDepth>(CvArray<TDepth>[] values) where TDepth : new()
Parameters
values
CvArray<TDepth>[]The values to be pushed to the vector
Type Parameters
TDepth
The type of depth of the cvArray