http://www.emgu.com
Finds the element with the given index in the sequence and returns the pointer to it. If the element is not found, the function returns 0. The function supports negative indices, where -1 stands for the last sequence element, -2 stands for the one before last, etc. If the sequence is most likely to consist of a single sequence block or the desired element is likely to be located in the first block, then the macro CV_GET_SEQ_ELEM( elemType, seq, index ) should be used, where the parameter elemType is the type of sequence elements ( CvPoint for example), the parameter seq is a sequence, and the parameter index is the index of the desired element. The macro checks first whether the desired element belongs to the first block of the sequence and returns it if it does, otherwise the macro calls the main function GetSeqElem. Negative indices always cause the cvGetSeqElem call. The function has O(1) time complexity assuming that number of blocks is much smaller than the number of elements.

Namespace: Emgu.CV
Assembly: Emgu.CV (in Emgu.CV.dll) Version: 2.4.0.1717 (2.4.0.1717)

Syntax

C#
public static IntPtr cvGetSeqElem(
	IntPtr seq,
	int index
)
Visual Basic
Public Shared Function cvGetSeqElem ( _
	seq As IntPtr, _
	index As Integer _
) As IntPtr
Visual C++
public:
static IntPtr cvGetSeqElem(
	IntPtr seq, 
	int index
)

Parameters

seq
Type: System..::..IntPtr
Sequence
index
Type: System..::..Int32
Index of element

Return Value

the pointer to the element with the given index in the sequence

See Also