ewoksndreg.math.crop.calc_NaN_edges#
- ewoksndreg.math.crop.calc_NaN_edges(image)[source]#
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
returns: two tuples containing the 4 borders of the image: ((top,left), (bottom,right))
- Parameters:
image (
ndarray
)- Return type:
Tuple
[Tuple
[int
,int
],Tuple
[int
,int
]]