This repository has been archived on 2024-01-06. You can view files and clone it, but cannot push or open issues or pull requests.
justhomework/DIPCV/lab1/lab1_5.m
2022-12-06 19:23:49 +08:00

10 lines
No EOL
290 B
Matlab

close all
clear
clc
disp('====CH3_2_2.m====');
I1=imread('lab1_0.bmp');
I2=imresize(I1,0.1,'nearest'); % 语句1
I3=imresize(I1,10.5,'triangle'); % 语句2
figure,imshow(I1),xlabel('原图像');
figure,imshow(I2),xlabel('缩小后的图像');
figure,imshow(I3),xlabel('放大后的图像');