Class Slice
Defined in File transforms.h
Class Documentation
-
class Slice
Slice object used in SliceOption.
Public Functions
-
inline Slice()
Constructor, with start, stop and step default to 0.
-
inline Slice(dsize_t start, dsize_t stop, dsize_t step)
Constructor.
- Example
/* Slice dimension from 2 to 10 with step 2. */ Slice(0, 10, 2);
- 参数
start – [in] Starting integer specifying where to start the slicing.
stop – [in] Ending integer specifying where to stop the slicing.
step – [in] An integer specifying the step of the slicing.
-
inline Slice()