Janikas
Janikas

Reputation: 458

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

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?

Upvotes: -1

Views: 704

Answers (1)

user1196549
user1196549

Reputation:

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

Upvotes: 0

Related Questions