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/lab2/lab2_6.m
2022-12-06 19:23:49 +08:00

20 lines
355 B
Mathematica

close all
clear
clc
disp('====E4_3_15.m====');
X=uint8([0 0 1 1
0 0 2 3])
Y=uint8([0 1 0 1
0 2 0 3])
Z=X|Y
I1=imread('A.bmp');
I2=imread('B.bmp');
I3=im2bw(I1);
I4=im2bw(I2);
I5=I3|I4;
subplot(1,3,1),imshow(I3),xlabel('£¨a£©A');
subplot(1,3,2),imshow(I4),xlabel('£¨b£©B');
subplot(1,3,3),imshow(I5),xlabel('£¨c£©A OR B');