Lec 4 Noise Construction Software engineering.pdf

FahadAbdullah89 4 views 16 slides Jun 30, 2024
Slide 1
Slide 1 of 16
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16

About This Presentation

DIP


Slide Content

Noise Construction
Instructor: Azka Mir

Noise
▪Any unwanted interference that degrades the image.

Noise Models

Example
Images with and without noise

Noise Models

Types of Noise
Models

Effects of
Different Noise
Models

Gaussian Noise
Model

Gaussian Noise
Model

Impulse Valued/
Salt & Pepper
Noise Model

Salt & Pepper
Noise Model

When does a
certain noise
occur?

MATLAB
IMPLEMENTATION

Gaussian
image = double(img);
StandardDeviation = 0.1;
Random_image= StandardDeviation * rand(size(image));
noisy_image = image + random_image;
noisy_image = max(0, min(noisy_image, 1)); % Optional step to
clip the values to the range
imshow(noisy_image);

Salt & Pepper
▪image = double(img);
▪probability = 0.05;
▪Random_image= rand(size(image));
▪noisy_image = image;
▪noisy_image(Random_image < prob/2) = 0; % Pepper noise
▪noisy_image(Random_image > 1 - prob/2) = 1; % Salt noise
▪imshow(noisy_image);

THE END
Tags