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.
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 pyr use specifications of a reference pyramid pyr - Use InverseImagePyramid[pyr,n] to reconstruct the pyramid using the type embedded in pyr.
Examples
open all close allBasic Examples (2)
Reconstruct an image from a bandpass pyramid:
pyr = ImagePyramid[[image], "Bandpass", 4]InverseImagePyramid[pyr]Reconstruct an image to a specific size:
pyr = ImagePyramid[[image], "Bandpass", 4]InverseImagePyramid[pyr, Automatic, {50, 50}]Scope (1)
Applications (3)
Simulate decoding an image by incorporating more and more details:
n = 3;image = [image];Compute the Laplacian pyramid:
pyr = ImagePyramid[image, "Laplacian", n];Display more details by reconstructing with higher and higher levels of the pyramid:
Table[
Image[
InverseImagePyramid[pyr, k], ImageSize -> ImageDimensions[image]
],
{k, n, 1, -1}
]Denoise an image by attenuating the lowest level of the Laplacian pyramid:
noisy = [image];pyr = ImagePyramid[noisy, "Laplacian"];Attenuate the noise in the lowest pyramid level by factor 0.1:
pyr[1]pyr[1] = 0.1 * pyr[1];Reconstruct the image without the noise:
InverseImagePyramid[pyr]Extract the small-scale components in a volumetric dataset:
vol = ExampleData[{"TestImage3D", "CTengine"}]Create four levels of a Laplacian image pyramid with scaling factor
:
pyramid = ImagePyramid[vol, "Laplacian", 4]Discard the top level of the pyramid that contains the large-scale components:
pyramid["Levels"] = Most[pyramid["Levels"]]Reconstruct the original volume with only the small-scale components:
InverseImagePyramid[pyramid, "Laplacian"]Properties & Relations (2)
Compare the result of a reconstruction to the original image:
image = [image];result = InverseImagePyramid[ImagePyramid[image, "Bandpass", 4]]Compute the difference between the reconstructed image and the original:
ImageDistance[result, image, DistanceFunction -> "RootMeanSquare"]The reconstructed image of a Gaussian pyramid is the same as the image of the bottom level:
img = [image];pyramid = ImagePyramid[img, "Gaussian"]InverseImagePyramid[pyramid] === pyramid[1]Related Guides
History
Text
Wolfram Research (2019), InverseImagePyramid, Wolfram Language function, https://reference.wolfram.com/language/ref/InverseImagePyramid.html.
CMS
Wolfram Language. 2019. "InverseImagePyramid." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/InverseImagePyramid.html.
APA
Wolfram Language. (2019). InverseImagePyramid. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/InverseImagePyramid.html
BibTeX
@misc{reference.wolfram_2026_inverseimagepyramid, author="Wolfram Research", title="{InverseImagePyramid}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/InverseImagePyramid.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_inverseimagepyramid, organization={Wolfram Research}, title={InverseImagePyramid}, year={2019}, url={https://reference.wolfram.com/language/ref/InverseImagePyramid.html}, note=[Accessed: 12-June-2026]}