SlideShare a Scribd company logo
1 of 52
COMPUTER GRAPHICS & IMAGE PROCESSING
COM2304
Intensity Transformation and Spatial Filtering – I
Intensity Transformation and Image Noise
K.A.S.H.Kulathilake
B.Sc. (Hons) IT (SLIIT), MCS (UCSC), M.Phil (UOM), SEDA(UK)
Rajarata University of Sri Lanka
Faculty of Applied Sciences
Department of Physical Sciences
Learning Outcomes
• At the end of this lecture, you should be able
to;
– describe spatial domain of the digital image.
– recognize the image enhancement techniques.
– describe and apply the concept of intensity
transformation.
– express histograms and histogram processing.
– describe image noise.
– characterize the types of Noise.
– describe concept of image restoration.
Spatial Domain
• The plain contains the pixels of an image.
• Spatial domain image processing techniques
operate directly on the pixels of an image.
• Generally, these techniques are computationally
more efficient and require less processing
resources to implement.
• The spatial domain process can be express as:
G(x, y) = T [ f(x,y)]
Where, f(x, y) is the input image, g(x, y) is the output
image, T is an operator on f defined over
neighborhood of point (x, y)
Spatial Domain (cont….)
The principle
approach in
defining a
neighborhood
about a point (x,y)
is to use a square
or rectangular sub
image area
centered at (x,y)
Image Enhancement
• It is a process of manipulating an image so
that the result is more suitable than the
original for specific application.
• Enhancement techniques are problem
oriented.
Intensity Transformation
• Intensity transformation can express as:
s= T(r)
Where transformation T maps a pixel value r into a
pixel value s.
The values of pixels before processing is denoted as r
and after s.
• Image enhancement can be done through gray level
transformations and there are three basic gray level
transformations.
– Linear
– Logarithmic
– Power – law
Linear transformation
• It includes simple identity and negative
transformation.
– Identity transformation
g(x,y) = f(x,y)
Linear transformation (cont…)
• Image Negetives
– The negative of an image with gray
levels in the range, [0, L-1] is
obtained by using the negative
transformation given by;
s =(L-1)-r
– Reversing the intensity levels of an
image in this manner produces a
equivalent of photographic negative.
– This type of processing is
particularly suitable for enhancing
white or gray detail embedded in
dark regions of an image, especially
when the black areas are dominant
in size.
Linear transformation (cont…)
Log Transformation
• Logarithmic transformation further contains two
type of transformation.
– Log transformation
– Inverse log transformation.
• The general form of log transformation is
expressed using the equation given below;
s =c log (1+r);
where c is a constant, and it is assumed that r>=0.
Log Transformation (cont…)
• This transformation maps a narrow range of
low gray-level values in the input image into a
wider range of output levels.
• We use this type of transformation to expand
the values of dark pixels in an image while
compressing the higher level values.
• The opposite is true of the inverse log
transformation.
Ex: Fourier spectrum
Log Transformation (cont…)
Input Image Log Transformed Image
Power-Law (Gamma) Transformation
• The power law transformations have the basic
form;
s = c rγ
where c and γ are positive constants.
• As in the case of log transformation, power
law curves with fractional values of γ map
narrow range of dark input values into a wider
range of output values
Power-Law (Gamma) Transformation
(Cont…)
• A variety of devices used for image capture,
printing and image display respond according to
the power law.
• By convention, the exponent in the power law
equation is referred to as gamma.
• The process used to correct this power-law
response phenomenon is called gamma
correction.
• Gamma correction is important if displaying an
image accurately on a computer screen of is
concern.
Power-Law (Gamma) Transformation
(Cont…)
• Images that are not corrected properly can
look either bleached out, or what is more
likely, too dark.
• Trying to reproduce colors accurately also
requires some knowledge of gamma
correction because varying the values of
gamma correction changes not only
brightness, but also the ratio of red to green
to blue.
Power-Law (Gamma) Transformation
(Cont…)
(A) Areal image and (B)-
(D) results of applying the
transformation in power
law transformation with
c=1 and γ=3.0, 4.0,
5.0 respectively
Intensity Transformation All in One
Piece wise Linear Transformation
Functions
• Contrast Stretching
– Low contrast images can results from poor
illumination, lack of dynamic range in the imaging
sensor, or even wrong setting of a lens aperture
during image acquisition.
– The idea behind contrast stretching is to increase
the dynamic range of the gray levels in the image
being processed.
Piece wise Linear Transformation
Functions (Cont…)
the location of
points (r1, s1) and
(r2,s2) control the
shape of the
transformation
function
If r1 = r2, s1=0 and
s2 = L-1, the
transformation
becomes a
thresholding
function that
creates a binary
image.
Result of contrast
stretching obtained
by setting (r1, s1) =
(rmin, 0) and (r2,s2) =
(rmax, L-1) where
rmin and rmax
denotes the min
and max intensity
levels in image
Piece wise Linear Transformation
Functions (Cont…)
• Gray Level Slicing
– Highlighting a specific range of gray levels in an image
often is desired.
– One approach for gray level slicing is to display a high
value for all gray levels in the range of interest and low
value for all other gray levels. This produces a binary
image.
– Another approach for gray level slicing is brightness
the desired range of gray levels but preserves the
background and gray level tonalities in the image
unchanged.
Piece wise Linear Transformation
Functions (Cont…)
Result of slicing
Result of
transformation
Histogram Processing
• An intensity histogram is a graph showing the number
of pixels in an image at each different intensity value
found in that image.
• More simply, histogram is a graphical representation of
the intensity distribution of an image.
• For an 8 bit gray scale image there are 256 different
possible intensities, and so the histogram will
graphically display 256 numbers showing the
distribution of pixels amongst those gray scale values.
• It is common practice to normalized a histogram by
dividing each of its components by the total number of
pixels in the image.
Histogram Processing (cont…)
Dark Light Low contrast High contrast
Histogram Equalization
• It is a method that improves the contrast in an
image, in order to stretch out the intensity
range.
• Equalization implies mapping one distribution
(the given histogram) to another distribution
(a wider and more uniform distribution of
intensity values) so the intensity values are
spread over the whole range.
Histogram Equalization (Cont…)
Contrast Stretching
• Find the minimum and maximum values of
the pixels in an image, and then convert pixels
from the source to destination like ;
• E.g. The image is 8bpp, so levels of gray are
256.
Difference between Contrast
Stretching and Histogram Equalization
• Contrast Stretching
Difference between Contrast
Stretching and Histogram Equalization
(cont…)
• Histogram Equalization
Image Noise
• Noise is a visual distortion in digital images.
• It causes visual degradations in digital images.
• Even though noise is unavoidable, it can become
so small relative to the signal that it appears to be
nonexistent.
• The signal to noise ratio (SNR) is a useful and
universal way of comparing the relative amounts
of signal and noise for any electronic system; high
ratios will have very little visible noise whereas
the opposite is true for low ratios.
Image Noise (Cont…)
Increasing of SNR
Image Noise (Cont…)
• Noisy image can be modelled as follows:
where f(x, y) is the original image pixel, η(x, y)
is the noise term and g(x, y) is the resulting
noisy pixel.
),(),(),( yxyxfyxg 
Image Noise (Cont…)
• Source of image noise
– Error occurs in image signal :while an image is being
sent electronically from one place to another.
– Exposure time : Long exposures can introduce static,
which can also be a cause of digital noise.
– ISO factor: ISO number indicates how quickly a
camera’s sensor absorbs light, higher ISO produce
progressively more noise.
– Size of the sensor
– Pixel density
– Shadows
Types of Noise
• The "distribution" of noise is based
on probability.
• Hence the model is called a
Probability Density Function (PDF).
• Noise types are
– Gaussian Noise
• Most common pattern
– Rayleigh Noise
– Gamma (Erlang) Noise
– Exponential Noise
– Uniform Noise
– Impulse Noise
• salt and pepper
Gaussian Rayleigh
Erlang Exponential
Uniform
Impulse
Types of Noise (Cont…)
• Gaussian Noise:
– Gaussian noise arises in an
image due to factors such
as electronic circuited
noise and sensor noise due
to poor illumination and/
or high temperature.
– Gaussian noise is noise
that has a random and
normal distribution of
instantaneous amplitudes
over time.
Types of Noise (Cont…)
2 =1
X Y
128 128 128 128 128 128 128 128
128 128 128 128 128 128 128 128
128 128 128 128 128 128 128 128
128 128 128 128 128 128 128 128
128 128 128 128 128 128 128 128
128 128 128 128 128 128 128 128
128 128 128 128 128 128 128 128
128 128 128 128 128 128 128 128
128 128 129 127 129 126 126 128
126 128 128 129 129 128 128 127
128 128 128 129 129 127 127 128
128 129 127 126 129 129 129 128
127 127 128 127 129 127 129 128
129 130 127 129 127 129 130 128
129 128 129 128 128 128 129 129
128 128 130 129 128 127 127 126
Types of Noise (Cont…)
• Rayleigh Noise:
– This type of noise usually occurs in range imaging.
• Gamma (Erlang) Noise and Exponential
Noise:
– This can be found in laser imaging.
• Uniform Noise:
– This is not often encountered in real-world
imaging systems, but provides a useful
comparison with Gaussian noise.
Types of Noise (Cont…)
• Impulse Noise:
– Impulse noise is very common in digital images.
– Impulse noise is always independent and
uncorrelated to the image pixels.
– Unlike Gaussian noise, for an impulse noise corrupted
image all the image pixels are not noisy.
– Salt impulse noise:
• assumed to have the brightest gray level.
• Appears as white spot in the image
– Pepper impulse noise:
• darkest value of the gray level in the image.
• Appears as black spot in the image
Types of Noise (Cont…)
WyHx
yxf
yxg







1,1
),(
0
255
),(
Definition
Each pixel in an image has the probability of p/2 (0<p<1) being
contaminated by either a white dot (salt) or a black dot (pepper)
with probability of p/2
with probability of p/2
with probability of 1-p
noisy pixels
clean pixels
f(x,y): noise-free image, g(x,y): noisy image
Note: in some applications, noisy pixels are not simply black or white,
which makes the impulse noise removal problem more difficult
Types of Noise (Cont…)
P=0.1
128 128 128 128 128 128 128 128 128 128
128 128 128 128 128 128 128 128 128 128
128 128 128 128 128 128 128 128 128 128
128 128 128 128 128 128 128 128 128 128
128 128 128 128 128 128 128 128 128 128
128 128 128 128 128 128 128 128 128 128
128 128 128 128 128 128 128 128 128 128
128 128 128 128 128 128 128 128 128 128
128 128 128 128 128 128 128 128 128 128
128 128 128 128 128 128 128 128 128 128
X
128 128 255 0 128 128 128 128 128 128
128 128 128 128 0 128 128 128 128 0
128 128 128 128 128 128 128 128 128 128
128 128 0 128 128 128 128 128 128 128
128 128 128 128 128 128 128 128 128 128
128 128 128 128 128 128 128 128 128 128
128 128 128 128 128 128 128 128 128 128
0 128 128 128 128 255 128 128 128 128
128 128 128 128 128 128 128 128 128 255
128 128 128 128 128 128 128 255 128 128
Y
Noise level p=0.1 means that approximately 10% of pixels are contaminated by
salt or pepper noise (highlighted by red color)
Noise Example
The test pattern to the right is ideal
for demonstrating the addition of
noise
The following slides will show the
result of adding noise based on
various models to this image
Noise Example (Cont…)
Noise Example (Cont…)
Noise Example (Cont…)
• With the exception of slightly different overall
intensity, it is difficult to differentiate visually
between the first five image of previous
example, even though their histograms are
significantly different.
• Salt and pepper noise is the only that is
visually indicative of the type of noise causing
the degradation.
Periodic Noise
• Unlike the types of noise we discussed
previously, periodic noise depends on the
spatial coordinates.
• It arises typically from electrical or
electromechanical interference during the
image acquisition.
• It can be reduced through frequency domain
filtering.
Periodic Noise (Cont…)
Image Restoration
• There are some artifacts which directly effect to
the degradation of image. ex: Noise
• The principle goal of restoration techniques is to
improve an image in some predefined sense.
• Unlike image enhancement, most part in image
restoration is an objective process.
• Restoration attempts to recover an image that
has been degraded by using the priory knowledge
of the degradation phenomenon.
Image Restoration (Cont…)
• Restoration techniques are oriented toward
modeling the degradation and applying the
inverse process in order to recover the original
image.
• This approach usually involves formulating a
criterion of goodness that will yield an optimal
estimate of the desired result.
• Ex: contrast stretching is an image enhancement
technique and it is focused to view purpose
whereas; removing image blur using deblurring
technique is considered as image restoration.
Image Restoration (Cont…)
Contrast Stretching
Image Deblurring
Image Restoration (Cont…)
g( x, y) = h( x, y) * f( x, y) + Ƞ( x, y)
Given g(x,y), some knowledge about the degradation function H,
and some knowledge about the additive noise term Ƞ(x,y), the
objective of restoration is to obtain an estimate f’(x,y) of the
original image.
Reference
• Chapter 03 and Chapter 05 of Gonzalez, R.C.,
Woods, R.E., Digital Image Processing, 3rd ed.
Addison-Wesley Pub.
Learning Outcomes Revisit
• Now, you should be able to;
– describe spatial domain of the digital image.
– recognize the image enhancement techniques.
– describe and apply the concept of intensity
transformation.
– express histograms and histogram processing.
– describe image noise.
– characterize the types of Noise.
– describe concept of image restoration.
QUESTIONS ?
Next Lecture – Intensity Transformation and Spatial Filtering II

More Related Content

What's hot

Chapter 6 color image processing
Chapter 6 color image processingChapter 6 color image processing
Chapter 6 color image processingasodariyabhavesh
 
Gray level transformation
Gray level transformationGray level transformation
Gray level transformationchauhankapil
 
Thresholding.ppt
Thresholding.pptThresholding.ppt
Thresholding.pptshankar64
 
Image processing second unit Notes
Image processing second unit NotesImage processing second unit Notes
Image processing second unit NotesAAKANKSHA JAIN
 
Image processing, Noise, Noise Removal filters
Image processing, Noise, Noise Removal filtersImage processing, Noise, Noise Removal filters
Image processing, Noise, Noise Removal filtersKuppusamy P
 
Digital Image restoration
Digital Image restorationDigital Image restoration
Digital Image restorationMd Shabir Alam
 
08 frequency domain filtering DIP
08 frequency domain filtering DIP08 frequency domain filtering DIP
08 frequency domain filtering DIPbabak danyal
 
HSI MODEL IN COLOR IMAGE PROCESSING
HSI MODEL IN COLOR IMAGE PROCESSING HSI MODEL IN COLOR IMAGE PROCESSING
HSI MODEL IN COLOR IMAGE PROCESSING anam singla
 
Image Restoration and Reconstruction in Digital Image Processing
Image Restoration and Reconstruction in Digital Image ProcessingImage Restoration and Reconstruction in Digital Image Processing
Image Restoration and Reconstruction in Digital Image ProcessingSadia Zafar
 
4.intensity transformations
4.intensity transformations4.intensity transformations
4.intensity transformationsYahya Alkhaldi
 
1.arithmetic & logical operations
1.arithmetic & logical operations1.arithmetic & logical operations
1.arithmetic & logical operationsmukesh bhardwaj
 
Noise filtering
Noise filteringNoise filtering
Noise filteringAlaa Ahmed
 
Edge Detection and Segmentation
Edge Detection and SegmentationEdge Detection and Segmentation
Edge Detection and SegmentationA B Shinde
 
Smoothing in Digital Image Processing
Smoothing in Digital Image ProcessingSmoothing in Digital Image Processing
Smoothing in Digital Image ProcessingPallavi Agarwal
 

What's hot (20)

Psuedo color
Psuedo colorPsuedo color
Psuedo color
 
Chapter 6 color image processing
Chapter 6 color image processingChapter 6 color image processing
Chapter 6 color image processing
 
Digital Image Processing
Digital Image ProcessingDigital Image Processing
Digital Image Processing
 
Gray level transformation
Gray level transformationGray level transformation
Gray level transformation
 
IMAGE SEGMENTATION.
IMAGE SEGMENTATION.IMAGE SEGMENTATION.
IMAGE SEGMENTATION.
 
Thresholding.ppt
Thresholding.pptThresholding.ppt
Thresholding.ppt
 
image enhancement
 image enhancement image enhancement
image enhancement
 
Image Restoration
Image RestorationImage Restoration
Image Restoration
 
Image processing second unit Notes
Image processing second unit NotesImage processing second unit Notes
Image processing second unit Notes
 
Image processing, Noise, Noise Removal filters
Image processing, Noise, Noise Removal filtersImage processing, Noise, Noise Removal filters
Image processing, Noise, Noise Removal filters
 
Digital Image restoration
Digital Image restorationDigital Image restoration
Digital Image restoration
 
Digital image processing
Digital image processing  Digital image processing
Digital image processing
 
08 frequency domain filtering DIP
08 frequency domain filtering DIP08 frequency domain filtering DIP
08 frequency domain filtering DIP
 
HSI MODEL IN COLOR IMAGE PROCESSING
HSI MODEL IN COLOR IMAGE PROCESSING HSI MODEL IN COLOR IMAGE PROCESSING
HSI MODEL IN COLOR IMAGE PROCESSING
 
Image Restoration and Reconstruction in Digital Image Processing
Image Restoration and Reconstruction in Digital Image ProcessingImage Restoration and Reconstruction in Digital Image Processing
Image Restoration and Reconstruction in Digital Image Processing
 
4.intensity transformations
4.intensity transformations4.intensity transformations
4.intensity transformations
 
1.arithmetic & logical operations
1.arithmetic & logical operations1.arithmetic & logical operations
1.arithmetic & logical operations
 
Noise filtering
Noise filteringNoise filtering
Noise filtering
 
Edge Detection and Segmentation
Edge Detection and SegmentationEdge Detection and Segmentation
Edge Detection and Segmentation
 
Smoothing in Digital Image Processing
Smoothing in Digital Image ProcessingSmoothing in Digital Image Processing
Smoothing in Digital Image Processing
 

Similar to COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transformation and Image Noise)

