0% found this document useful (0 votes)
7 views3 pages

Honnesha Matlab Final1

The document outlines a brain storming session report on the process of corrupting an image with speckle noise and applying averaging filters of sizes 3x3 and 5x5. It includes a program that demonstrates reading an image, adding noise, and smoothing the image with filters, along with instructions for displaying the results. The report is submitted by Honnesha Y T from the Department of Electronics and Communication Engineering at Adichunchanagiri University.

Uploaded by

honneshayt79969
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)
7 views3 pages

Honnesha Matlab Final1

The document outlines a brain storming session report on the process of corrupting an image with speckle noise and applying averaging filters of sizes 3x3 and 5x5. It includes a program that demonstrates reading an image, adding noise, and smoothing the image with filters, along with instructions for displaying the results. The report is submitted by Honnesha Y T from the Department of Electronics and Communication Engineering at Adichunchanagiri University.

Uploaded by

honneshayt79969
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/ 3

ADICHUNCHANAGIRI UNIVERSITY

B.G NAGAR -MANDYA

Brain Storming Session Report


on
“READ AN IMAGE AND THEN CORRUPT THE IMAGE BY SPECKLE
NOISE. THEN APPLY AN AVERAGING FILTER OF SIZE 3*3 AND 5*5
MATRIX TO THIS CORRUPTED IMAGE. COMMENT ON THE
RESULT”

Submitted by :
HONNESHA Y T
USN : 22ECE407

DEPARTMENT OF ELECTRONICS AND COMMUNICATION


ENGINEERING
BGS INSTITUTE OF TECHNOLOGY
B.G. NAGARA, MANDYA – 571448
2024–25
Read an image and then corrupt the image by speckle noise. Then apply an averaging
filter of size 3*3 and 5*5 matrix to this corrupted image. Comment on the result

PROGRAM:

% Read the image from the C drive


img = imread("C:\Users\honne\Desktop\honna.jpg"); % your image path
img = double(rgb2gray(img)) / 255; % Convert to grayscale and normalize (im2double
equivalent)
% Manually add speckle noise
variance = 0.04; % Variance of the speckle noise
noise = sqrt(variance) * randn(size(img)); % Generate Gaussian noise
noisy_img = img + img .* noise; % Add speckle noise (multiplicative noise)
% Define 3x3 averaging filter manually
filter_3x3 = (1/9) * ones(3, 3); % 3x3 filter
smoothed_3x3 = conv2(noisy_img, filter_3x3, 'same'); % Apply the 3x3 filter
% Define 5x5 averaging filter manually
filter_5x5 = (1/25) * ones(5, 5); % 5x5 filter
smoothed_5x5 = conv2(noisy_img, filter_5x5, 'same'); % Apply the 5x5 filter
% Display results
figure;
subplot(2, 2, 1);
imshow(img);
title('Original Image');
subplot(2, 2, 2);
imshow(noisy_img);
title('Image with Speckle Noise');
subplot(2, 2, 3);
imshow(smoothed_3x3);
title('Smoothed with 3x3 Filter');
subplot(2, 2, 4);
imshow(smoothed_5x5);
title('Smoothed with 5x5 Filter');

OUTPUT:

NAME :

SIGNATURE :

You might also like