Crop niftiImages

crop(mask, img)

Arguments

mask

a mask image to crop with

img

another image to crop

Value

A list with the cropped mask and img, and the offsets to adjust image indexing