Image enhancement in the spatial domain1
Image enhancement in the spatial domain1Image enhancement in the spatial domain1
Image enhancement in the spatial domain1shabanam tamboli
 
Image Enhancement in the Spatial Domain1.ppt
Image Enhancement in the Spatial Domain1.pptImage Enhancement in the Spatial Domain1.ppt
Image Enhancement in the Spatial Domain1.pptShabanamTamboli1
 
Image enhancement
Image enhancementImage enhancement
Image enhancementKuppusamy P
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial DomainDEEPASHRI HK
 
Image enhancement
Image enhancementImage enhancement
Image enhancementAyaelshiwi
 
Digital Image Processing_ ch2 enhancement spatial-domain
Digital Image Processing_ ch2 enhancement spatial-domainDigital Image Processing_ ch2 enhancement spatial-domain
Digital Image Processing_ ch2 enhancement spatial-domainMalik obeisat
 
Unit 2. Image Enhancement in Spatial Domain.pptx
Unit 2. Image Enhancement in Spatial Domain.pptxUnit 2. Image Enhancement in Spatial Domain.pptx
Unit 2. Image Enhancement in Spatial Domain.pptxswagatkarve
 
Image Enhancement in the Spatial Domain U2.ppt
Image Enhancement in the Spatial Domain U2.pptImage Enhancement in the Spatial Domain U2.ppt
Image Enhancement in the Spatial Domain U2.pptssuser7ec6af
 
