InverseImagePyramid

InverseImagePyramid[pyr]

reconstructs an image from an ImagePyramid object pyr.

InverseImagePyramid[pyr,pyrtype]

assumes the specified pyramid type pyrtype.

InverseImagePyramid[pyr,pyrtype,n]

reconstructs up to pyramid level n.

InverseImagePyramid[pyr,pyrtype,{size}]

reconstructs up to the smallest pyramid level larger than the specified size.

Details

  • InverseImagePyramid computes the inverse of ImagePyramid.
  • Image pyramid is a multi-resolution representation of an image to facilitate efficient multi-scale processing. Typical applications include noise removal, image blending, texture synthesis and efficient rendering.
  • An image pyramid consists of several images with consecutively lower resolutions. Typically, specific levels of the pyramid are processed and the result is reconstructed using the inverse process.
  • InverseImagePyramid works with 2D and 3D image pyramids.
  • The pyramid type pyrtype can be any of the following:
  • "Lowpass" or "Gaussian"iteratively blurs and downsamples
    "Bandpass" or "Laplacian"difference pyramid by upsampling and subtracting the lower levels from the upper levels
    {"Lowpass",ker}use ker for downsampling
    {"Bandpass",ker1,ker2}use ker1 for downsampling and ker2 for upsampling
    pyruse specifications of a reference pyramid pyr
  • Use InverseImagePyramid[pyr,n] to reconstruct the pyramid using the type embedded in pyr.

Examples

open all close all

Basic Examples  (2)

Reconstruct an image from a bandpass pyramid:

In[2]:=
Click for copyable input
Out[2]=
In[3]:=
Click for copyable input
Out[3]=

Reconstruct an image to a specific size:

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

Applications  (2)

Properties & Relations  (1)

Introduced in 2019
(12.0)