scipy_interpolation¶
- menpo.image.interpolation.scipy_interpolation(pixels, points_to_sample, mode='constant', order=1)[source]¶
Interpolation utilizing SciPy’s map_coordinates function.
Parameters: pixels : (M, N, ..., n_channels) ndarray
The image to be sampled from, the final axis containing channel information.
points_to_sample : (n_points, n_dims) ndarray
The points which should be sampled from pixels
mode : {‘constant’, ‘nearest’, ‘reflect’, ‘wrap’}, optional
Points outside the boundaries of the input are filled according to the given mode.
Default: ‘constant’ (0)
order : int, optional
The order of the spline interpolation. The order has to be in the range 0-5.
Default: 1
Returns: sampled_image : ndarray
The pixel information sampled at each of the points.