def remapScipy(im, coords):
height, width = im.shape[<NUM_LIT:0>], im.shape[<NUM_LIT:1>]<EOL>coords = coords[:,:,::-<NUM_LIT:1>]<EOL>coords_channels = np.empty((height, width, <NUM_LIT:3>, <NUM_LIT:3>))<EOL>coords_channel = np.zeros((height, width, <NUM_LIT:3>))<EOL>coords_channel[:,:,:<NUM_LIT:2>] = coords<EOL>coords_channels[:,:,<NUM_LIT:0>] = coords_channel<EOL>coords_channels[:,:,<NUM_LIT:1>] = coords_channel<EOL>coords_channels[:,:,<NUM_LIT:1>,<NUM_LIT:2>] = <NUM_LIT:1><EOL>coords_channels[:,:,<NUM_LIT:2>] = coords_channel<EOL>coords_channels[:,:,<NUM_LIT:2>,<NUM_LIT:2>] = <NUM_LIT:2><EOL>coords = coords_channels<EOL>coords = np.rollaxis(coords, <NUM_LIT:3>)<EOL>return map_coordinates(im, coords, order=<NUM_LIT:1>)<EOL>
Remap an image using SciPy. See :func:`remap` for parameters.