SlideShare une entreprise Scribd logo
1  sur  155
Chapter 4: Image Enhancement in the
Frequency Domain
Fundamentals
Fourier: a periodic function can be represented
by the sum of sines/ cosines of different
frequencies, multiplied by a different
coefficient (Fourier series).
Non-periodic functions can also be represented
as the integral of sines/ cosines multiplied
by weighing function (Fourier transform)
•The relationship between the harmonics returns by the DFT and the
periodic component in the time domain is illustrated below.
Introduction to
the Fourier Transform
f(x): continuous function of a real
variable x
Fourier transform of f(x):
  


 dxuxjxfuFxf ]2exp[)()()( 
where
1j
Introduction to
the Fourier Transform
(u) is the frequency variable.
The integral of Eq. shows that F(u) is
composed of an infinite sum of sine
and cosine terms and…
Each value of u determines the
frequency of its corresponding sine-
cosine pair.
Introduction to
the Fourier Transform
Given F(u), f(x) can be obtained by the
inverse Fourier transform:
)()}({1
xfuF 



 duuxjuF ]2exp[)( 
The above two equations are the Fourier
transform pair.
Discrete Fourier Transform
The discrete Fourier transform pair that
applies to sampled functions is given
by:
F(u) 
1
M
f (x)exp[ j2ux / M]
x 0
M 1
 For u=0,1,2,…,M-1
f (x)  f (u)exp[ j2ux / M]
u 0
M 1
 For x=0,1,2,…,M-1
Discrete Fourier Transform
• In a 2-variable case, the discrete FT
pair is:






1
0
1
0
)]//(2exp[),(
1
),(
M
x
N
y
NvyMuxjyxf
MN
vuF 






1
0
1
0
)]//(2exp[),(),(
M
u
N
v
NvyMuxjvuFyxf 
For u=0,1,2,…,M-1 and v=0,1,2,…,N-1
For x=0,1,2,…,M-1 and y=0,1,2,…,N-1
Introduction to
the Fourier Transform
• Fourier spectrum:
  2/122
),(),(),( vuIvuRvuF 
• Phase:






 
),(
),(
tan),( 1
vuR
vuI
vu
• Power spectrum:
),(),(),(),( 222
vuIvuRvuFvuP 
Image Enhancement in the Frequency Domain
Enhancement in
the Frequency Domain
Types of enhancement that can be done:
Lowpass filtering: reduce the high-
frequency content -- blurring or
smoothing
Highpass filtering: increase the magnitude
of high-frequency components relative to
low-frequency components -- sharpening.
Image Enhancement in the
Frequency Domain
Image Enhancement in the
Frequency Domain
Lowpass Filtering
in the Frequency Domain
Edges, noise contribute significantly to the
high-frequency content of the FT of an
image.
Blurring/smoothing is achieved by reducing a
specified range of high-frequency
components:
),(),(),( vuFvuHvuG 
Smoothing
in the Frequency Domain
G(u,v) = H(u,v) F(u,v)
Ideal
Butterworth (parameter: filter order)
Gaussian
Ideal Filter (Lowpass)
A 2-D ideal low-pass filter:






0
0
),(if0
),(if1
),(
DvuD
DvuD
vuH
where D0 is a specified nonnegative quantity and
D(u,v) is the distance from point (u,v) to the center of
the frequency rectangle.
Center of frequency rectangle: (u,v)=(M/2,N/2)
Distance from any point to the center (origin) of the FT:
2/122
)(),( vuvuD 
Image Enhancement in the
Frequency Domain
Ideal Filter (Lowpass)
Ideal:
all frequencies inside a circle of radius D0
are passed with no attenuation
all frequencies outside this circle are
completely attenuated.
Ideal Filter (Lowpass)
Cutoff-frequency: the point of transition
between H(u,v)=1 and H(u,v)=0 (D0)
To establish cutoff frequency loci, we
typically compute circles that enclose
specified amounts of total image
power PT.
Image Enhancement in the Frequency
Domain
Butterworth Filter (Lowpass)
• This filter does not have a sharp
discontinuity establishing a clear cutoff
between passed and filtered
frequencies.
n
DvuD
vuH 2
0 ]/),([1
1
),(


Butterworth Filter (Lowpass)
To define a cutoff frequency locus: at
points for which H(u,v) is down to a
certain fraction of its maximum value.
When D(u,v) = D0, H(u,v) = 0.5
i.e. down 50% from its maximum value of 1.
Image Enhancement in the Frequency Domain
Gaussian Lowpass Filter
D(u,v): distance from the origin of FT
Parameter: =D0 (cutoff frequency)
The inverse FT of the Gaussian filter is
also a Gaussian
H(u,v)  eD2
(u,v)/2 2
Image Enhancement in the Frequency Domain
Image Enhancement in the Frequency Domain
Image Enhancement in the Frequency Domain
Sharpening (Highpass) Filtering
Image sharpening can be achieved by a highpass
filtering process, which attenuates the low-
frequency components without disturbing
high-frequency information.
Zero-phase-shift filters: radially symmetric and
completely specified by a cross section.
Hhp (u,v) 1 Hlp (u,v)
Ideal Filter (Highpass)
This filter is the opposite of the ideal lowpass filter.






0
0
),(if1
),(if0
),(
DvuD
DvuD
vuH
Butterworth Filter (Highpass)
High-frequency emphasis: Adding a constant
to a highpass filter to preserve the low-
frequency components.
n
vuDD
vuH 2
0 )],(/[1
1
),(


Gaussian Highpass Filter
D(u,v): distance from the origin of FT
Parameter: =D0 (cutoff frequency)
H(u,v) 1eD2
(u,v)/2 2
L
DvuDc
LH
o
evuH   
]1)[(),( )/),(( 22
It affects the low and high frequency components of the Fourier
Transform in different ways.
By using the homomorphic filter the dynamic range in the brightness
is reduced, together with an increase in contrast, this effect brought
Out the details of objects inside the shelter, in Fig. 4.33, and balance
The gray levels of the outside wall, The enhanced image also sharper.
Fast Fourier Transform
The decomposition of FT makes the
number of multiplications and
additions proportional to M log2M:
Fast Fourier Transform or FFT algorithm.
E.g. if M=1021 the usual method will
require 1000000 operations, while FFT
will require 10000.
Modeling of degraded image
Degradation Model
f(x,y) h(x,y) g(x,y)
n(x,y)
S
Degradation Model: g = h*f + n
Restoration Model
g(x,y) Degradation
Model
f(x,y)
Restoration
Filter
Constrained Unconstrained
• Inverse Filter • Wiener Filter
Where m is the mean of the average value of z,
And  is the standard deviation.
By using the data from the image strips, the mean m and the
Variance s of the gray level can be calculated, where:
Noise Removal Restoration Method
Mean filters:
1-Arithmetic mean filter,
2-Geometric mean filter,
3-Harmonic mean filter,
4-Contra-harmonic mean
filter.
Adaptive filters
1-Adaptive local noise
reduction filter,
2-Adaptive median
filter.
Order statistics filters:
1-Median filter,
2-Max and min filters,
3-Mid-point filter,
4-Alpha-trimmed filters.
gr(s,t) represents the remaining mn-d pixels, d is range from
0 to mn-1.
, Pa, Pb less than 0.2.
The following algorithm try to decided that zmed , zx,y are not
an impulse, (Zmin and zmax are considered to be impulse values), then
keep the value of zx,y ,.Otherwise, change window size up to
Smax before assigning the center pixel the to zmed or zx,y value.
Zx,y: gray level at coordinates center (x,y).
Where D(u,v) is the distance
from the origin, W is the
width of the band, and Do is
its radial center.
D
W
D0
A frequency band
Ideal
Butterworth
Gaussian
Discontinuities: abrupt change in gray level intensity;
Similarity: similar region according to predefined criteria.
Edge Detection
Gy , a= 90,
Gx=0
The angle a is measured with respect to the x-axis
a
, E is a nonnegative threshold.
, A is a nonnegative angle threshold.
Laplacian of Gaussian Mask
+ve value white,
-ve values zeros.
Noting the transitions
between black and white,
Compare b, e.
c)
d)
e)
r
r
r
r
r
r
Hough transform algorithm;
1- define the desired increments Dr,and Dq , and qunatize
the space accordingly,
2- For every point of interest(typically points found by edge
detectors that exceed some threshold value), plug the values
for x, and y into the transform equation, then , for each value
of q in the quantized space, solve for r,
3- for each r,q pair from step 2 , record the x,y pair in the
corresponding block. This constitutes a hit for that particular
block.
When this process is completed, the number of hits in each
block corresponds to the number of pixels on the line . Next ,
select a threshold and examine the quantization blocks that
contain more points than the threshold.
Fig.10.20-a shows five points, 1-2-3-4-5, b- is the corresponding
lines in HT space, r = N, N is the image size.
-90 90
-45 45
Segmentation based on similarity
1- Thresholding:
Basic adaptive thresholding:
It an approach to reduce the effect of nonuniform illumination by divide the image
into subimages, such that the illumination of each Subimages is approximately
uniform . The following are the steps to perform basic adaptive thresholding
to the previous image:
2-
Examples
for region
growing
Representation Schemes
Chain Codes
Polygonal Approximations
Signatures
Boundary Segments
The Skeleton of a Region
Chain Codes
Solu:
2 to 1= 3 directions, counterclockwise, 2_3 + 3_0+ 0_1, and so on,
1 to 0 = 3, 0 to 1 = 1, 1 to 0 = 3, 0 to 3 = 3,
3 to 3 = 0, 3 to 2 = 3, 2 to 2 = 0.
First difference code normalize chain code w.r.t rotation.
So we get normalization w.r.t starting point
1 0
1 0
3
3
22
Starting point
another method
0-6
8+ (-6)=2
2-0
8+1=1
Signatures
A Signature for boundary representation
This algorithm is applied for thinning binary images.
Region points are assumed to have value 1 and
background points have value 0. The method consists
of successive passes of two basic steps applied to the
contour points of the given region. With reference to
the 8-neighboring notation one can determine the
contour points. The first step in the algorithm will be
as follows:
•Curvature:
–Rate of change of slope
–i.e. using the difference between the slopes of
adjacent boundary segments, which have been
represented as straight lines, as a descriptor of
curvature at the point of intersection of the segments.
– Convex segment: change in slope at p is nonnegative
–Concave segment: change in slope at p is negative
–Ranges in the change of slope:
•Less than 10°  line
•More than 90°  corner
u
The smaller P becomes, the more detail that is lost
on the boundary.
u
Image processing 2
Image processing 2

