www.gusucode.com > images 案例代码 matlab源码程序 > images/ComputeFourlevelMultiresolutionPyramidOfImageExample.m
%% Compute Four-level Multiresolution Pyramid of Image % %% % 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)