20 lines
345 B
Mathematica
20 lines
345 B
Mathematica
|
close all
|
|||
|
clear
|
|||
|
clc
|
|||
|
disp('====E4_3_16.m====');
|
|||
|
|
|||
|
X=uint8([0 1 2 3])
|
|||
|
Y=~X
|
|||
|
|
|||
|
I1=imread('A.bmp');
|
|||
|
I2=imread('B.bmp');
|
|||
|
I3=im2bw(I1);
|
|||
|
I4=~I3;
|
|||
|
I5=im2bw(I2);
|
|||
|
I6=~I5;
|
|||
|
|
|||
|
subplot(1,4,1),imshow(I3),xlabel('<EFBFBD><EFBFBD>a<EFBFBD><EFBFBD>A');
|
|||
|
subplot(1,4,2),imshow(I4),xlabel('<EFBFBD><EFBFBD>b<EFBFBD><EFBFBD>NOT A');
|
|||
|
subplot(1,4,3),imshow(I5),xlabel('<EFBFBD><EFBFBD>c<EFBFBD><EFBFBD>B');
|
|||
|
subplot(1,4,4),imshow(I6),xlabel('<EFBFBD><EFBFBD>d<EFBFBD><EFBFBD>NOT B');
|