Contenu connexe

Tendances (20)

Chapter 5
Chapter 5Chapter 5
Chapter 5
 
Digital Image Processing: Image Restoration
Digital Image Processing: Image RestorationDigital Image Processing: Image Restoration
Digital Image Processing: Image Restoration
 
Digital Image restoration
Digital Image restorationDigital Image restoration
Digital Image restoration
 
Smoothing in Digital Image Processing
Smoothing in Digital Image ProcessingSmoothing in Digital Image Processing
Smoothing in Digital Image Processing
 
Image Restoration
Image RestorationImage Restoration
Image Restoration
 
Unit3 dip
Unit3 dipUnit3 dip
Unit3 dip
 
Image Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain FiltersImage Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain Filters
 
07 frequency domain DIP
07 frequency domain DIP07 frequency domain DIP
07 frequency domain DIP
 
08 frequency domain filtering DIP
08 frequency domain filtering DIP08 frequency domain filtering DIP
08 frequency domain filtering DIP
 
Image Restoration (Order Statistics Filters)
Image Restoration (Order Statistics Filters)Image Restoration (Order Statistics Filters)
Image Restoration (Order Statistics Filters)
 
Image denoising
Image denoisingImage denoising
Image denoising
 
Module 31
Module 31Module 31
Module 31
 
