-
-
Notifications
You must be signed in to change notification settings - Fork 71
Open
Description
reproject_interp relies on scipy.ndimage.map_coordinates for interpolating the image to the new pixel array. This is potentially quite slow for large images/complicated WCSs. However, there are several alternate implementations of map_coordinates that could provide potential speedups, e.g.
cupyimplementation ofmap_coordinateswhen your array is on a GPU: https://docs.cupy.dev/en/stable/reference/generated/cupyx.scipy.ndimage.map_coordinates.html- In-progress
dask-imageimplementation ofmap_coordinates: Implement support for ndimage.map_coordinates dask/dask-image#237
I see that map_coordinates is already abstracted away from scipy.ndimage.map_coordinates in some sense by placing it in its own function in array_utils. Is there a sensible way for providing an entrypoint for swapping out the underlying map_coordinates function? One possibility of course would be just passing in a function as an argument from the high-level reproject_interp interface all the way down to map_coordinates. Is there a cleaner way?
Metadata
Metadata
Assignees
Labels
No labels