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

Point processing
Point processingPoint processing
Point processingpanupriyaa7
 
Image Restoration
Image RestorationImage Restoration
Image RestorationPoonam Seth
 
Image Filtering in the Frequency Domain
Image Filtering in the Frequency DomainImage Filtering in the Frequency Domain
Image Filtering in the Frequency DomainAmnaakhaan
 
Chapter 1 and 2 gonzalez and woods
Chapter 1 and 2 gonzalez and woodsChapter 1 and 2 gonzalez and woods
Chapter 1 and 2 gonzalez and woodsasodariyabhavesh
 
Transform coding
Transform codingTransform coding
Transform codingNancy K
 
Chapter 6 color image processing
Chapter 6 color image processingChapter 6 color image processing
Chapter 6 color image processingasodariyabhavesh
 
Image processing second unit Notes
Image processing second unit NotesImage processing second unit Notes
Image processing second unit NotesAAKANKSHA JAIN
 
Interpixel redundancy
Interpixel redundancyInterpixel redundancy
Interpixel redundancyNaveen Kumar
 
Image degradation and noise by Md.Naseem Ashraf
Image degradation and noise by Md.Naseem AshrafImage degradation and noise by Md.Naseem Ashraf
Image degradation and noise by Md.Naseem AshrafMD Naseem Ashraf
 
Color Image Processing
Color Image ProcessingColor Image Processing
Color Image Processingkiruthiammu
 
SPATIAL FILTERING IN IMAGE PROCESSING
SPATIAL FILTERING IN IMAGE PROCESSINGSPATIAL FILTERING IN IMAGE PROCESSING
SPATIAL FILTERING IN IMAGE PROCESSINGmuthu181188
 

What's hot (20)

Digital Image Processing
Digital Image ProcessingDigital Image Processing
Digital Image Processing
 
Spatial domain and filtering
Spatial domain and filteringSpatial domain and filtering
Spatial domain and filtering
 
Histogram Equalization
Histogram EqualizationHistogram Equalization
Histogram Equalization
 
image compression ppt
image compression pptimage compression ppt
image compression ppt
 
Point processing
Point processingPoint processing
Point processing
 
Image Restoration
Image RestorationImage Restoration
Image Restoration
 
Image enhancement
Image enhancementImage enhancement
Image enhancement
 
Image Filtering in the Frequency Domain
Image Filtering in the Frequency DomainImage Filtering in the Frequency Domain
Image Filtering in the Frequency Domain
 
Chapter 1 and 2 gonzalez and woods
Chapter 1 and 2 gonzalez and woodsChapter 1 and 2 gonzalez and woods
Chapter 1 and 2 gonzalez and woods
 
Transform coding
Transform codingTransform coding
Transform coding
 
NOISE FILTERS IN IMAGE PROCESSING
NOISE FILTERS IN IMAGE PROCESSINGNOISE FILTERS IN IMAGE PROCESSING
NOISE FILTERS IN IMAGE PROCESSING
 
Chapter 6 color image processing
Chapter 6 color image processingChapter 6 color image processing
Chapter 6 color image processing
 
Image processing second unit Notes
Image processing second unit NotesImage processing second unit Notes
Image processing second unit Notes
 
Data Redundacy
Data RedundacyData Redundacy
Data Redundacy
 
Ppt ---image processing
Ppt ---image processingPpt ---image processing
Ppt ---image processing
 
Interpixel redundancy
Interpixel redundancyInterpixel redundancy
Interpixel redundancy
 
Image degradation and noise by Md.Naseem Ashraf
Image degradation and noise by Md.Naseem AshrafImage degradation and noise by Md.Naseem Ashraf
Image degradation and noise by Md.Naseem Ashraf
 
Color Image Processing
Color Image ProcessingColor Image Processing
Color Image Processing
 