Lecture 10
Lecture 10Lecture 10
Lecture 10
 
Image Filtering in the Frequency Domain
Image Filtering in the Frequency DomainImage Filtering in the Frequency Domain
Image Filtering in the Frequency Domain
 
Image Restoration
Image Restoration Image Restoration
Image Restoration
 
Pixel relationships
Pixel relationshipsPixel relationships
Pixel relationships
 
Image restoration
Image restorationImage restoration
Image restoration
 
Image restoration1
Image restoration1Image restoration1
Image restoration1
 
Frequency domain methods
Frequency domain methods Frequency domain methods
Frequency domain methods
 
Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)
 

Similaire à Image processing 2

Lec_4_Frequency Domain Filtering-I.pdf
Lec_4_Frequency Domain Filtering-I.pdfLec_4_Frequency Domain Filtering-I.pdf
Lec_4_Frequency Domain Filtering-I.pdfnagwaAboElenein
 
Frequency Domain FIltering.pdf
Frequency Domain FIltering.pdfFrequency Domain FIltering.pdf
Frequency Domain FIltering.pdfMuhammad_Ilham_21
 
ch-2.5 Image Enhancement in FREQUENCY Domain.pptx
ch-2.5 Image Enhancement in FREQUENCY  Domain.pptxch-2.5 Image Enhancement in FREQUENCY  Domain.pptx
ch-2.5 Image Enhancement in FREQUENCY Domain.pptxsatyanarayana242612
 
Digital Image Processing_ ch3 enhancement freq-domain
Digital Image Processing_ ch3 enhancement freq-domainDigital Image Processing_ ch3 enhancement freq-domain
Digital Image Processing_ ch3 enhancement freq-domainMalik obeisat
 
Image trnsformations
Image trnsformationsImage trnsformations
Image trnsformationsJohn Williams
 
Wavelet transform in two dimensions
Wavelet transform in two dimensionsWavelet transform in two dimensions
Wavelet transform in two dimensionsAyushi Gagneja
 
