0% found this document useful (0 votes)
4 views2 pages

Cleari: Title (' Second Signal ')

The document contains a MATLAB program for computing the convolution sum of two signals and applying an arithmetic mean filter to an image with Gaussian noise. It includes code for visualizing the original and processed signals and images using subplots. Additionally, it mentions the author's name, section, roll number, and date.

Uploaded by

jahnavisrikarri
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views2 pages

Cleari: Title (' Second Signal ')

The document contains a MATLAB program for computing the convolution sum of two signals and applying an arithmetic mean filter to an image with Gaussian noise. It includes code for visualizing the original and processed signals and images using subplots. Additionally, it mentions the author's name, section, roll number, and date.

Uploaded by

jahnavisrikarri
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

% Matlab program for finding convolution sum

clc;
close all;
cleari
Xl= (2 00 5):
X2= [2 4 0 6] :
k=l; suml=0;
m=numel (x1) ; n=numel (x2);
S= (m+n-1) ;
for i=l :s
for j=l:m
h=i-j+l;
if h>0 && he=n
suml=sum1+ (x1(j) *x2 (h) );
end
end
y (k) =suml ;
suml=0;
k=k+l;
end
subplot (311) ; stem (x1 ) ;
title ('first signal' :
subplot (312) ;stem (x2) ;
title( ' second signal ');
subplot (313) ;stem (y) ;
title('convoluted signal'):

first signal
4

0.5 1 1.5 2.5 3.5 4 4.5

6
second signal

0.5 1 1.5 2 25 3.5 4.5

30
convoluted signal

20

10

4
%Name:KJahnavi Sree
%Secti on : ECE-B
%RO11 Number:22A91AC424
%Date:04-02-2025
clc;
clear al1;
close all;
al = imread('cameraman.tif');
a = im2double(a1);
b= imnnise(a. 'gaussian'):
[m,n] = size(a) ;
% creating an emty array
C = zeros (m,n);
for i - 2:m-1
for j = 2:n-1
c(i,j) = 1/9*sun(sum(b (i-1:i+1, j-1:j+1)));
end
end
subplot(311):
imshow(a);title('original image'):
subplot(312);
imshuw(b);title(' imaye wi th yaussian nus ie');
subplot(313):
imshow(c);title('airthmetic mean filter output');
k = psnr(a, c):

original image

im age with gaussian nosie

airthmetic mean fil ter output

You might also like