I have a .vol extension 3D image file (an x-ray tomogram of my experimental setup). Its dimensions are x=555, y=556, z=500 i.e. 500 slices. I want to load this file into MATLAB and do the following: remove some slices from the top and bottom and then set the outer voxels (at a distance greater than a fixed distance, r) of the remaining slices to black. Then I want to save this modified volume as a 3D image of the same extension. How can I do this? If someone can help me with just how to load the .vol file and access individual slices, it would be a big help. Any help would be appreciated, thanks in advance.
Edit: Link for the .vol file
Best Answer