ESTIMATING NOISE PARAMETER & FILTERING (Digital Image Processing)
ESTIMATING NOISE PARAMETER & FILTERING (Digital Image Processing)ESTIMATING NOISE PARAMETER & FILTERING (Digital Image Processing)
ESTIMATING NOISE PARAMETER & FILTERING (Digital Image Processing)Shajun Nisha
 
Basics of edge detection and forier transform
Basics of edge detection and forier transformBasics of edge detection and forier transform
Basics of edge detection and forier transformSimranjit Singh
 
Frequency Domain Filtering 1.ppt
 Frequency Domain Filtering 1.ppt Frequency Domain Filtering 1.ppt
Frequency Domain Filtering 1.pptManishKumawat77
 
Enhancement in frequency domain
Enhancement in frequency domainEnhancement in frequency domain
Enhancement in frequency domainAshish Kumar
 
DIGITAL IMAGE PROCESSING - Day 4 Image Transform
DIGITAL IMAGE PROCESSING - Day 4 Image TransformDIGITAL IMAGE PROCESSING - Day 4 Image Transform
DIGITAL IMAGE PROCESSING - Day 4 Image Transformvijayanand Kandaswamy
 
3 intensity transformations and spatial filtering slides
3 intensity transformations and spatial filtering slides3 intensity transformations and spatial filtering slides
3 intensity transformations and spatial filtering slidesBHAGYAPRASADBUGGE
 
Design Approach of Colour Image Denoising Using Adaptive Wavelet
Design Approach of Colour Image Denoising Using Adaptive WaveletDesign Approach of Colour Image Denoising Using Adaptive Wavelet
Design Approach of Colour Image Denoising Using Adaptive WaveletIJERD Editor
 
Wavelet Based Image Compression Using FPGA
Wavelet Based Image Compression Using FPGAWavelet Based Image Compression Using FPGA
Wavelet Based Image Compression Using FPGADr. Mohieddin Moradi
 
Chapter 1 introduction (Image Processing)
Chapter 1 introduction (Image Processing)Chapter 1 introduction (Image Processing)
Chapter 1 introduction (Image Processing)Varun Ojha
 
FourierTransform detailed power point presentation
FourierTransform detailed power point presentationFourierTransform detailed power point presentation
FourierTransform detailed power point presentationssuseracb8ba
 
imageCorrectionLinearDiffusion
imageCorrectionLinearDiffusionimageCorrectionLinearDiffusion
imageCorrectionLinearDiffusionKellen Betts
 
imagetransforms1-210417050321.pptx
imagetransforms1-210417050321.pptximagetransforms1-210417050321.pptx
imagetransforms1-210417050321.pptxMrsSDivyaBME
 

Similaire à Image processing 2 (20)

Lec_4_Frequency Domain Filtering-I.pdf
Lec_4_Frequency Domain Filtering-I.pdfLec_4_Frequency Domain Filtering-I.pdf
Lec_4_Frequency Domain Filtering-I.pdf
 
Frequency Domain FIltering.pdf
Frequency Domain FIltering.pdfFrequency Domain FIltering.pdf
Frequency Domain FIltering.pdf
 
ch-2.5 Image Enhancement in FREQUENCY Domain.pptx
ch-2.5 Image Enhancement in FREQUENCY  Domain.pptxch-2.5 Image Enhancement in FREQUENCY  Domain.pptx
ch-2.5 Image Enhancement in FREQUENCY Domain.pptx
 
Digital Image Processing_ ch3 enhancement freq-domain
Digital Image Processing_ ch3 enhancement freq-domainDigital Image Processing_ ch3 enhancement freq-domain
Digital Image Processing_ ch3 enhancement freq-domain
 
Image trnsformations
Image trnsformationsImage trnsformations
Image trnsformations
 
Wavelet transform in two dimensions
Wavelet transform in two dimensionsWavelet transform in two dimensions
Wavelet transform in two dimensions
 
ESTIMATING NOISE PARAMETER & FILTERING (Digital Image Processing)
ESTIMATING NOISE PARAMETER & FILTERING (Digital Image Processing)ESTIMATING NOISE PARAMETER & FILTERING (Digital Image Processing)
ESTIMATING NOISE PARAMETER & FILTERING (Digital Image Processing)
 
Basics of edge detection and forier transform
Basics of edge detection and forier transformBasics of edge detection and forier transform
Basics of edge detection and forier transform
 
Frequency Domain Filtering 1.ppt
 Frequency Domain Filtering 1.ppt Frequency Domain Filtering 1.ppt
Frequency Domain Filtering 1.ppt
 
Enhancement in frequency domain
Enhancement in frequency domainEnhancement in frequency domain
Enhancement in frequency domain
 
