vispy.geometry.calculations module

Miscellaneous functions

vispy.geometry.calculations.resize(image, shape, kind='linear')[source]

Resize an image

Parameters
imagendarray

Array of shape (N, M, …).

shapetuple

2-element shape.

kindstr

Interpolation, either “linear” or “nearest”.

Returns
scaled_imagendarray

New image, will have dtype np.float64.