SPATIAL FILTERING IN IMAGE PROCESSING
SPATIAL FILTERING IN IMAGE PROCESSINGSPATIAL FILTERING IN IMAGE PROCESSING
SPATIAL FILTERING IN IMAGE PROCESSING
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
 

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 processing, Noise, Noise Removal filters
Image processing, Noise, Noise Removal filtersImage processing, Noise, Noise Removal filters
Image processing, Noise, Noise Removal filtersKuppusamy P
 
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
 
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
 
Digital image processing
Digital image processingDigital image processing
Digital image processingABIRAMI M
 

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 processing, Noise, Noise Removal filters
Image processing, Noise, Noise Removal filtersImage processing, Noise, Noise Removal filters
Image processing, Noise, Noise Removal filters
 
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
 
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
 
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
 
Digital image processing
Digital image processingDigital image processing
Digital image processing
 

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

Behavioral Disorder: Schizophrenia & it's Case Study.pdf
Behavioral Disorder: Schizophrenia & it's Case Study.pdfBehavioral Disorder: Schizophrenia & it's Case Study.pdf
Behavioral Disorder: Schizophrenia & it's Case Study.pdfSELF-EXPLANATORY
 
User Guide: Orion™ Weather Station (Columbia Weather Systems)
User Guide: Orion™ Weather Station (Columbia Weather Systems)User Guide: Orion™ Weather Station (Columbia Weather Systems)
User Guide: Orion™ Weather Station (Columbia Weather Systems)Columbia Weather Systems
 
The dark energy paradox leads to a new structure of spacetime.pptx
The dark energy paradox leads to a new structure of spacetime.pptxThe dark energy paradox leads to a new structure of spacetime.pptx
The dark energy paradox leads to a new structure of spacetime.pptxEran Akiva Sinbar
 
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptx
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptxSTOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptx
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptxMurugaveni B
 
Good agricultural practices 3rd year bpharm. herbal drug technology .pptx
Good agricultural practices 3rd year bpharm. herbal drug technology .pptxGood agricultural practices 3rd year bpharm. herbal drug technology .pptx
Good agricultural practices 3rd year bpharm. herbal drug technology .pptxSimeonChristian
 
Call Girls In Nihal Vihar Delhi ❤️8860477959 Looking Escorts In 24/7 Delhi NCR
Call Girls In Nihal Vihar Delhi ❤️8860477959 Looking Escorts In 24/7 Delhi NCRCall Girls In Nihal Vihar Delhi ❤️8860477959 Looking Escorts In 24/7 Delhi NCR
Call Girls In Nihal Vihar Delhi ❤️8860477959 Looking Escorts In 24/7 Delhi NCRlizamodels9
 
(9818099198) Call Girls In Noida Sector 14 (NOIDA ESCORTS)
(9818099198) Call Girls In Noida Sector 14 (NOIDA ESCORTS)(9818099198) Call Girls In Noida Sector 14 (NOIDA ESCORTS)
(9818099198) Call Girls In Noida Sector 14 (NOIDA ESCORTS)riyaescorts54
 
Vision and reflection on Mining Software Repositories research in 2024
Vision and reflection on Mining Software Repositories research in 2024Vision and reflection on Mining Software Repositories research in 2024
Vision and reflection on Mining Software Repositories research in 2024AyushiRastogi48
 
User Guide: Capricorn FLX™ Weather Station
User Guide: Capricorn FLX™ Weather StationUser Guide: Capricorn FLX™ Weather Station
User Guide: Capricorn FLX™ Weather StationColumbia Weather Systems
 
BUMI DAN ANTARIKSA PROJEK IPAS SMK KELAS X.pdf
BUMI DAN ANTARIKSA PROJEK IPAS SMK KELAS X.pdfBUMI DAN ANTARIKSA PROJEK IPAS SMK KELAS X.pdf
BUMI DAN ANTARIKSA PROJEK IPAS SMK KELAS X.pdfWildaNurAmalia2
 
