@liangbright, if you want to use a 3D sliding window you can use the grid sampler in TorchIO, as I explained in this topic: How to extract 2D patches from 3D medical image.
@liangbright, if you want to use a 3D sliding window you can use the grid sampler in TorchIO, as I explained in this topic: How to extract 2D patches from 3D medical image.