0% found this document useful (0 votes)
30 views

Exp 6

This MATLAB program studies changes to an image through arithmetic operations. It loads an image, takes user input for x and y values, performs addition, subtraction, multiplication and division on the image using those values, and displays the original and processed images in subplots with titles indicating the operation. It also converts the original image to grayscale and displays it. The program is submitted by a student to demonstrate their understanding of image processing in MATLAB.

Uploaded by

puru
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views

Exp 6

This MATLAB program studies changes to an image through arithmetic operations. It loads an image, takes user input for x and y values, performs addition, subtraction, multiplication and division on the image using those values, and displays the original and processed images in subplots with titles indicating the operation. It also converts the original image to grayscale and displays it. The program is submitted by a student to demonstrate their understanding of image processing in MATLAB.

Uploaded by

puru
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 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