Class VectorOfKeyLine
- Namespace
- Emgu.CV.LineDescriptor
- Assembly
- Emgu.CV.dll
Wrapped class of the C++ standard vector of KeyLine.
public class VectorOfKeyLine : UnmanagedVector, IDisposable, IAsyncDisposable, ISerializable
- Inheritance
-
VectorOfKeyLine
- Implements
- Inherited Members
Constructors
VectorOfKeyLine()
Create an empty standard vector of KeyLine
public VectorOfKeyLine()
VectorOfKeyLine(MKeyLine[])
Create a standard vector of KeyLine with the initial values
public VectorOfKeyLine(MKeyLine[] values)
Parameters
values
MKeyLine[]The initial values
VectorOfKeyLine(int)
Create a standard vector of KeyLine of the specific size
public VectorOfKeyLine(int size)
Parameters
size
intThe size of the vector
VectorOfKeyLine(SerializationInfo, StreamingContext)
Constructor used to deserialize runtime serialized object
public VectorOfKeyLine(SerializationInfo info, StreamingContext context)
Parameters
info
SerializationInfoThe serialization info
context
StreamingContextThe streaming context
VectorOfKeyLine(Span<MKeyLine>)
Create a standard vector of KeyLine with the initial values
public VectorOfKeyLine(Span<MKeyLine> values)
Parameters
Properties
this[int]
Get the item in the specific index
public MKeyLine this[int index] { get; }
Parameters
index
intThe index
Property Value
- MKeyLine
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()
GetObjectData(SerializationInfo, StreamingContext)
A function used for runtime serialization of the object
public void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
info
SerializationInfoSerialization info
context
StreamingContextStreaming context
GetSpan()
Returns a memory span that wraps the underlying memory buffer.
public Span<MKeyLine> GetSpan()
Returns
Push(MKeyLine[])
Push an array of values into the standard vector
public void Push(MKeyLine[] values)
Parameters
values
MKeyLine[]The values to be pushed to the vector
Push(VectorOfKeyLine)
Push multiple values from the other vector into this vector
public void Push(VectorOfKeyLine other)
Parameters
other
VectorOfKeyLineThe other vector, from which the values will be pushed to the current vector
Push(Span<MKeyLine>)
Push an array of values into the standard vector
public void Push(Span<MKeyLine> values)
Parameters
ToArray()
Convert the standard vector to an array of KeyLine
public MKeyLine[] ToArray()
Returns
- MKeyLine[]
An array of KeyLine