Reduces the dimensions of a scan based on extent of a mask. Combines getEmptyImageDimensions and applyEmptyImageDimensions.

reduce_scan(img, mask)

Arguments

img

Image to reduce

mask

Mask to reduce image by

Value

List of antsImage objects for reduced image and mask