DIGITAL IMAGE PROCESSING - Day 4 Image Transform
DIGITAL IMAGE PROCESSING - Day 4 Image TransformDIGITAL IMAGE PROCESSING - Day 4 Image Transform
DIGITAL IMAGE PROCESSING - Day 4 Image Transform
 
Chap6 image restoration
Chap6 image restorationChap6 image restoration
Chap6 image restoration
 
3 intensity transformations and spatial filtering slides
3 intensity transformations and spatial filtering slides3 intensity transformations and spatial filtering slides
3 intensity transformations and spatial filtering slides
 
Design Approach of Colour Image Denoising Using Adaptive Wavelet
Design Approach of Colour Image Denoising Using Adaptive WaveletDesign Approach of Colour Image Denoising Using Adaptive Wavelet
Design Approach of Colour Image Denoising Using Adaptive Wavelet
 
Wavelet Based Image Compression Using FPGA
Wavelet Based Image Compression Using FPGAWavelet Based Image Compression Using FPGA
Wavelet Based Image Compression Using FPGA
 
Lecture 11
Lecture 11Lecture 11
Lecture 11
 
Chapter 1 introduction (Image Processing)
Chapter 1 introduction (Image Processing)Chapter 1 introduction (Image Processing)
Chapter 1 introduction (Image Processing)
 
FourierTransform detailed power point presentation
FourierTransform detailed power point presentationFourierTransform detailed power point presentation
FourierTransform detailed power point presentation
 
imageCorrectionLinearDiffusion
imageCorrectionLinearDiffusionimageCorrectionLinearDiffusion
imageCorrectionLinearDiffusion
 
imagetransforms1-210417050321.pptx
imagetransforms1-210417050321.pptximagetransforms1-210417050321.pptx
imagetransforms1-210417050321.pptx
 

Plus de Taymoor Nazmy

Artificial intelligent Lec 5-logic
Artificial intelligent Lec 5-logicArtificial intelligent Lec 5-logic
Artificial intelligent Lec 5-logicTaymoor Nazmy
 
Artificial intelligent Lec 3-ai chapter3-search
Artificial intelligent Lec 3-ai chapter3-searchArtificial intelligent Lec 3-ai chapter3-search
Artificial intelligent Lec 3-ai chapter3-searchTaymoor Nazmy
 
Artificial intelligent Lec 1-ai-introduction-
Artificial intelligent Lec 1-ai-introduction-Artificial intelligent Lec 1-ai-introduction-
Artificial intelligent Lec 1-ai-introduction-Taymoor Nazmy
 
Image processing 1-lectures
Image processing  1-lecturesImage processing  1-lectures
Image processing 1-lecturesTaymoor Nazmy
 
Software Engineering Lec 10 -software testing--
Software Engineering Lec 10 -software testing--Software Engineering Lec 10 -software testing--
Software Engineering Lec 10 -software testing--Taymoor Nazmy
 
Software Engineering Lec 8-design-
Software Engineering Lec 8-design-Software Engineering Lec 8-design-
Software Engineering Lec 8-design-Taymoor Nazmy
 
Software Engineering Lec 7-uml-
Software Engineering Lec 7-uml-Software Engineering Lec 7-uml-
Software Engineering Lec 7-uml-Taymoor Nazmy
 
Software Engineering Lec5 oop-uml-i
Software Engineering Lec5 oop-uml-iSoftware Engineering Lec5 oop-uml-i
Software Engineering Lec5 oop-uml-iTaymoor Nazmy
 
Software Engineering Lec 4-requirments
Software Engineering Lec 4-requirmentsSoftware Engineering Lec 4-requirments
Software Engineering Lec 4-requirmentsTaymoor Nazmy
 
Software Engineering Lec 3-project managment
Software Engineering Lec 3-project managmentSoftware Engineering Lec 3-project managment
Software Engineering Lec 3-project managmentTaymoor Nazmy
 
Software Engineering Lec 2
Software Engineering Lec 2Software Engineering Lec 2
Software Engineering Lec 2Taymoor Nazmy
 
Software Engineering Lec 1-introduction
Software Engineering Lec 1-introductionSoftware Engineering Lec 1-introduction
Software Engineering Lec 1-introductionTaymoor Nazmy
 

Plus de Taymoor Nazmy (20)

Cognitive systems
Cognitive  systemsCognitive  systems
Cognitive systems
 
Cognitive systems
Cognitive  systemsCognitive  systems
Cognitive systems
 
Artificial intelligent Lec 5-logic
Artificial intelligent Lec 5-logicArtificial intelligent Lec 5-logic
Artificial intelligent Lec 5-logic
 
Artificial intelligent Lec 3-ai chapter3-search
Artificial intelligent Lec 3-ai chapter3-searchArtificial intelligent Lec 3-ai chapter3-search
Artificial intelligent Lec 3-ai chapter3-search
 
