@tonysyu You were right, `ndi.map_coordinates` works correctly for horizontal. Only vertical needed a special case.