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_1.m

21 lines
369 B
Mathematica
Raw Normal View History

2022-10-31 04:08:06 +00:00
close all
clear
clc
disp('====E4_3_1a.m====');
X=uint8([255 0 75
44 255 100])
Y=uint8([50 50 50
50 50 50])
Z=imadd(X,Y)
I1=imread('A.bmp');
I2=imread('B.bmp');
I3=rgb2gray(I1);
I4=rgb2gray(I2);
I5=imadd(I3,I4); % <EFBFBD><EFBFBD><EFBFBD><EFBFBD>1
subplot(1,3,1),imshow(I3),xlabel('A');
subplot(1,3,2),imshow(I4),xlabel('B');
subplot(1,3,3),imshow(I5),xlabel('A+B');