Lec 2-agents
Lec 2-agentsLec 2-agents
Lec 2-agents
 
Artificial intelligent Lec 1-ai-introduction-
Artificial intelligent Lec 1-ai-introduction-Artificial intelligent Lec 1-ai-introduction-
Artificial intelligent Lec 1-ai-introduction-
 
Image processing 1-lectures
Image processing  1-lecturesImage processing  1-lectures
Image processing 1-lectures
 
Software Engineering Lec 10 -software testing--
Software Engineering Lec 10 -software testing--Software Engineering Lec 10 -software testing--
Software Engineering Lec 10 -software testing--
 
Software Engineering Lec 8-design-
Software Engineering Lec 8-design-Software Engineering Lec 8-design-
Software Engineering Lec 8-design-
 
Software Engineering Lec 7-uml-
Software Engineering Lec 7-uml-Software Engineering Lec 7-uml-
Software Engineering Lec 7-uml-
 
Software Engineering Lec5 oop-uml-i
Software Engineering Lec5 oop-uml-iSoftware Engineering Lec5 oop-uml-i
Software Engineering Lec5 oop-uml-i
 
Software Engineering Lec 4-requirments
Software Engineering Lec 4-requirmentsSoftware Engineering Lec 4-requirments
Software Engineering Lec 4-requirments
 
Software Engineering Lec 3-project managment
Software Engineering Lec 3-project managmentSoftware Engineering Lec 3-project managment
Software Engineering Lec 3-project managment
 
Software Engineering Lec 2
Software Engineering Lec 2Software Engineering Lec 2
Software Engineering Lec 2
 
Software Engineering Lec 1-introduction
Software Engineering Lec 1-introductionSoftware Engineering Lec 1-introduction
Software Engineering Lec 1-introduction
 
Lec 6-
Lec 6-Lec 6-
Lec 6-
 
presentation skill
presentation skillpresentation skill
presentation skill
 
Lec 4
Lec 4Lec 4
Lec 4
 
Lec 3
Lec 3Lec 3
Lec 3
 
Lec 2
Lec 2Lec 2
Lec 2
 

Dernier

Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsKarakKing
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 

Dernier (20)

Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 

