How to perform bicubic interpolation using scipy.ndimage.zoom?

434 views Asked by At

So I'm using scipy.ndimage.zoom to resize a 3D volume. However I would like to understand better the mode parameter. From the documentation it can have the following values:

{‘reflect’, ‘grid-mirror’, ‘constant’, ‘grid-constant’, ‘nearest’, ‘mirror’, ‘grid-wrap’, ‘wrap’}
  1. Reasoning, constant with order=1 might represent a bilinear interpolation. What do the other modes represent?

  2. Also, how can I perform a bicubic interpolation?

1

There are 1 answers

0
AudioBubble On

order represents the degree of the interpolant. 1=bilinear, 3=bicubic. This is independent of the order setting.