ewoksndreg.math.crop.crop_translations#
- ewoksndreg.math.crop.crop_translations(transformations, include, img_size, interpolation_order=1)[source]#
Calculate the area of the images which doesn’t include any NaN values based on the calculated transformations
param transformations: list of translations param include: list of indices of the transformations which should be considered for cropping param img_size: image size of the images that will be cropped param interpolation_order: The order of the polynomials that will be used to resample the image, as higher orders create more NaN values
returns: two slices which crop the individual images to remove nan values
- Parameters:
transformations (
List
)include (
List
[int
])img_size (
Tuple
)interpolation_order (
int
)