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

Paddy Crop

The document reports on a brain storming session where an image was corrupted with speckle noise and then processed using 3x3 and 5x5 averaging filters. The results of the filtering are displayed alongside the original and noisy images. The report is submitted by Vivek G 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)
13 views3 pages

Paddy Crop

The document reports on a brain storming session where an image was corrupted with speckle noise and then processed using 3x3 and 5x5 averaging filters. The results of the filtering are displayed alongside the original and noisy images. The report is submitted by Vivek G 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 NAGARA–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

VIVEK G T
USN: 22ECE414

DEPARTMENT OF ELECTRONICS AND COMMUNICATION


ENGINEERING
BGS INSTITUTE OF TECHNOLOGY
B.G. NAGARA, KARNATAKA – 571448, INDIA
AUGUST-2024
Read an image and then corrupt it with speckle noise. Then, apply an
averaging filter of size 3*3 and 5*5 matrix to this corrupted image.
Comment on the result.
VIVEK G T
22ECE414
‘B’ SECTION
PROGRAM
CLC;
clear all;
close all;

% Load the image


img = imread("C:\VIVEK\Colonia_test_3_-_4.jpg"); % Replace with your
image path
img = im2double(img); % Convert to double precision for computation

% Add speckle noise


noisy_img = imnoise(img, 'speckle', 0.04); % Add speckle noise with
variance 0.04

% Create averaging filters


avg_filter_3x3 = fspecial('average', [3 3]); % 3x3 averaging filter
avg_filter_5x5 = fspecial('average', [5 5]); % 5x5 averaging filter

% Apply filters
smoothed_img_3x3 = imfilter(noisy_img, avg_filter_3x3, 'replicate'); %
3x3 filter
smoothed_img_5x5 = imfilter(noisy_img, avg_filter_5x5, 'replicate'); %
5x5 filter

% Display results
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_img_3x3), title('After 3x3 Averaging
Filter');
subplot(2, 2, 4), imshow(smoothed_img_5x5), title('After 5x5 Averaging
Filter');subplot(1,3,1), imshow(r), title('Original Image');
subplot(1,3,2), imshow(slicedImage), title('Without Background
Preservation');
subplot(1,3,3), imshow(preservedSlicedImage), title('With Background
Preservation');

OUTPUT

NAME

SIGNATURE

You might also like