Davis plaque method.pptx recombinant DNA technology
Davis plaque method.pptx recombinant DNA technologyDavis plaque method.pptx recombinant DNA technology
Davis plaque method.pptx recombinant DNA technologycaarthichand2003
 
Pests of safflower_Binomics_Identification_Dr.UPR.pdf
Pests of safflower_Binomics_Identification_Dr.UPR.pdfPests of safflower_Binomics_Identification_Dr.UPR.pdf
Pests of safflower_Binomics_Identification_Dr.UPR.pdfPirithiRaju
 
Harmful and Useful Microorganisms Presentation
Harmful and Useful Microorganisms PresentationHarmful and Useful Microorganisms Presentation
Harmful and Useful Microorganisms Presentationtahreemzahra82
 
GenBio2 - Lesson 1 - Introduction to Genetics.pptx
GenBio2 - Lesson 1 - Introduction to Genetics.pptxGenBio2 - Lesson 1 - Introduction to Genetics.pptx
GenBio2 - Lesson 1 - Introduction to Genetics.pptxBerniceCayabyab1
 
Pests of castor_Binomics_Identification_Dr.UPR.pdf
Pests of castor_Binomics_Identification_Dr.UPR.pdfPests of castor_Binomics_Identification_Dr.UPR.pdf
Pests of castor_Binomics_Identification_Dr.UPR.pdfPirithiRaju
 
Topic 9- General Principles of International Law.pptx
Topic 9- General Principles of International Law.pptxTopic 9- General Principles of International Law.pptx
Topic 9- General Principles of International Law.pptxJorenAcuavera1
 
OECD bibliometric indicators: Selected highlights, April 2024
OECD bibliometric indicators: Selected highlights, April 2024OECD bibliometric indicators: Selected highlights, April 2024
OECD bibliometric indicators: Selected highlights, April 2024innovationoecd
 
THE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptx
THE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptxTHE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptx
THE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptxNandakishor Bhaurao Deshmukh
 
Microteaching on terms used in filtration .Pharmaceutical Engineering
Microteaching on terms used in filtration .Pharmaceutical EngineeringMicroteaching on terms used in filtration .Pharmaceutical Engineering
Microteaching on terms used in filtration .Pharmaceutical EngineeringPrajakta Shinde
 
Four Spheres of the Earth Presentation.ppt
Four Spheres of the Earth Presentation.pptFour Spheres of the Earth Presentation.ppt
Four Spheres of the Earth Presentation.pptJoemSTuliba
 

Recently uploaded (20)

Behavioral Disorder: Schizophrenia & it's Case Study.pdf
Behavioral Disorder: Schizophrenia & it's Case Study.pdfBehavioral Disorder: Schizophrenia & it's Case Study.pdf
Behavioral Disorder: Schizophrenia & it's Case Study.pdf
 
User Guide: Orion™ Weather Station (Columbia Weather Systems)
User Guide: Orion™ Weather Station (Columbia Weather Systems)User Guide: Orion™ Weather Station (Columbia Weather Systems)
User Guide: Orion™ Weather Station (Columbia Weather Systems)
 
The dark energy paradox leads to a new structure of spacetime.pptx
The dark energy paradox leads to a new structure of spacetime.pptxThe dark energy paradox leads to a new structure of spacetime.pptx
The dark energy paradox leads to a new structure of spacetime.pptx
 
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptx
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptxSTOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptx
STOPPED FLOW METHOD & APPLICATION MURUGAVENI B.pptx
 
Good agricultural practices 3rd year bpharm. herbal drug technology .pptx
Good agricultural practices 3rd year bpharm. herbal drug technology .pptxGood agricultural practices 3rd year bpharm. herbal drug technology .pptx
Good agricultural practices 3rd year bpharm. herbal drug technology .pptx
 
