Struct SeqSlice
Represents a sequence slice.
Namespace: OpenCV.Net
Assembly: OpenCV.Net.dll
Syntax
public struct SeqSlice
Constructors
| Improve this Doc View SourceSeqSlice(Int32, Int32)
Initializes a new instance of the SeqSlice structure from the specified start and end indices.
Declaration
public SeqSlice(int start, int end)
Parameters
Type | Name | Description |
---|---|---|
Int32 | start | The inclusive start index of the slice. |
Int32 | end | The exclusive end index boundary of the slice. |
Fields
| Improve this Doc View SourceEndIndex
The exclusive end index boundary of the slice.
Declaration
public int EndIndex
Field Value
Type | Description |
---|---|
Int32 |
StartIndex
The inclusive start index of the slice.
Declaration
public int StartIndex
Field Value
Type | Description |
---|---|
Int32 |
WholeSeqEndIndex
An index value that represents the end of the whole sequence.
Declaration
public const int WholeSeqEndIndex = null
Field Value
Type | Description |
---|---|
Int32 |
Properties
| Improve this Doc View SourceWholeSeq
Returns a SeqSlice that is set to encompass the whole sequence.
Declaration
public static SeqSlice WholeSeq { get; }
Property Value
Type | Description |
---|---|
SeqSlice |
Methods
| Improve this Doc View SourceSliceLength(Seq)
Calculates the number of elements in the slice for a specified sequence.
Declaration
public int SliceLength(Seq seq)
Parameters
Type | Name | Description |
---|---|---|
Seq | seq | The sequence on which to compute the slice length. |
Returns
Type | Description |
---|---|
Int32 | The number of elements in the slice for the specified sequence. |