project presentation-90-MCS-200003.pptx
project presentation-90-MCS-200003.pptxproject presentation-90-MCS-200003.pptx
project presentation-90-MCS-200003.pptxNiladriBhattacharjee10
 
Image Enhancement in the Spatial Domain.pdf
Image Enhancement in the Spatial Domain.pdfImage Enhancement in the Spatial Domain.pdf
Image Enhancement in the Spatial Domain.pdfkamaluddinnstu
 
Image enhancement lecture
Image enhancement lectureImage enhancement lecture
Image enhancement lectureISRAR HUSSAIN
 
Image_processing_unit2_SPPU_Syllabus.pptx
Image_processing_unit2_SPPU_Syllabus.pptxImage_processing_unit2_SPPU_Syllabus.pptx
Image_processing_unit2_SPPU_Syllabus.pptxMayuri Narkhede
 
Image Enhancement - Point Processing
Image Enhancement - Point ProcessingImage Enhancement - Point Processing
Image Enhancement - Point ProcessingGayathri31093
 
Image enhancement ppt nal2
Image enhancement ppt nal2Image enhancement ppt nal2
Image enhancement ppt nal2Surabhi Ks
 

Similar to COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transformation and Image Noise) (20)

Image enhancement in the spatial domain1
Image enhancement in the spatial domain1Image enhancement in the spatial domain1
Image enhancement in the spatial domain1
 