Call Girls In Nihal Vihar Delhi ❤️8860477959 Looking Escorts In 24/7 Delhi NCR
Call Girls In Nihal Vihar Delhi ❤️8860477959 Looking Escorts In 24/7 Delhi NCRCall Girls In Nihal Vihar Delhi ❤️8860477959 Looking Escorts In 24/7 Delhi NCR
Call Girls In Nihal Vihar Delhi ❤️8860477959 Looking Escorts In 24/7 Delhi NCR
 
(9818099198) Call Girls In Noida Sector 14 (NOIDA ESCORTS)
(9818099198) Call Girls In Noida Sector 14 (NOIDA ESCORTS)(9818099198) Call Girls In Noida Sector 14 (NOIDA ESCORTS)
(9818099198) Call Girls In Noida Sector 14 (NOIDA ESCORTS)
 
Vision and reflection on Mining Software Repositories research in 2024
Vision and reflection on Mining Software Repositories research in 2024Vision and reflection on Mining Software Repositories research in 2024
Vision and reflection on Mining Software Repositories research in 2024
 
User Guide: Capricorn FLX™ Weather Station
User Guide: Capricorn FLX™ Weather StationUser Guide: Capricorn FLX™ Weather Station
User Guide: Capricorn FLX™ Weather Station
 
BUMI DAN ANTARIKSA PROJEK IPAS SMK KELAS X.pdf
BUMI DAN ANTARIKSA PROJEK IPAS SMK KELAS X.pdfBUMI DAN ANTARIKSA PROJEK IPAS SMK KELAS X.pdf
BUMI DAN ANTARIKSA PROJEK IPAS SMK KELAS X.pdf
 
Davis plaque method.pptx recombinant DNA technology
Davis plaque method.pptx recombinant DNA technologyDavis plaque method.pptx recombinant DNA technology
Davis plaque method.pptx recombinant DNA technology
 
Pests of safflower_Binomics_Identification_Dr.UPR.pdf
Pests of safflower_Binomics_Identification_Dr.UPR.pdfPests of safflower_Binomics_Identification_Dr.UPR.pdf
Pests of safflower_Binomics_Identification_Dr.UPR.pdf
 
Harmful and Useful Microorganisms Presentation
Harmful and Useful Microorganisms PresentationHarmful and Useful Microorganisms Presentation
Harmful and Useful Microorganisms Presentation
 
GenBio2 - Lesson 1 - Introduction to Genetics.pptx
GenBio2 - Lesson 1 - Introduction to Genetics.pptxGenBio2 - Lesson 1 - Introduction to Genetics.pptx
GenBio2 - Lesson 1 - Introduction to Genetics.pptx
 
Pests of castor_Binomics_Identification_Dr.UPR.pdf
Pests of castor_Binomics_Identification_Dr.UPR.pdfPests of castor_Binomics_Identification_Dr.UPR.pdf
Pests of castor_Binomics_Identification_Dr.UPR.pdf
 
Topic 9- General Principles of International Law.pptx
Topic 9- General Principles of International Law.pptxTopic 9- General Principles of International Law.pptx
Topic 9- General Principles of International Law.pptx
 
OECD bibliometric indicators: Selected highlights, April 2024
OECD bibliometric indicators: Selected highlights, April 2024OECD bibliometric indicators: Selected highlights, April 2024
OECD bibliometric indicators: Selected highlights, April 2024
 
THE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptx
THE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptxTHE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptx
THE ROLE OF PHARMACOGNOSY IN TRADITIONAL AND MODERN SYSTEM OF MEDICINE.pptx
 
Microteaching on terms used in filtration .Pharmaceutical Engineering
Microteaching on terms used in filtration .Pharmaceutical EngineeringMicroteaching on terms used in filtration .Pharmaceutical Engineering
Microteaching on terms used in filtration .Pharmaceutical Engineering
 
Four Spheres of the Earth Presentation.ppt
Four Spheres of the Earth Presentation.pptFour Spheres of the Earth Presentation.ppt
Four Spheres of the Earth Presentation.ppt
 

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