ewoksndreg.math.crop#

Functions

calc_NaN_edges(image)

Calculates the biggest subimage that doesn't contain NaN-values Usable for situations where loading the entire stack is not feasible ---- param image: Translated image with potential NaN values on the edges

crop_edges(stack)

Calculates the slices such that they correspond to cropping out NaN values

crop_stack(stack)

Crops the images to exclude all NaN values.

crop_translations(transformations, include, ...)

Calculate the area of the images which doesn't include any NaN values based on the calculated transformations