Image Enhancement in the Spatial Domain1.ppt
Image Enhancement in the Spatial Domain1.pptImage Enhancement in the Spatial Domain1.ppt
Image Enhancement in the Spatial Domain1.ppt
 
Chap5 imange enhancemet
Chap5 imange enhancemetChap5 imange enhancemet
Chap5 imange enhancemet
 
Image enhancement
Image enhancementImage enhancement
Image enhancement
 
DIP Lecture 7-9.pdf
DIP Lecture 7-9.pdfDIP Lecture 7-9.pdf
DIP Lecture 7-9.pdf
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial Domain
 
Digital Image Fundamentals - II
Digital Image Fundamentals - IIDigital Image Fundamentals - II
Digital Image Fundamentals - II
 
Module 2
Module 2Module 2
Module 2
 
Image enhancement
Image enhancementImage enhancement
Image enhancement
 
Digital Image Processing_ ch2 enhancement spatial-domain
Digital Image Processing_ ch2 enhancement spatial-domainDigital Image Processing_ ch2 enhancement spatial-domain
Digital Image Processing_ ch2 enhancement spatial-domain
 
h.pdf
h.pdfh.pdf
h.pdf
 
Unit 2. Image Enhancement in Spatial Domain.pptx
Unit 2. Image Enhancement in Spatial Domain.pptxUnit 2. Image Enhancement in Spatial Domain.pptx
Unit 2. Image Enhancement in Spatial Domain.pptx
 
Image Enhancement in the Spatial Domain U2.ppt
Image Enhancement in the Spatial Domain U2.pptImage Enhancement in the Spatial Domain U2.ppt
Image Enhancement in the Spatial Domain U2.ppt
 
Image enhancement
Image enhancementImage enhancement
Image enhancement
 
project presentation-90-MCS-200003.pptx
project presentation-90-MCS-200003.pptxproject presentation-90-MCS-200003.pptx
project presentation-90-MCS-200003.pptx
 
Image Enhancement in the Spatial Domain.pdf
Image Enhancement in the Spatial Domain.pdfImage Enhancement in the Spatial Domain.pdf
Image Enhancement in the Spatial Domain.pdf
 
Image enhancement lecture
Image enhancement lectureImage enhancement lecture
Image enhancement lecture
 
Image_processing_unit2_SPPU_Syllabus.pptx
Image_processing_unit2_SPPU_Syllabus.pptxImage_processing_unit2_SPPU_Syllabus.pptx
Image_processing_unit2_SPPU_Syllabus.pptx
 
Image Enhancement - Point Processing
Image Enhancement - Point ProcessingImage Enhancement - Point Processing
Image Enhancement - Point Processing
 
Image enhancement ppt nal2
Image enhancement ppt nal2Image enhancement ppt nal2
Image enhancement ppt nal2
 

More from Hemantha Kulathilake

NLP_KASHK:Parsing with Context-Free Grammar
NLP_KASHK:Parsing with Context-Free Grammar NLP_KASHK:Parsing with Context-Free Grammar
NLP_KASHK:Parsing with Context-Free Grammar Hemantha Kulathilake
 
NLP_KASHK:Context-Free Grammar for English
NLP_KASHK:Context-Free Grammar for EnglishNLP_KASHK:Context-Free Grammar for English
NLP_KASHK:Context-Free Grammar for EnglishHemantha Kulathilake
 
NLP_KASHK:Evaluating Language Model
NLP_KASHK:Evaluating Language ModelNLP_KASHK:Evaluating Language Model
NLP_KASHK:Evaluating Language ModelHemantha Kulathilake
 
NLP_KASHK:Finite-State Morphological Parsing
NLP_KASHK:Finite-State Morphological ParsingNLP_KASHK:Finite-State Morphological Parsing
NLP_KASHK:Finite-State Morphological ParsingHemantha Kulathilake
 
COM1407: Structures, Unions & Dynamic Memory Allocation
COM1407: Structures, Unions & Dynamic Memory Allocation COM1407: Structures, Unions & Dynamic Memory Allocation
COM1407: Structures, Unions & Dynamic Memory Allocation Hemantha Kulathilake
 

More from Hemantha Kulathilake (20)

NLP_KASHK:Parsing with Context-Free Grammar
NLP_KASHK:Parsing with Context-Free Grammar NLP_KASHK:Parsing with Context-Free Grammar
NLP_KASHK:Parsing with Context-Free Grammar
 
