Slicing operation of VTK or ITK in C++

In C++, does the ITK or VTK volume data class contain a numpy-like slicing method?

The itkSliceImageFilter contains much of the same functionality. Using filter provide the benefits of ITK’s pipeline and requested region propagation through upstream filters and IO.

C++'s operator[] does not support the same generality, flexibility and syntactic sugar as Python has.

2 Likes

We could perhaps make the pixel buffer an xtensor array to provide the NumPy-like interface.