Learn Before
Concept

Resampling Filters (Pillow)

There are multiple resampling filters supported by Pillow.

  • PIL.Image.NEAREST: Pick the nearest pixel from the input image for the output pixel
  • PIL.Image.BOX: Each pixel of the input image contributes to one pixel of the output image equally
  • PIL.Image.BILINEAR: Output pixels calculated with linear interpolation
  • PIL.Image.HAMMING: Produces a sharper image
  • PIL.Image.BICUBIC: Output pixels calculated with cubic interpolation
  • PIL.Image.LANCZOS: Output pixels calculated with a high-quality Lanczos filter

0

1

Updated 2021-08-14

Contributors are:

Who are from:

Tags

Python Programming Language

Data Science

Related