Watch this Author's files
You might want to add a input check / limitation to the max. input size of an image.
For a 400x400 image, this code requires approximately 200Gb of memory...
The code is quite compact though. Thanks for sharing.
Very smooth/ fast movement of slices.
MoveIt functions do not catch out-of-bounds errors.
File -> open medical 3d file.
Image File Name appears to contain a patient name in folder. Might want to remove that:
Other\P****s A****s 05***1603\201***9\1.2.826.0.1