You are here : matlabImage Processingimpyramid

impyramid() - Image Processing

B = impyramid(A,direction) computes
a Gaussian pyramid reduction or expansion of A by
one level, where direction determines whether it's
a reduction or an expansion.Code Generation support:
Yes.MATLAB Function Block support:


B = impyramid(A,direction) example


Compute Four-level Multiresolution Pyramid of ImageOpen This Example
Read image into the workspace.I = imread('cameraman.tif');
Perform a series of reductions. The first call reduces the original image. The other calls to impyramid use the previously reduced image.I1 = impyramid(I, 'reduce');
I2 = impyramid(I1, 'reduce');
I3 = impyramid(I2, 'reduce');
View the original image and the reduced versions.figure, imshow(I)
figure, imshow(I1)
figure, imshow(I2)
figure, imshow(I3)

Output / Return Value


Alternatives / See Also