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: (


public static IntPtr cvGetSeqElem(
	IntPtr seq,
	int index
Visual Basic
Public Shared Function cvGetSeqElem ( 
	seq As IntPtr,
	index As Integer
) As IntPtr
Visual C++
static IntPtr cvGetSeqElem(
	IntPtr seq, 
	int index
static member cvGetSeqElem : 
        seq : IntPtr * 
        index : int -> IntPtr 


Type: System..::..IntPtr
Type: System..::..Int32
Index of element

Return Value

Type: IntPtr
the pointer to the element with the given index in the sequence

See Also