NLP_KASHK:Context-Free Grammar for English
NLP_KASHK:Context-Free Grammar for EnglishNLP_KASHK:Context-Free Grammar for English
NLP_KASHK:Context-Free Grammar for English
 
NLP_KASHK:POS Tagging
NLP_KASHK:POS TaggingNLP_KASHK:POS Tagging
NLP_KASHK:POS Tagging
 
NLP_KASHK:Markov Models
NLP_KASHK:Markov ModelsNLP_KASHK:Markov Models
NLP_KASHK:Markov Models
 
NLP_KASHK:Smoothing N-gram Models
NLP_KASHK:Smoothing N-gram ModelsNLP_KASHK:Smoothing N-gram Models
NLP_KASHK:Smoothing N-gram Models
 
NLP_KASHK:Evaluating Language Model
NLP_KASHK:Evaluating Language ModelNLP_KASHK:Evaluating Language Model
NLP_KASHK:Evaluating Language Model
 
NLP_KASHK:N-Grams
NLP_KASHK:N-GramsNLP_KASHK:N-Grams
NLP_KASHK:N-Grams
 
NLP_KASHK:Minimum Edit Distance
NLP_KASHK:Minimum Edit DistanceNLP_KASHK:Minimum Edit Distance
NLP_KASHK:Minimum Edit Distance
 
NLP_KASHK:Finite-State Morphological Parsing
NLP_KASHK:Finite-State Morphological ParsingNLP_KASHK:Finite-State Morphological Parsing
NLP_KASHK:Finite-State Morphological Parsing
 
NLP_KASHK:Morphology
NLP_KASHK:MorphologyNLP_KASHK:Morphology
NLP_KASHK:Morphology
 
NLP_KASHK:Text Normalization
NLP_KASHK:Text NormalizationNLP_KASHK:Text Normalization
NLP_KASHK:Text Normalization
 
NLP_KASHK:Finite-State Automata
NLP_KASHK:Finite-State AutomataNLP_KASHK:Finite-State Automata
NLP_KASHK:Finite-State Automata
 
NLP_KASHK:Regular Expressions
NLP_KASHK:Regular Expressions NLP_KASHK:Regular Expressions
NLP_KASHK:Regular Expressions
 
NLP_KASHK: Introduction
NLP_KASHK: Introduction NLP_KASHK: Introduction
NLP_KASHK: Introduction
 
COM1407: File Processing
COM1407: File Processing COM1407: File Processing
COM1407: File Processing
 
COm1407: Character & Strings
COm1407: Character & StringsCOm1407: Character & Strings
COm1407: Character & Strings
 
COM1407: Structures, Unions & Dynamic Memory Allocation
COM1407: Structures, Unions & Dynamic Memory Allocation COM1407: Structures, Unions & Dynamic Memory Allocation
COM1407: Structures, Unions & Dynamic Memory Allocation
 
COM1407: Input/ Output Functions
COM1407: Input/ Output FunctionsCOM1407: Input/ Output Functions
COM1407: Input/ Output Functions
 
COM1407: Working with Pointers
COM1407: Working with PointersCOM1407: Working with Pointers
COM1407: Working with Pointers
 
COM1407: Arrays
COM1407: ArraysCOM1407: Arrays
COM1407: Arrays
 

Recently uploaded

Recombination DNA Technology (Nucleic Acid Hybridization )
Recombination DNA Technology (Nucleic Acid Hybridization )Recombination DNA Technology (Nucleic Acid Hybridization )
Recombination DNA Technology (Nucleic Acid Hybridization )aarthirajkumar25
 
Spermiogenesis or Spermateleosis or metamorphosis of spermatid
Spermiogenesis or Spermateleosis or metamorphosis of spermatidSpermiogenesis or Spermateleosis or metamorphosis of spermatid
Spermiogenesis or Spermateleosis or metamorphosis of spermatidSarthak Sekhar Mondal
 
Biopesticide (2).pptx .This slides helps to know the different types of biop...
Biopesticide (2).pptx  .This slides helps to know the different types of biop...Biopesticide (2).pptx  .This slides helps to know the different types of biop...
Biopesticide (2).pptx .This slides helps to know the different types of biop...RohitNehra6
 
Isotopic evidence of long-lived volcanism on Io
Isotopic evidence of long-lived volcanism on IoIsotopic evidence of long-lived volcanism on Io
Isotopic evidence of long-lived volcanism on IoSérgio Sacani
 
Zoology 4th semester series (krishna).pdf
Zoology 4th semester series (krishna).pdfZoology 4th semester series (krishna).pdf
Zoology 4th semester series (krishna).pdfSumit Kumar yadav
 
Orientation, design and principles of polyhouse
Orientation, design and principles of polyhouseOrientation, design and principles of polyhouse
Orientation, design and principles of polyhousejana861314
 
STERILITY TESTING OF PHARMACEUTICALS ppt by DR.C.P.PRINCE
STERILITY TESTING OF PHARMACEUTICALS ppt by DR.C.P.PRINCESTERILITY TESTING OF PHARMACEUTICALS ppt by DR.C.P.PRINCE
STERILITY TESTING OF PHARMACEUTICALS ppt by DR.C.P.PRINCEPRINCE C P
 
GBSN - Biochemistry (Unit 1)
GBSN - Biochemistry (Unit 1)GBSN - Biochemistry (Unit 1)
GBSN - Biochemistry (Unit 1)Areesha Ahmad
 
Formation of low mass protostars and their circumstellar disks
Formation of low mass protostars and their circumstellar disksFormation of low mass protostars and their circumstellar disks
Formation of low mass protostars and their circumstellar disksSérgio Sacani
 
TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...
TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...
TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...ssifa0344
 
Pests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdfPests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdfPirithiRaju
 
Botany krishna series 2nd semester Only Mcq type questions
Botany krishna series 2nd semester Only Mcq type questionsBotany krishna series 2nd semester Only Mcq type questions
Botany krishna series 2nd semester Only Mcq type questionsSumit Kumar yadav
 
DIFFERENCE IN BACK CROSS AND TEST CROSS
DIFFERENCE IN  BACK CROSS AND TEST CROSSDIFFERENCE IN  BACK CROSS AND TEST CROSS
DIFFERENCE IN BACK CROSS AND TEST CROSSLeenakshiTyagi
 
