({{, (RefLink[ImagePyramidApply, paclet:ref/ImagePyramidApply])[f,pyr] 
applies f to all images in the (RefLink[ImagePyramid, paclet:ref/ImagePyramid]) object pyr.}, {, (RefLink[ImagePyramidApply, paclet:ref/ImagePyramidApply])[f,{(Subscript[pyr, 1]),(Subscript[pyr, 2]),…}]
applies f to the sequence of corresponding levels taken from each (Subscript[pyr, i]).}})

OpenersNotesSection(Spacer1)Details

(RefLink[ImagePyramidApply, paclet:ref/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.

(RefLink[ImagePyramidApply, paclet:ref/ImagePyramidApply]) works with 2D and 3D image pyramids.

The function f needs to return compatible images for different pyramid levels.

In (RefLink[ImagePyramidApply, paclet:ref/ImagePyramidApply])[f,{(Subscript[pyr, 1]),…,(Subscript[pyr, n])}], f is supplied with n arguments.

(RefLink[ImagePyramidApply, paclet:ref/ImagePyramidApply])[f,{(Subscript[pyr, 1]),(Subscript[pyr, 2]),…}] works with any number of commensurate image pyramids.

OpenersPrimaryExamplesSection(Spacer1)Examples  (1)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

Apply a gradient filter at several scales simultaneously:

img = ;

pyramid=ImagePyramid[img,"Gaussian",4];

pyramidG=ImagePyramidApply[img|->GradientFilter[img,1.4],pyramid]

InverseImagePyramid[pyramidG,"Laplacian"]//ImageAdjust

Compare to a gradient at a single scale σ=1.4`:

GradientFilter[img,1.4]//ImageAdjust

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[ImagePyramid, paclet:ref/ImagePyramid])  ▪  (RefLink[InverseImagePyramid, paclet:ref/InverseImagePyramid])  ▪  (RefLink[Image, paclet:ref/Image])  ▪  (RefLink[ImageApply, paclet:ref/ImageApply])  ▪  (RefLink[Map, paclet:ref/Map])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Creating & Importing Images, paclet:guide/CreatingAndImportingImages])}})}})