Resampling

Resampling
is an option that specifies the method to be used for resampling images.

DetailsDetails

  • Typical settings include:
  • "Nearest"nearest neighbor resampling
    "Bilinear"bilinear interpolation
    "Biquadratic"biquadratic spline interpolation
    "Bicubic"bicubic spline interpolation
    "Dodgson"Dodgson polynomial interpolation
    "Keys"Keys polynomial interpolation
    "SchaumQuadratic"Schaum (Lagrange) quadratic polynomial interpolation
    "SchaumCubic"Schaum (Lagrange) cubic polynomial interpolation
    "SchaumQuartic"Schaum (Lagrange) quartic polynomial interpolation
    "CatmullRom"Catmull-Rom (Meijering) cubic polynomial interpolation
    "MeijeringQuintic"Meijering quintic polynomial interpolation
    "German"German polynomial interpolation
    "Gaussian"Gaussian resampling
    "Lanczos"Lanczos multivariate interpolation method
    "Cosine"cosine interpolation
    "Hamming"raised-cosine Hamming interpolation
    "Hann"raised-cosine Hann interpolation
    "Blackman"three-term generalized raised cosine
    "Bartlett"triangular window interpolation
    "Welch"Welch quadratic interpolation
    "Connes"squared Welch interpolation
    "Parzen"piecewise cubic interpolation
    "Kaiser"zero-order modified Bessel interpolation
  • In all of the interpolations, the window is normalized so that its values sum to 1.

ExamplesExamplesopen allclose all

Basic Examples (2)Basic Examples (2)

Downsample an image using Gaussian interpolation:

In[1]:=
Click for copyable input
Out[1]=

Upsample an image using a higher-order interpolation:

In[1]:=
Click for copyable input
Out[1]=
New in 8 | Last modified in 9
New to Mathematica? Find your learning path »
Have a question? Ask support »