Exp 6

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

ECE-511 SIGNAL

THEORY & APPLICATIONS

Experiment 6
Aim: Write a program to study various changes in an image by performing
arithmetic operations by using inbuilt MATLAB function.

Program:
clc;
clear all;
close all;
a=imread('C:\Users\Admin\Downloads\images\bio.jpg');
x=input('Enter x');
y=output('Enter y');
b=a+x;
c=a-x;
d=a*y;
e=a/y;
imtool(a)
figure(1)
subplot(121);
imshow(a)
title('Original')
a1=rgb2gray(a);
subplot(122);
imshow(a1);
title('Gray scale')
figure(2)
subplot(221);
imshow(b)
title('Addition')
subplot(222);
imshow(c)
title('Subtraction')
subplot(223);
imshow(d)
title('Multiplication')
subplot(224);
imshow(e)
title('Division')

Submitted By: Ravindra S. Rathore Submitted To:


Naveen Kabra

You might also like