Chromatin Structure | EUCHROMATIN | HETEROCHROMATIN
Chromatin Structure | EUCHROMATIN | HETEROCHROMATINChromatin Structure | EUCHROMATIN | HETEROCHROMATIN
Chromatin Structure | EUCHROMATIN | HETEROCHROMATINsankalpkumarsahoo174
 
Recombinant DNA technology (Immunological screening)
Recombinant DNA technology (Immunological screening)Recombinant DNA technology (Immunological screening)
Recombinant DNA technology (Immunological screening)PraveenaKalaiselvan1
 
Presentation Vikram Lander by Vedansh Gupta.pptx
Presentation Vikram Lander by Vedansh Gupta.pptxPresentation Vikram Lander by Vedansh Gupta.pptx
Presentation Vikram Lander by Vedansh Gupta.pptxgindu3009
 
Botany 4th semester file By Sumit Kumar yadav.pdf
Botany 4th semester file By Sumit Kumar yadav.pdfBotany 4th semester file By Sumit Kumar yadav.pdf
Botany 4th semester file By Sumit Kumar yadav.pdfSumit Kumar yadav
 
Broad bean, Lima Bean, Jack bean, Ullucus.pptx
Broad bean, Lima Bean, Jack bean, Ullucus.pptxBroad bean, Lima Bean, Jack bean, Ullucus.pptx
Broad bean, Lima Bean, Jack bean, Ullucus.pptxjana861314
 
Traditional Agroforestry System in India- Shifting Cultivation, Taungya, Home...
Traditional Agroforestry System in India- Shifting Cultivation, Taungya, Home...Traditional Agroforestry System in India- Shifting Cultivation, Taungya, Home...
Traditional Agroforestry System in India- Shifting Cultivation, Taungya, Home...jana861314
 
Unlocking the Potential: Deep dive into ocean of Ceramic Magnets.pptx
Unlocking  the Potential: Deep dive into ocean of Ceramic Magnets.pptxUnlocking  the Potential: Deep dive into ocean of Ceramic Magnets.pptx
Unlocking the Potential: Deep dive into ocean of Ceramic Magnets.pptxanandsmhk
 

Recently uploaded (20)

Recombination DNA Technology (Nucleic Acid Hybridization )
Recombination DNA Technology (Nucleic Acid Hybridization )Recombination DNA Technology (Nucleic Acid Hybridization )
Recombination DNA Technology (Nucleic Acid Hybridization )
 
Spermiogenesis or Spermateleosis or metamorphosis of spermatid
Spermiogenesis or Spermateleosis or metamorphosis of spermatidSpermiogenesis or Spermateleosis or metamorphosis of spermatid
Spermiogenesis or Spermateleosis or metamorphosis of spermatid
 
Biopesticide (2).pptx .This slides helps to know the different types of biop...
Biopesticide (2).pptx  .This slides helps to know the different types of biop...Biopesticide (2).pptx  .This slides helps to know the different types of biop...
Biopesticide (2).pptx .This slides helps to know the different types of biop...
 
Isotopic evidence of long-lived volcanism on Io
Isotopic evidence of long-lived volcanism on IoIsotopic evidence of long-lived volcanism on Io
Isotopic evidence of long-lived volcanism on Io
 
Zoology 4th semester series (krishna).pdf
Zoology 4th semester series (krishna).pdfZoology 4th semester series (krishna).pdf
Zoology 4th semester series (krishna).pdf
 
Orientation, design and principles of polyhouse
Orientation, design and principles of polyhouseOrientation, design and principles of polyhouse
Orientation, design and principles of polyhouse
 
STERILITY TESTING OF PHARMACEUTICALS ppt by DR.C.P.PRINCE
STERILITY TESTING OF PHARMACEUTICALS ppt by DR.C.P.PRINCESTERILITY TESTING OF PHARMACEUTICALS ppt by DR.C.P.PRINCE
STERILITY TESTING OF PHARMACEUTICALS ppt by DR.C.P.PRINCE
 
GBSN - Biochemistry (Unit 1)
GBSN - Biochemistry (Unit 1)GBSN - Biochemistry (Unit 1)
GBSN - Biochemistry (Unit 1)
 
Formation of low mass protostars and their circumstellar disks
Formation of low mass protostars and their circumstellar disksFormation of low mass protostars and their circumstellar disks
Formation of low mass protostars and their circumstellar disks
 
TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...
TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...
TEST BANK For Radiologic Science for Technologists, 12th Edition by Stewart C...
 
Pests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdfPests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdf
 
Botany krishna series 2nd semester Only Mcq type questions
Botany krishna series 2nd semester Only Mcq type questionsBotany krishna series 2nd semester Only Mcq type questions
Botany krishna series 2nd semester Only Mcq type questions
 
DIFFERENCE IN BACK CROSS AND TEST CROSS
DIFFERENCE IN  BACK CROSS AND TEST CROSSDIFFERENCE IN  BACK CROSS AND TEST CROSS
DIFFERENCE IN BACK CROSS AND TEST CROSS
 
Chromatin Structure | EUCHROMATIN | HETEROCHROMATIN
Chromatin Structure | EUCHROMATIN | HETEROCHROMATINChromatin Structure | EUCHROMATIN | HETEROCHROMATIN
Chromatin Structure | EUCHROMATIN | HETEROCHROMATIN
 
Recombinant DNA technology (Immunological screening)
Recombinant DNA technology (Immunological screening)Recombinant DNA technology (Immunological screening)
Recombinant DNA technology (Immunological screening)
 
Presentation Vikram Lander by Vedansh Gupta.pptx
Presentation Vikram Lander by Vedansh Gupta.pptxPresentation Vikram Lander by Vedansh Gupta.pptx
Presentation Vikram Lander by Vedansh Gupta.pptx
 
Botany 4th semester file By Sumit Kumar yadav.pdf
Botany 4th semester file By Sumit Kumar yadav.pdfBotany 4th semester file By Sumit Kumar yadav.pdf
Botany 4th semester file By Sumit Kumar yadav.pdf
 
Broad bean, Lima Bean, Jack bean, Ullucus.pptx
Broad bean, Lima Bean, Jack bean, Ullucus.pptxBroad bean, Lima Bean, Jack bean, Ullucus.pptx
Broad bean, Lima Bean, Jack bean, Ullucus.pptx
 
