scipy.misc.imresize

scipy.misc.imresize(arr, size, interp='bilinear', mode=None)

Resize an image.

Parameters :

arr : nd_array

The array of image to be resized.

size : int, float or tuple

  • int - Percentage of current size.
  • float - Fraction of current size.
  • tuple - Size of the output image.

interp : string

interpolation to use for re-sizing (‘nearest’, ‘bilinear’, ‘bicubic’ or ‘cubic’)

mode : :

mode is the PIL image mode (‘P’, ‘L’, etc.)

Returns :

: nd_array :

The resized array of image.

Previous topic

scipy.misc.imread

Next topic

scipy.misc.imrotate

This Page