ewoksndreg.math.crop.crop_stack#
- ewoksndreg.math.crop.crop_stack(stack)[source]#
Crops the images to exclude all NaN values. Only works for translated images
param stack: Stack of translated images of form [N,H,W] with nan values in the empty sections
returns: Stack of cropped images of form [N, H’, W’]
- Parameters:
stack (
ndarray
)- Return type:
ndarray