Traditional Agroforestry System in India- Shifting Cultivation, Taungya, Home...
Traditional Agroforestry System in India- Shifting Cultivation, Taungya, Home...Traditional Agroforestry System in India- Shifting Cultivation, Taungya, Home...
Traditional Agroforestry System in India- Shifting Cultivation, Taungya, Home...
 
Unlocking the Potential: Deep dive into ocean of Ceramic Magnets.pptx
Unlocking  the Potential: Deep dive into ocean of Ceramic Magnets.pptxUnlocking  the Potential: Deep dive into ocean of Ceramic Magnets.pptx
Unlocking the Potential: Deep dive into ocean of Ceramic Magnets.pptx
 

COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transformation and Image Noise)

  • 1. COMPUTER GRAPHICS & IMAGE PROCESSING COM2304 Intensity Transformation and Spatial Filtering – I Intensity Transformation and Image Noise K.A.S.H.Kulathilake B.Sc. (Hons) IT (SLIIT), MCS (UCSC), M.Phil (UOM), SEDA(UK) Rajarata University of Sri Lanka Faculty of Applied Sciences Department of Physical Sciences
  • 2. Learning Outcomes • At the end of this lecture, you should be able to; – describe spatial domain of the digital image. – recognize the image enhancement techniques. – describe and apply the concept of intensity transformation. – express histograms and histogram processing. – describe image noise. – characterize the types of Noise. – describe concept of image restoration.
  • 3. Spatial Domain • The plain contains the pixels of an image. • Spatial domain image processing techniques operate directly on the pixels of an image. • Generally, these techniques are computationally more efficient and require less processing resources to implement. • The spatial domain process can be express as: G(x, y) = T [ f(x,y)] Where, f(x, y) is the input image, g(x, y) is the output image, T is an operator on f defined over neighborhood of point (x, y)
  • 4. Spatial Domain (cont….) The principle approach in defining a neighborhood about a point (x,y) is to use a square or rectangular sub image area centered at (x,y)
  • 5. Image Enhancement • It is a process of manipulating an image so that the result is more suitable than the original for specific application. • Enhancement techniques are problem oriented.
  • 6. Intensity Transformation • Intensity transformation can express as: s= T(r) Where transformation T maps a pixel value r into a pixel value s. The values of pixels before processing is denoted as r and after s. • Image enhancement can be done through gray level transformations and there are three basic gray level transformations. – Linear – Logarithmic – Power – law
  • 7. Linear transformation • It includes simple identity and negative transformation. – Identity transformation g(x,y) = f(x,y)
  • 8. Linear transformation (cont…) • Image Negetives – The negative of an image with gray levels in the range, [0, L-1] is obtained by using the negative transformation given by; s =(L-1)-r – Reversing the intensity levels of an image in this manner produces a equivalent of photographic negative. – This type of processing is particularly suitable for enhancing white or gray detail embedded in dark regions of an image, especially when the black areas are dominant in size.
  • 10. Log Transformation • Logarithmic transformation further contains two type of transformation. – Log transformation – Inverse log transformation. • The general form of log transformation is expressed using the equation given below; s =c log (1+r); where c is a constant, and it is assumed that r>=0.
  • 11. Log Transformation (cont…) • This transformation maps a narrow range of low gray-level values in the input image into a wider range of output levels. • We use this type of transformation to expand the values of dark pixels in an image while compressing the higher level values. • The opposite is true of the inverse log transformation. Ex: Fourier spectrum
  • 12. Log Transformation (cont…) Input Image Log Transformed Image
  • 13. Power-Law (Gamma) Transformation • The power law transformations have the basic form; s = c rγ where c and γ are positive constants. • As in the case of log transformation, power law curves with fractional values of γ map narrow range of dark input values into a wider range of output values
  • 14. Power-Law (Gamma) Transformation (Cont…) • A variety of devices used for image capture, printing and image display respond according to the power law. • By convention, the exponent in the power law equation is referred to as gamma. • The process used to correct this power-law response phenomenon is called gamma correction. • Gamma correction is important if displaying an image accurately on a computer screen of is concern.
  • 15. Power-Law (Gamma) Transformation (Cont…) • Images that are not corrected properly can look either bleached out, or what is more likely, too dark. • Trying to reproduce colors accurately also requires some knowledge of gamma correction because varying the values of gamma correction changes not only brightness, but also the ratio of red to green to blue.
  • 16. Power-Law (Gamma) Transformation (Cont…) (A) Areal image and (B)- (D) results of applying the transformation in power law transformation with c=1 and γ=3.0, 4.0, 5.0 respectively
  • 18. Piece wise Linear Transformation Functions • Contrast Stretching – Low contrast images can results from poor illumination, lack of dynamic range in the imaging sensor, or even wrong setting of a lens aperture during image acquisition. – The idea behind contrast stretching is to increase the dynamic range of the gray levels in the image being processed.
  • 19. Piece wise Linear Transformation Functions (Cont…) the location of points (r1, s1) and (r2,s2) control the shape of the transformation function If r1 = r2, s1=0 and s2 = L-1, the transformation becomes a thresholding function that creates a binary image. Result of contrast stretching obtained by setting (r1, s1) = (rmin, 0) and (r2,s2) = (rmax, L-1) where rmin and rmax denotes the min and max intensity levels in image
  • 20. Piece wise Linear Transformation Functions (Cont…) • Gray Level Slicing – Highlighting a specific range of gray levels in an image often is desired. – One approach for gray level slicing is to display a high value for all gray levels in the range of interest and low value for all other gray levels. This produces a binary image. – Another approach for gray level slicing is brightness the desired range of gray levels but preserves the background and gray level tonalities in the image unchanged.
  • 21. Piece wise Linear Transformation Functions (Cont…) Result of slicing Result of transformation
  • 22. Histogram Processing • An intensity histogram is a graph showing the number of pixels in an image at each different intensity value found in that image. • More simply, histogram is a graphical representation of the intensity distribution of an image. • For an 8 bit gray scale image there are 256 different possible intensities, and so the histogram will graphically display 256 numbers showing the distribution of pixels amongst those gray scale values. • It is common practice to normalized a histogram by dividing each of its components by the total number of pixels in the image.
  • 23. Histogram Processing (cont…) Dark Light Low contrast High contrast
  • 24. Histogram Equalization • It is a method that improves the contrast in an image, in order to stretch out the intensity range. • Equalization implies mapping one distribution (the given histogram) to another distribution (a wider and more uniform distribution of intensity values) so the intensity values are spread over the whole range.
  • 26. Contrast Stretching • Find the minimum and maximum values of the pixels in an image, and then convert pixels from the source to destination like ; • E.g. The image is 8bpp, so levels of gray are 256.
  • 27. Difference between Contrast Stretching and Histogram Equalization • Contrast Stretching
  • 28. Difference between Contrast Stretching and Histogram Equalization (cont…) • Histogram Equalization
  • 29. Image Noise • Noise is a visual distortion in digital images. • It causes visual degradations in digital images. • Even though noise is unavoidable, it can become so small relative to the signal that it appears to be nonexistent. • The signal to noise ratio (SNR) is a useful and universal way of comparing the relative amounts of signal and noise for any electronic system; high ratios will have very little visible noise whereas the opposite is true for low ratios.
  • 31. Image Noise (Cont…) • Noisy image can be modelled as follows: where f(x, y) is the original image pixel, η(x, y) is the noise term and g(x, y) is the resulting noisy pixel. ),(),(),( yxyxfyxg 
  • 32. Image Noise (Cont…) • Source of image noise – Error occurs in image signal :while an image is being sent electronically from one place to another. – Exposure time : Long exposures can introduce static, which can also be a cause of digital noise. – ISO factor: ISO number indicates how quickly a camera’s sensor absorbs light, higher ISO produce progressively more noise. – Size of the sensor – Pixel density – Shadows
  • 33. Types of Noise • The "distribution" of noise is based on probability. • Hence the model is called a Probability Density Function (PDF). • Noise types are – Gaussian Noise • Most common pattern – Rayleigh Noise – Gamma (Erlang) Noise – Exponential Noise – Uniform Noise – Impulse Noise • salt and pepper Gaussian Rayleigh Erlang Exponential Uniform Impulse
  • 34. Types of Noise (Cont…) • Gaussian Noise: – Gaussian noise arises in an image due to factors such as electronic circuited noise and sensor noise due to poor illumination and/ or high temperature. – Gaussian noise is noise that has a random and normal distribution of instantaneous amplitudes over time.
  • 35. Types of Noise (Cont…) 2 =1 X Y 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 129 127 129 126 126 128 126 128 128 129 129 128 128 127 128 128 128 129 129 127 127 128 128 129 127 126 129 129 129 128 127 127 128 127 129 127 129 128 129 130 127 129 127 129 130 128 129 128 129 128 128 128 129 129 128 128 130 129 128 127 127 126
  • 36. Types of Noise (Cont…) • Rayleigh Noise: – This type of noise usually occurs in range imaging. • Gamma (Erlang) Noise and Exponential Noise: – This can be found in laser imaging. • Uniform Noise: – This is not often encountered in real-world imaging systems, but provides a useful comparison with Gaussian noise.
  • 37. Types of Noise (Cont…) • Impulse Noise: – Impulse noise is very common in digital images. – Impulse noise is always independent and uncorrelated to the image pixels. – Unlike Gaussian noise, for an impulse noise corrupted image all the image pixels are not noisy. – Salt impulse noise: • assumed to have the brightest gray level. • Appears as white spot in the image – Pepper impulse noise: • darkest value of the gray level in the image. • Appears as black spot in the image
  • 38. Types of Noise (Cont…) WyHx yxf yxg        1,1 ),( 0 255 ),( Definition Each pixel in an image has the probability of p/2 (0<p<1) being contaminated by either a white dot (salt) or a black dot (pepper) with probability of p/2 with probability of p/2 with probability of 1-p noisy pixels clean pixels f(x,y): noise-free image, g(x,y): noisy image Note: in some applications, noisy pixels are not simply black or white, which makes the impulse noise removal problem more difficult
  • 39. Types of Noise (Cont…) P=0.1 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 X 128 128 255 0 128 128 128 128 128 128 128 128 128 128 0 128 128 128 128 0 128 128 128 128 128 128 128 128 128 128 128 128 0 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 128 0 128 128 128 128 255 128 128 128 128 128 128 128 128 128 128 128 128 128 255 128 128 128 128 128 128 128 255 128 128 Y Noise level p=0.1 means that approximately 10% of pixels are contaminated by salt or pepper noise (highlighted by red color)
  • 40. Noise Example The test pattern to the right is ideal for demonstrating the addition of noise The following slides will show the result of adding noise based on various models to this image
  • 43. Noise Example (Cont…) • With the exception of slightly different overall intensity, it is difficult to differentiate visually between the first five image of previous example, even though their histograms are significantly different. • Salt and pepper noise is the only that is visually indicative of the type of noise causing the degradation.
  • 44. Periodic Noise • Unlike the types of noise we discussed previously, periodic noise depends on the spatial coordinates. • It arises typically from electrical or electromechanical interference during the image acquisition. • It can be reduced through frequency domain filtering.
  • 46. Image Restoration • There are some artifacts which directly effect to the degradation of image. ex: Noise • The principle goal of restoration techniques is to improve an image in some predefined sense. • Unlike image enhancement, most part in image restoration is an objective process. • Restoration attempts to recover an image that has been degraded by using the priory knowledge of the degradation phenomenon.
  • 47. Image Restoration (Cont…) • Restoration techniques are oriented toward modeling the degradation and applying the inverse process in order to recover the original image. • This approach usually involves formulating a criterion of goodness that will yield an optimal estimate of the desired result. • Ex: contrast stretching is an image enhancement technique and it is focused to view purpose whereas; removing image blur using deblurring technique is considered as image restoration.
  • 48. Image Restoration (Cont…) Contrast Stretching Image Deblurring
  • 49. Image Restoration (Cont…) g( x, y) = h( x, y) * f( x, y) + Ƞ( x, y) Given g(x,y), some knowledge about the degradation function H, and some knowledge about the additive noise term Ƞ(x,y), the objective of restoration is to obtain an estimate f’(x,y) of the original image.
  • 50. Reference • Chapter 03 and Chapter 05 of Gonzalez, R.C., Woods, R.E., Digital Image Processing, 3rd ed. Addison-Wesley Pub.
  • 51. Learning Outcomes Revisit • Now, you should be able to; – describe spatial domain of the digital image. – recognize the image enhancement techniques. – describe and apply the concept of intensity transformation. – express histograms and histogram processing. – describe image noise. – characterize the types of Noise. – describe concept of image restoration.
  • 52. QUESTIONS ? Next Lecture – Intensity Transformation and Spatial Filtering II