Vout = imcrop3(V,cuboid)
crops the image volume V according to cuboid,
which specifies the size and position of the cropping window in spatial coordinates.
Volume to be cropped, specified as a numeric, logical, or categorical array.
V can be a 3-D array that represents a single channel 3-D volume
or a 4-D array that represents a multichannel 3-D volume. If V
represents a multichannel 3-D volume, then imcrop3 crops the first
three dimensions only.
Size and position of the crop volume in spatial coordinates, specified as a
6-element vector of the form [xmin ymin zmin width height depth] or a
images.spatialref.Cuboid object.