Image processing 2

  • 1.
  • 2.
  • 3. Chapter 4: Image Enhancement in the Frequency Domain
  • 4. Fundamentals Fourier: a periodic function can be represented by the sum of sines/ cosines of different frequencies, multiplied by a different coefficient (Fourier series). Non-periodic functions can also be represented as the integral of sines/ cosines multiplied by weighing function (Fourier transform)
  • 5. •The relationship between the harmonics returns by the DFT and the periodic component in the time domain is illustrated below.
  • 6.
  • 7. Introduction to the Fourier Transform f(x): continuous function of a real variable x Fourier transform of f(x):       dxuxjxfuFxf ]2exp[)()()(  where 1j
  • 8. Introduction to the Fourier Transform (u) is the frequency variable. The integral of Eq. shows that F(u) is composed of an infinite sum of sine and cosine terms and… Each value of u determines the frequency of its corresponding sine- cosine pair.
  • 9.
  • 10. Introduction to the Fourier Transform Given F(u), f(x) can be obtained by the inverse Fourier transform: )()}({1 xfuF      duuxjuF ]2exp[)(  The above two equations are the Fourier transform pair.
  • 11. Discrete Fourier Transform The discrete Fourier transform pair that applies to sampled functions is given by: F(u)  1 M f (x)exp[ j2ux / M] x 0 M 1  For u=0,1,2,…,M-1 f (x)  f (u)exp[ j2ux / M] u 0 M 1  For x=0,1,2,…,M-1
  • 12. Discrete Fourier Transform • In a 2-variable case, the discrete FT pair is:       1 0 1 0 )]//(2exp[),( 1 ),( M x N y NvyMuxjyxf MN vuF        1 0 1 0 )]//(2exp[),(),( M u N v NvyMuxjvuFyxf  For u=0,1,2,…,M-1 and v=0,1,2,…,N-1 For x=0,1,2,…,M-1 and y=0,1,2,…,N-1
  • 13. Introduction to the Fourier Transform • Fourier spectrum:   2/122 ),(),(),( vuIvuRvuF  • Phase:         ),( ),( tan),( 1 vuR vuI vu • Power spectrum: ),(),(),(),( 222 vuIvuRvuFvuP 
  • 14.
  • 15.
  • 16. Image Enhancement in the Frequency Domain
  • 17.
  • 18.
  • 19.
  • 20. Enhancement in the Frequency Domain Types of enhancement that can be done: Lowpass filtering: reduce the high- frequency content -- blurring or smoothing Highpass filtering: increase the magnitude of high-frequency components relative to low-frequency components -- sharpening.
  • 21. Image Enhancement in the Frequency Domain
  • 22. Image Enhancement in the Frequency Domain
  • 23. Lowpass Filtering in the Frequency Domain Edges, noise contribute significantly to the high-frequency content of the FT of an image. Blurring/smoothing is achieved by reducing a specified range of high-frequency components: ),(),(),( vuFvuHvuG 
  • 24. Smoothing in the Frequency Domain G(u,v) = H(u,v) F(u,v) Ideal Butterworth (parameter: filter order) Gaussian
  • 25. Ideal Filter (Lowpass) A 2-D ideal low-pass filter:       0 0 ),(if0 ),(if1 ),( DvuD DvuD vuH where D0 is a specified nonnegative quantity and D(u,v) is the distance from point (u,v) to the center of the frequency rectangle. Center of frequency rectangle: (u,v)=(M/2,N/2) Distance from any point to the center (origin) of the FT: 2/122 )(),( vuvuD 
  • 26. Image Enhancement in the Frequency Domain
  • 27. Ideal Filter (Lowpass) Ideal: all frequencies inside a circle of radius D0 are passed with no attenuation all frequencies outside this circle are completely attenuated.
  • 28. Ideal Filter (Lowpass) Cutoff-frequency: the point of transition between H(u,v)=1 and H(u,v)=0 (D0) To establish cutoff frequency loci, we typically compute circles that enclose specified amounts of total image power PT.
  • 29. Image Enhancement in the Frequency Domain
  • 30.
  • 31. Butterworth Filter (Lowpass) • This filter does not have a sharp discontinuity establishing a clear cutoff between passed and filtered frequencies. n DvuD vuH 2 0 ]/),([1 1 ),(  
  • 32. Butterworth Filter (Lowpass) To define a cutoff frequency locus: at points for which H(u,v) is down to a certain fraction of its maximum value. When D(u,v) = D0, H(u,v) = 0.5 i.e. down 50% from its maximum value of 1.
  • 33. Image Enhancement in the Frequency Domain
  • 34.
  • 35. Gaussian Lowpass Filter D(u,v): distance from the origin of FT Parameter: =D0 (cutoff frequency) The inverse FT of the Gaussian filter is also a Gaussian H(u,v)  eD2 (u,v)/2 2
  • 36. Image Enhancement in the Frequency Domain
  • 37.
  • 38.
  • 39.
  • 40. Image Enhancement in the Frequency Domain
  • 41. Image Enhancement in the Frequency Domain
  • 42. Sharpening (Highpass) Filtering Image sharpening can be achieved by a highpass filtering process, which attenuates the low- frequency components without disturbing high-frequency information. Zero-phase-shift filters: radially symmetric and completely specified by a cross section. Hhp (u,v) 1 Hlp (u,v)
  • 43. Ideal Filter (Highpass) This filter is the opposite of the ideal lowpass filter.       0 0 ),(if1 ),(if0 ),( DvuD DvuD vuH
  • 44.
  • 45. Butterworth Filter (Highpass) High-frequency emphasis: Adding a constant to a highpass filter to preserve the low- frequency components. n vuDD vuH 2 0 )],(/[1 1 ),(  
  • 46.
  • 47. Gaussian Highpass Filter D(u,v): distance from the origin of FT Parameter: =D0 (cutoff frequency) H(u,v) 1eD2 (u,v)/2 2
  • 48.
  • 49.
  • 50. L DvuDc LH o evuH    ]1)[(),( )/),(( 22 It affects the low and high frequency components of the Fourier Transform in different ways.
  • 51. By using the homomorphic filter the dynamic range in the brightness is reduced, together with an increase in contrast, this effect brought Out the details of objects inside the shelter, in Fig. 4.33, and balance The gray levels of the outside wall, The enhanced image also sharper.
  • 52. Fast Fourier Transform The decomposition of FT makes the number of multiplications and additions proportional to M log2M: Fast Fourier Transform or FFT algorithm. E.g. if M=1021 the usual method will require 1000000 operations, while FFT will require 10000.
  • 53.
  • 54.
  • 56.
  • 57. Degradation Model f(x,y) h(x,y) g(x,y) n(x,y) S Degradation Model: g = h*f + n
  • 58. Restoration Model g(x,y) Degradation Model f(x,y) Restoration Filter Constrained Unconstrained • Inverse Filter • Wiener Filter
  • 59.
  • 60. Where m is the mean of the average value of z, And  is the standard deviation.
  • 61.
  • 62.
  • 63.
  • 64.
  • 65.
  • 66.
  • 67.
  • 68.
  • 69.
  • 70.
  • 71.
  • 72.
  • 73. By using the data from the image strips, the mean m and the Variance s of the gray level can be calculated, where:
  • 74. Noise Removal Restoration Method Mean filters: 1-Arithmetic mean filter, 2-Geometric mean filter, 3-Harmonic mean filter, 4-Contra-harmonic mean filter. Adaptive filters 1-Adaptive local noise reduction filter, 2-Adaptive median filter. Order statistics filters: 1-Median filter, 2-Max and min filters, 3-Mid-point filter, 4-Alpha-trimmed filters.
  • 75.
  • 76.
  • 77.
  • 78.
  • 79.
  • 80. gr(s,t) represents the remaining mn-d pixels, d is range from 0 to mn-1.
  • 81.
  • 82.
  • 83.
  • 84.
  • 85. , Pa, Pb less than 0.2. The following algorithm try to decided that zmed , zx,y are not an impulse, (Zmin and zmax are considered to be impulse values), then keep the value of zx,y ,.Otherwise, change window size up to Smax before assigning the center pixel the to zmed or zx,y value. Zx,y: gray level at coordinates center (x,y).
  • 86.
  • 87.
  • 88.
  • 89. Where D(u,v) is the distance from the origin, W is the width of the band, and Do is its radial center. D W D0 A frequency band Ideal Butterworth Gaussian
  • 90.
  • 91.
  • 92.
  • 93. Discontinuities: abrupt change in gray level intensity; Similarity: similar region according to predefined criteria.
  • 94.
  • 95.
  • 96.
  • 97.
  • 99.
  • 100.
  • 101.
  • 102.
  • 103. Gy , a= 90, Gx=0 The angle a is measured with respect to the x-axis a
  • 104.
  • 105. , E is a nonnegative threshold. , A is a nonnegative angle threshold.
  • 106.
  • 107.
  • 108.
  • 110.
  • 111. +ve value white, -ve values zeros. Noting the transitions between black and white, Compare b, e. c) d) e)
  • 113. r r
  • 114.
  • 115. Hough transform algorithm; 1- define the desired increments Dr,and Dq , and qunatize the space accordingly, 2- For every point of interest(typically points found by edge detectors that exceed some threshold value), plug the values for x, and y into the transform equation, then , for each value of q in the quantized space, solve for r, 3- for each r,q pair from step 2 , record the x,y pair in the corresponding block. This constitutes a hit for that particular block. When this process is completed, the number of hits in each block corresponds to the number of pixels on the line . Next , select a threshold and examine the quantization blocks that contain more points than the threshold.
  • 116. Fig.10.20-a shows five points, 1-2-3-4-5, b- is the corresponding lines in HT space, r = N, N is the image size. -90 90 -45 45
  • 117. Segmentation based on similarity 1- Thresholding:
  • 118.
  • 119.
  • 120.
  • 121.
  • 122.
  • 123.
  • 124.
  • 125.
  • 126. Basic adaptive thresholding: It an approach to reduce the effect of nonuniform illumination by divide the image into subimages, such that the illumination of each Subimages is approximately uniform . The following are the steps to perform basic adaptive thresholding to the previous image:
  • 127.
  • 128. 2-
  • 129.
  • 131.
  • 132.
  • 133.
  • 134. Representation Schemes Chain Codes Polygonal Approximations Signatures Boundary Segments The Skeleton of a Region
  • 136. Solu: 2 to 1= 3 directions, counterclockwise, 2_3 + 3_0+ 0_1, and so on, 1 to 0 = 3, 0 to 1 = 1, 1 to 0 = 3, 0 to 3 = 3, 3 to 3 = 0, 3 to 2 = 3, 2 to 2 = 0. First difference code normalize chain code w.r.t rotation. So we get normalization w.r.t starting point 1 0 1 0 3 3 22 Starting point
  • 137.
  • 140. A Signature for boundary representation
  • 141.
  • 142. This algorithm is applied for thinning binary images. Region points are assumed to have value 1 and background points have value 0. The method consists of successive passes of two basic steps applied to the contour points of the given region. With reference to the 8-neighboring notation one can determine the contour points. The first step in the algorithm will be as follows:
  • 143.
  • 144.
  • 145.
  • 146.
  • 147.
  • 148.
  • 149. •Curvature: –Rate of change of slope –i.e. using the difference between the slopes of adjacent boundary segments, which have been represented as straight lines, as a descriptor of curvature at the point of intersection of the segments. – Convex segment: change in slope at p is nonnegative –Concave segment: change in slope at p is negative –Ranges in the change of slope: •Less than 10°  line •More than 90°  corner
  • 150.
  • 151.
  • 152. u
  • 153. The smaller P becomes, the more detail that is lost on the boundary. u