ImagePyramidApply

ImagePyramidApply[f,pyr]

applies f to all images in the ImagePyramid object pyr.

ImagePyramidApply[f,{pyr1,pyr2,}]

applies f to the sequence of corresponding levels taken from each pyri.

Details

  • ImagePyramidApply can be used to modify images at all levels of an image pyramid at once.
  • Image pyramid is a multi-resolution representation of an image to facilitate efficient multiscale 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.
  • ImagePyramidApply works with 2D and 3D image pyramids.
  • The function f needs to return compatible images for different pyramid levels.
  • In ImagePyramidApply[f,{pyr1,,pyrn}], f is supplied with n arguments.
  • ImagePyramidApply[f,{pyr1,pyr2,}] works with any number of commensurate image pyramids.

Examples

open all close all

Basic Examples  (1)

Apply a gradient filter at several scales simultaneously:

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

Compare to a gradient at a single scale :

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

Applications  (5)

Introduced in 2019
(12.0)