Creates a sequence that represents the specified slice of the input sequence. The new sequence either shares the elements with the original sequence or has own copy of the elements. So if one needs to process a part of sequence but the processing function does not have a slice parameter, the required sub-sequence may be extracted using this function.


- seq (IntPtr)
- Sequence
- slice (MCvSlice)
- The part of the sequence to extract
- storage (IntPtr)
- The destination storage to keep the new sequence header and the copied data if any. If it is NULL, the function uses the storage containing the input sequence.
- copyData (Boolean)
- The flag that indicates whether to copy the elements of the extracted slice (copyData == true) or not (copyData=false)

A pointer to CvSeq