RegionOfInterestImageFilter to extract image slice from volume

Another option to be aware of: a) use itk.xarray_from_image, b) do the slicing with pandas/numpy syntax, c) then itk.image_from_xarray. This may be more convenient while preserving spatial metadata.

1 Like