Cleari: Title (' Second Signal ')
Cleari: Title (' Second Signal ')
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
6
second signal
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