SlideShare a Scribd company logo
IMAGE ENHANCEMENT IN
SPATIAL DOMAIN
A First Course in MachineVision
By: Ehsan Khoramshahi
Definitions
 The principal objective of enhancement is to process an
image so that the result is more suitable for a special
process
 Image Enhancement Fall into two categories:
Enhancement in spatial domain and Frequency domain
 The term spatial domain refers to the Image Plane itself
which is DIRECT manipulation of pixels.
 Frequency domain processing techniques are based on
modifying the Fourier transform of an image.
 The principal objective of enhancement is to process an
image so that the result is more suitable for a special
process
 Image Enhancement Fall into two categories:
Enhancement in spatial domain and Frequency domain
 The term spatial domain refers to the Image Plane itself
which is DIRECT manipulation of pixels.
 Frequency domain processing techniques are based on
modifying the Fourier transform of an image.
The term “SPATIAL Domain”
 Spatial Domain=Aggregate of pixels
composing an image.
 Spatial Domain Methods=Procedures that
operate directly on these pixels.
 Denoted by: g(x,y)=T[f(x,y)]
 F(x,y) : Input Image ,T: Operator on Image
g(x,y): Processed Image.
 T also can operate on a set of Images.
 Spatial Domain=Aggregate of pixels
composing an image.
 Spatial Domain Methods=Procedures that
operate directly on these pixels.
 Denoted by: g(x,y)=T[f(x,y)]
 F(x,y) : Input Image ,T: Operator on Image
g(x,y): Processed Image.
 T also can operate on a set of Images.
Definition of Neighborhood:
 Input for Process: A neighborhood about a
point (x,y)
 The simplest form of input is a one pixel
neighborhood. s=T(r)
T:Transformation Function
s ,r : gray level of f(x,y) and g(x,y) respectively.
 The most basic approach is rectangular sub image
area centered at (x,y)
 Is it the only solution ???
 Input for Process: A neighborhood about a
point (x,y)
 The simplest form of input is a one pixel
neighborhood. s=T(r)
T:Transformation Function
s ,r : gray level of f(x,y) and g(x,y) respectively.
 The most basic approach is rectangular sub image
area centered at (x,y)
 Is it the only solution ???
Linear Transformation
 LinearTransformations:
 S=a*r+b
 LinearTransformations:
 S=a*r+b
Linear Transformation
rs *2.1
rs *5.0
Negative
rs  255
Other forms
Non-linear Transformation
)255/*sin(*255 rs 
Creating a Transformation In
Matlab/Octave
 Step1: Defining the MappingTable
 Step2: Use the Mapping table to transfer
pixel values
 Step3:Visualization
 Step1: Defining the MappingTable
 Step2: Use the Mapping table to transfer
pixel values
 Step3:Visualization
Piece-wise linear transformation
functions
 The form of them could be arbitrarily
complex
 A practical implementation of some
important transformations can be formulated
only as piece-wise functions.
 The form of them could be arbitrarily
complex
 A practical implementation of some
important transformations can be formulated
only as piece-wise functions.
Contrast Stretching
 Is one of the simplest form of piece-wise
linear function.
 Low contrast can result from:
 Poor Illumination
 Lack of dynamic range in the imaging sensor
 Wrong setting of lens aperture.
 Is one of the simplest form of piece-wise
linear function.
 Low contrast can result from:
 Poor Illumination
 Lack of dynamic range in the imaging sensor
 Wrong setting of lens aperture.
Contrast Stretching example
Contrast Stretching example
Linear Transformation cont.
 Gray Level Slicing
 Highlighting a specific range of gray levels in an
image.
 Enhancing features like masses of water in
satellite imageries.
 OneApproach: show high values for pixel of
interest.
 SecondApproach: Brighten the color of interest
 Gray Level Slicing
 Highlighting a specific range of gray levels in an
image.
 Enhancing features like masses of water in
satellite imageries.
 OneApproach: show high values for pixel of
interest.
 SecondApproach: Brighten the color of interest
Slicing Example
Histogram Processing
 Histogram is a un normalized PDF for gray
values.
 It means that it contains the number of pixels
for each gray value.
 So it means there are 3 Histogram for a color
Image, because we have 3 Different Class of
0-255 colors.
 Histogram is a un normalized PDF for gray
values.
 It means that it contains the number of pixels
for each gray value.
 So it means there are 3 Histogram for a color
Image, because we have 3 Different Class of
0-255 colors.
kk nrh )(
Histogram
Histogram
Histogram Equalization
 Histograms could be considered as
Probability Density Functions. So cumulative
density functions could be defined as well.
Again the case of low contrast image
Hist. Equalization Result
Histograms after Hist. equalization
CDF’s after Hist. Equalization
Histogram Matching
 The same concept Except we use the CDF of
one image as a non-linearTransform for
another image.
 The resulting Image will have more or less the
same Contrast as the reference.
 The same concept Except we use the CDF of
one image as a non-linearTransform for
another image.
 The resulting Image will have more or less the
same Contrast as the reference.
Enhancement Using Arithmetic/Logic
Operations
 Performed on a Pixel-by-Pixel basis
 Between two or MORE images.
 Example: subtraction of two images.
 Logic operations=Logic and/or nor xor xnor
 Logic operations operate on a pixel-by-pixel
basis.
 We only concern about 1-“and” 2-”or” 3-“not”
because they are functionally complete
 The other operations could be expresses as a
function of them.
 Performed on a Pixel-by-Pixel basis
 Between two or MORE images.
 Example: subtraction of two images.
 Logic operations=Logic and/or nor xor xnor
 Logic operations operate on a pixel-by-pixel
basis.
 We only concern about 1-“and” 2-”or” 3-“not”
because they are functionally complete
 The other operations could be expresses as a
function of them.
Image Subtraction
 Math formulation:
Background EstimationSource Image
Foreground
Image Averaging
 Notation
 Application:
 Noise Reduction
 Astronomy
 Surveillance
 Background estimation
 Notation
 Application:
 Noise Reduction
 Astronomy
 Surveillance
 Background estimation
Example: background estimation by Image
Averaging
Spatial Filtering
 Input: Neighborhood + Sub-Image
 Output:A single value regarding to each pixel
 Definition: A neighborhood operation works
with the values of the image pixels in the
neighborhood and values of a sub-image that
has the same dimension….
 Sub-Image is called: Mask, Kernel,Template orWindow
 Input: Neighborhood + Sub-Image
 Output:A single value regarding to each pixel
 Definition: A neighborhood operation works
with the values of the image pixels in the
neighborhood and values of a sub-image that
has the same dimension….
 Sub-Image is called: Mask, Kernel,Template orWindow
Spatial Filters
P1 P2 P3 . . . . . . P10
P11 P12 P13 P14
M1 M2 M3
M4 M5 M6
M7 M8 M9
Mask(w)
Original Image(f)
Response to Mask
Smoothing Filters
 N-by-N filters used for noise reduction
 Blur an image and remove the high frequency
part of signal
 Usually Gaussian Noise could efficiently
remove by them.
 Equivalent to High-pass filters in Frequency
domain.
 Most-basic type is Mask=ones(3)
 N-by-N filters used for noise reduction
 Blur an image and remove the high frequency
part of signal
 Usually Gaussian Noise could efficiently
remove by them.
 Equivalent to High-pass filters in Frequency
domain.
 Most-basic type is Mask=ones(3)
Smoothing Filter Example
Order-Statistics Filters
 Median
 Principal function: to force points with distinct gray
values to be more like their neighbors.
 Very suitable for eliminate salt and pepper noise
 Max
 Min
 Mode
 They all find an ordering-related elements in a
defined neighborhood and replace it with the
original pixel.
 Median
 Principal function: to force points with distinct gray
values to be more like their neighbors.
 Very suitable for eliminate salt and pepper noise
 Max
 Min
 Mode
 They all find an ordering-related elements in a
defined neighborhood and replace it with the
original pixel.
Order-statistics Filters Example
 Grab a 3x3 Neighborhood
{10,20,20,20,15,20,20,25,100}
 Sort them
{10,15,20,20,20,20,25,100}
 Calculate order-statistics Filter, example:
Median:20
 Grab a 3x3 Neighborhood
{10,20,20,20,15,20,20,25,100}
 Sort them
{10,15,20,20,20,20,25,100}
 Calculate order-statistics Filter, example:
Median:20
Order-Statistics Median Example.
Sharpening
 Objective: to highlight detail in an image or
enhance detail that has been blurred, either
in error or as a natural effect of a particular
method of image acquisition.
 Applications are vary and important from
electronic printing and medical imaging to
industrial inspection and autonomous
guidance in military systems.
 Objective: to highlight detail in an image or
enhance detail that has been blurred, either
in error or as a natural effect of a particular
method of image acquisition.
 Applications are vary and important from
electronic printing and medical imaging to
industrial inspection and autonomous
guidance in military systems.
Sharpening cont.
 Image blurring can accomplished in the
spatial domain by pixel averaging in a
neighborhood.
 Averaging is analogous to integration
 So it is logical to conclude that sharpening
could be accomplished by spatial
differentiation
 Image blurring can accomplished in the
spatial domain by pixel averaging in a
neighborhood.
 Averaging is analogous to integration
 So it is logical to conclude that sharpening
could be accomplished by spatial
differentiation
What will be revealed from
image sharpening
 Strength of the response of a derivative
operator is proportional to the degree of
discontinuity of the image at that point
 So image differentiation will enhances
 Edges
 Other discontinuities (like Noise)
 Deemphasizes
 Areas with slowly varying gray-level-values
 Strength of the response of a derivative
operator is proportional to the degree of
discontinuity of the image at that point
 So image differentiation will enhances
 Edges
 Other discontinuities (like Noise)
 Deemphasizes
 Areas with slowly varying gray-level-values
Fundamental Properties of
sharpening filters
 To simplify we will focus on one dimensional
derivative
 We are interested on behavior in
 Flat segments
 At the onset and end of discontinuities(step,ramp)
 Along gray level ramps
 To simplify we will focus on one dimensional
derivative
 We are interested on behavior in
 Flat segments
 At the onset and end of discontinuities(step,ramp)
 Along gray level ramps
First order derivative properties
 Any definition for fist order should satisfy:
 Must be zero in flat segments
 Must be non-zero at the onset of a gray-level step
or ramp
 Must be non-zero along ramps
 Any definition for fist order should satisfy:
 Must be zero in flat segments
 Must be non-zero at the onset of a gray-level step
or ramp
 Must be non-zero along ramps
Second derivative properties
 Any definition should satisfy:
 Must be zero in flat areas
 Must be non-zero at the onset and end of a gray-
level step or ramp
 Must be zero along ramps of constant slpe
 Any definition should satisfy:
 Must be zero in flat areas
 Must be non-zero at the onset and end of a gray-
level step or ramp
 Must be zero along ramps of constant slpe
Basic Definitions
 A basic definition of the first order derivative
of a one-dimensional function f(x):
 Second order derivative
 A basic definition of the first order derivative
of a one-dimensional function f(x):
 Second order derivative
1st and 2nd order Derivatives
Derivatives Summary
 1st order derivative:
 Produces thicker edges in an image
 Stronger response to gray level step
 2nd order derivative
 Stronger response fine details, such as thin lines and
isolated points
 Produce double response to step change in gray level
 Their responses is greater to a point rather than a line,
to a line rather than a step.
 Which one we should choose?
 In most applications, the 2nd derivative is better suited
than the 1st for image enhancement
 1st order derivative:
 Produces thicker edges in an image
 Stronger response to gray level step
 2nd order derivative
 Stronger response fine details, such as thin lines and
isolated points
 Produce double response to step change in gray level
 Their responses is greater to a point rather than a line,
to a line rather than a step.
 Which one we should choose?
 In most applications, the 2nd derivative is better suited
than the 1st for image enhancement
Isotropic filters
 Their response is independent of the
discontinuities in the image to which the filter
applied.
 So Isotropic filters are rotation invariant, so
rotating and image and then applying the
filter is same as applying the filter then
rotating the result.
 It can be shown(Rosenfeld and Kak [1982])
that the simplest isotropic derivative
operation is Laplacian.
 Their response is independent of the
discontinuities in the image to which the filter
applied.
 So Isotropic filters are rotation invariant, so
rotating and image and then applying the
filter is same as applying the filter then
rotating the result.
 It can be shown(Rosenfeld and Kak [1982])
that the simplest isotropic derivative
operation is Laplacian.
Laplacian
 Formula
 Derivative of any order is linear so Laplacian
is a linear operation
 Discrete form of equation
 Formula
 Derivative of any order is linear so Laplacian
is a linear operation
 Discrete form of equation
Laplacian Mask
Laplacian Mask Demo
Sharpening by Using Laplacian
 Adding the original Image the absolute value
of Laplacian operator
Simplification over the last sharpening
process
Unsharp Masking
 A process used for many years in publishing
industries for image sharpening
 Consist of subtracting a blurred version of
image from the image itself.
 This process called “unsharp Masking”
 A process used for many years in publishing
industries for image sharpening
 Consist of subtracting a blurred version of
image from the image itself.
 This process called “unsharp Masking”
High-Boost Filter
 A slight further generalization of unsharp-masking is called high-
boost filtering
 Rewrite high-boost equation:
 IfA=1 then high-boost is a regular Laplacian.
 A slight further generalization of unsharp-masking is called high-
boost filtering
 Rewrite high-boost equation:
 IfA=1 then high-boost is a regular Laplacian.
Effect of High-Boost on a Dark
Image
IMAGE ENHANCEMENT IN
FREQUENCY DOMAIN
A First Course in MachineVision
Background
 Discovered by “Jean Baptiste Joseph Fourier”.
 Published as aTheory in the book:”Analytic
Theory of Heat” [1822].
 55 years later translated in English by
Freeman[1878].
 Fourier express that: any function that
periodically repeats itself can be expressed as a
sum of sines/or cosines of different frequencies,
each multiplied by a different coefficient(we call
this sum Fourier series).
 Discovered by “Jean Baptiste Joseph Fourier”.
 Published as aTheory in the book:”Analytic
Theory of Heat” [1822].
 55 years later translated in English by
Freeman[1878].
 Fourier express that: any function that
periodically repeats itself can be expressed as a
sum of sines/or cosines of different frequencies,
each multiplied by a different coefficient(we call
this sum Fourier series).
Expressing a complicated
periodic function by sines
One dimensional Fourier
Transform
 Direct
 Inverse
 Components of FourierTransform are
complex numbers (Real and Imaginary Part)
 So we have two Images:
 Magnitude or Spectrum ofTransform
 PhaseAngle or Phase spectrum ofTransform
 Direct
 Inverse
 Components of FourierTransform are
complex numbers (Real and Imaginary Part)
 So we have two Images:
 Magnitude or Spectrum ofTransform
 PhaseAngle or Phase spectrum ofTransform
Fourier Cont.
 Fourier
 Magnitude
 Phase Angle
 Fourier
 Magnitude
 Phase Angle
Application of DFT
 Filtering: Low-pass and High-pass
 Convolution in Spatial Domain is a simple
multiplication in Frequency Domain
 So Mask filters are easier in Frequency under
the condition that we have specialized
hardware which can run DFT very fast.
 Filtering: Low-pass and High-pass
 Convolution in Spatial Domain is a simple
multiplication in Frequency Domain
 So Mask filters are easier in Frequency under
the condition that we have specialized
hardware which can run DFT very fast.

More Related Content

What's hot

COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transf...
COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transf...COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transf...
COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transf...
Hemantha Kulathilake
 
Histogram Processing
Histogram ProcessingHistogram Processing
Histogram Processing
Amnaakhaan
 
Image processing second unit Notes
Image processing second unit NotesImage processing second unit Notes
Image processing second unit Notes
AAKANKSHA JAIN
 
Histogram equalization
Histogram equalizationHistogram equalization
Histogram equalization
11mr11mahesh
 
Intensity Transformation
Intensity TransformationIntensity Transformation
Intensity Transformation
Amnaakhaan
 
Digital image processing img smoothning
Digital image processing img smoothningDigital image processing img smoothning
Digital image processing img smoothningVinay Gupta
 
Image Enhancement - Point Processing
Image Enhancement - Point ProcessingImage Enhancement - Point Processing
Image Enhancement - Point Processing
Gayathri31093
 
Lect 03 - first portion
Lect 03 - first portionLect 03 - first portion
Lect 03 - first portion
Moe Moe Myint
 
Lecture 7
Lecture 7Lecture 7
Lecture 7
Wael Sharba
 
SPATIAL FILTERING IN IMAGE PROCESSING
SPATIAL FILTERING IN IMAGE PROCESSINGSPATIAL FILTERING IN IMAGE PROCESSING
SPATIAL FILTERING IN IMAGE PROCESSING
muthu181188
 
Image enhancement
Image enhancementImage enhancement
Image enhancement
shabanam tamboli
 
Spatial Filters (Digital Image Processing)
Spatial Filters (Digital Image Processing)Spatial Filters (Digital Image Processing)
Spatial Filters (Digital Image Processing)
Kalyan Acharjya
 
03 digital image fundamentals DIP
03 digital image fundamentals DIP03 digital image fundamentals DIP
03 digital image fundamentals DIP
babak danyal
 
A Comparative Study of Histogram Equalization Based Image Enhancement Techniq...
A Comparative Study of Histogram Equalization Based Image Enhancement Techniq...A Comparative Study of Histogram Equalization Based Image Enhancement Techniq...
A Comparative Study of Histogram Equalization Based Image Enhancement Techniq...
Shahbaz Alam
 
Histogram based enhancement
Histogram based enhancementHistogram based enhancement
Histogram based enhancement
liba manopriya.J
 
Image enhancement in the spatial domain1
Image enhancement in the spatial domain1Image enhancement in the spatial domain1
Image enhancement in the spatial domain1
shabanam tamboli
 
Image Processing: Spatial filters
Image Processing: Spatial filtersImage Processing: Spatial filters
Image Processing: Spatial filters
A B Shinde
 
3.point operation and histogram based image enhancement
3.point operation and histogram based image enhancement3.point operation and histogram based image enhancement
3.point operation and histogram based image enhancement
mukesh bhardwaj
 

What's hot (20)

COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transf...
COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transf...COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transf...
COM2304: Intensity Transformation and Spatial Filtering – I (Intensity Transf...
 
Histogram Processing
Histogram ProcessingHistogram Processing
Histogram Processing
 
Image processing second unit Notes
Image processing second unit NotesImage processing second unit Notes
Image processing second unit Notes
 
Histogram equalization
Histogram equalizationHistogram equalization
Histogram equalization
 
Intensity Transformation
Intensity TransformationIntensity Transformation
Intensity Transformation
 
Digital image processing img smoothning
Digital image processing img smoothningDigital image processing img smoothning
Digital image processing img smoothning
 
Image Enhancement - Point Processing
Image Enhancement - Point ProcessingImage Enhancement - Point Processing
Image Enhancement - Point Processing
 
point operations in image processing
point operations in image processingpoint operations in image processing
point operations in image processing
 
Lect 03 - first portion
Lect 03 - first portionLect 03 - first portion
Lect 03 - first portion
 
Lecture 7
Lecture 7Lecture 7
Lecture 7
 
SPATIAL FILTERING IN IMAGE PROCESSING
SPATIAL FILTERING IN IMAGE PROCESSINGSPATIAL FILTERING IN IMAGE PROCESSING
SPATIAL FILTERING IN IMAGE PROCESSING
 
Image enhancement
Image enhancementImage enhancement
Image enhancement
 
Spatial Filters (Digital Image Processing)
Spatial Filters (Digital Image Processing)Spatial Filters (Digital Image Processing)
Spatial Filters (Digital Image Processing)
 
Point Processing
Point ProcessingPoint Processing
Point Processing
 
03 digital image fundamentals DIP
03 digital image fundamentals DIP03 digital image fundamentals DIP
03 digital image fundamentals DIP
 
A Comparative Study of Histogram Equalization Based Image Enhancement Techniq...
A Comparative Study of Histogram Equalization Based Image Enhancement Techniq...A Comparative Study of Histogram Equalization Based Image Enhancement Techniq...
A Comparative Study of Histogram Equalization Based Image Enhancement Techniq...
 
Histogram based enhancement
Histogram based enhancementHistogram based enhancement
Histogram based enhancement
 
Image enhancement in the spatial domain1
Image enhancement in the spatial domain1Image enhancement in the spatial domain1
Image enhancement in the spatial domain1
 
Image Processing: Spatial filters
Image Processing: Spatial filtersImage Processing: Spatial filters
Image Processing: Spatial filters
 
3.point operation and histogram based image enhancement
3.point operation and histogram based image enhancement3.point operation and histogram based image enhancement
3.point operation and histogram based image enhancement
 

Similar to 4 image enhancement in spatial domain

UNIT-2 image enhancement.pdf Image Processing Unit 2 AKTU
UNIT-2 image enhancement.pdf Image Processing Unit 2 AKTUUNIT-2 image enhancement.pdf Image Processing Unit 2 AKTU
UNIT-2 image enhancement.pdf Image Processing Unit 2 AKTU
ankushspencer015
 
Lec_3_Image Enhancement_spatial Domain.pdf
Lec_3_Image Enhancement_spatial Domain.pdfLec_3_Image Enhancement_spatial Domain.pdf
Lec_3_Image Enhancement_spatial Domain.pdf
nagwaAboElenein
 
3rd unit.pptx
3rd unit.pptx3rd unit.pptx
3rd unit.pptx
ssuser0bf6a8
 
Digital image processing - Image Enhancement (MATERIAL)
Digital image processing  - Image Enhancement (MATERIAL)Digital image processing  - Image Enhancement (MATERIAL)
Digital image processing - Image Enhancement (MATERIAL)
Mathankumar S
 
Digital Image Processing - Image Enhancement
Digital Image Processing  - Image EnhancementDigital Image Processing  - Image Enhancement
Digital Image Processing - Image Enhancement
Mathankumar S
 
06 spatial filtering DIP
06 spatial filtering DIP06 spatial filtering DIP
06 spatial filtering DIP
babak danyal
 
Lec_2_Digital Image Fundamentals.pdf
Lec_2_Digital Image Fundamentals.pdfLec_2_Digital Image Fundamentals.pdf
Lec_2_Digital Image Fundamentals.pdf
nagwaAboElenein
 
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
kamaluddinnstu
 
Image_processing_unit2_SPPU_Syllabus.pptx
Image_processing_unit2_SPPU_Syllabus.pptxImage_processing_unit2_SPPU_Syllabus.pptx
Image_processing_unit2_SPPU_Syllabus.pptx
Mayuri Narkhede
 
CSE367 Lecture- image sinal processing lecture
CSE367 Lecture- image sinal processing lectureCSE367 Lecture- image sinal processing lecture
CSE367 Lecture- image sinal processing lecture
FatmaNewagy1
 
image enhancement
 image enhancement image enhancement
image enhancement
Rajendra Prasad
 
Final Report for project
Final Report for projectFinal Report for project
Final Report for projectRajarshi Roy
 
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
ssuser7ec6af
 
DIP Lecture 7-9.pdf
DIP Lecture 7-9.pdfDIP Lecture 7-9.pdf
DIP Lecture 7-9.pdf
SAhsanShahBukhari
 
Image enhancement
Image enhancementImage enhancement
Image enhancement
Kuppusamy P
 
Spatial filtering
Spatial filteringSpatial filtering
Spatial filtering
shabanam tamboli
 
Translation Invariance (TI) based Novel Approach for better De-noising of Dig...
Translation Invariance (TI) based Novel Approach for better De-noising of Dig...Translation Invariance (TI) based Novel Approach for better De-noising of Dig...
Translation Invariance (TI) based Novel Approach for better De-noising of Dig...
IRJET Journal
 
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
 
Dip digital image 3
Dip digital image 3Dip digital image 3
Dip digital image 3
Shajun Nisha
 

Similar to 4 image enhancement in spatial domain (20)

UNIT-2 image enhancement.pdf Image Processing Unit 2 AKTU
UNIT-2 image enhancement.pdf Image Processing Unit 2 AKTUUNIT-2 image enhancement.pdf Image Processing Unit 2 AKTU
UNIT-2 image enhancement.pdf Image Processing Unit 2 AKTU
 
Lec_3_Image Enhancement_spatial Domain.pdf
Lec_3_Image Enhancement_spatial Domain.pdfLec_3_Image Enhancement_spatial Domain.pdf
Lec_3_Image Enhancement_spatial Domain.pdf
 
3rd unit.pptx
3rd unit.pptx3rd unit.pptx
3rd unit.pptx
 
Digital image processing - Image Enhancement (MATERIAL)
Digital image processing  - Image Enhancement (MATERIAL)Digital image processing  - Image Enhancement (MATERIAL)
Digital image processing - Image Enhancement (MATERIAL)
 
Digital Image Processing - Image Enhancement
Digital Image Processing  - Image EnhancementDigital Image Processing  - Image Enhancement
Digital Image Processing - Image Enhancement
 
06 spatial filtering DIP
06 spatial filtering DIP06 spatial filtering DIP
06 spatial filtering DIP
 
Lec_2_Digital Image Fundamentals.pdf
Lec_2_Digital Image Fundamentals.pdfLec_2_Digital Image Fundamentals.pdf
Lec_2_Digital Image Fundamentals.pdf
 
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
 
mini prjt
mini prjtmini prjt
mini prjt
 
Image_processing_unit2_SPPU_Syllabus.pptx
Image_processing_unit2_SPPU_Syllabus.pptxImage_processing_unit2_SPPU_Syllabus.pptx
Image_processing_unit2_SPPU_Syllabus.pptx
 
CSE367 Lecture- image sinal processing lecture
CSE367 Lecture- image sinal processing lectureCSE367 Lecture- image sinal processing lecture
CSE367 Lecture- image sinal processing lecture
 
image enhancement
 image enhancement image enhancement
image enhancement
 
Final Report for project
Final Report for projectFinal Report for project
Final Report for project
 
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
 
DIP Lecture 7-9.pdf
DIP Lecture 7-9.pdfDIP Lecture 7-9.pdf
DIP Lecture 7-9.pdf
 
Image enhancement
Image enhancementImage enhancement
Image enhancement
 
Spatial filtering
Spatial filteringSpatial filtering
Spatial filtering
 
Translation Invariance (TI) based Novel Approach for better De-noising of Dig...
Translation Invariance (TI) based Novel Approach for better De-noising of Dig...Translation Invariance (TI) based Novel Approach for better De-noising of Dig...
Translation Invariance (TI) based Novel Approach for better De-noising of Dig...
 
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
 
Dip digital image 3
Dip digital image 3Dip digital image 3
Dip digital image 3
 

Recently uploaded

在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
obonagu
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
Kamal Acharya
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
Pipe Restoration Solutions
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
VENKATESHvenky89705
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
JoytuBarua2
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
fxintegritypublishin
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
Kamal Acharya
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
Robbie Edward Sayers
 
Vaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdfVaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdf
Kamal Acharya
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
TeeVichai
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
ankuprajapati0525
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
Osamah Alsalih
 
Event Management System Vb Net Project Report.pdf
Event Management System Vb Net  Project Report.pdfEvent Management System Vb Net  Project Report.pdf
Event Management System Vb Net Project Report.pdf
Kamal Acharya
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
AJAYKUMARPUND1
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
MdTanvirMahtab2
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
Jayaprasanna4
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
karthi keyan
 
Democratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek AryaDemocratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek Arya
abh.arya
 
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdfCOLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
Kamal Acharya
 

Recently uploaded (20)

在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
 
Vaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdfVaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdf
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
 
Event Management System Vb Net Project Report.pdf
Event Management System Vb Net  Project Report.pdfEvent Management System Vb Net  Project Report.pdf
Event Management System Vb Net Project Report.pdf
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
 
Democratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek AryaDemocratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek Arya
 
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdfCOLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
 

4 image enhancement in spatial domain

  • 1. IMAGE ENHANCEMENT IN SPATIAL DOMAIN A First Course in MachineVision By: Ehsan Khoramshahi
  • 2. Definitions  The principal objective of enhancement is to process an image so that the result is more suitable for a special process  Image Enhancement Fall into two categories: Enhancement in spatial domain and Frequency domain  The term spatial domain refers to the Image Plane itself which is DIRECT manipulation of pixels.  Frequency domain processing techniques are based on modifying the Fourier transform of an image.  The principal objective of enhancement is to process an image so that the result is more suitable for a special process  Image Enhancement Fall into two categories: Enhancement in spatial domain and Frequency domain  The term spatial domain refers to the Image Plane itself which is DIRECT manipulation of pixels.  Frequency domain processing techniques are based on modifying the Fourier transform of an image.
  • 3. The term “SPATIAL Domain”  Spatial Domain=Aggregate of pixels composing an image.  Spatial Domain Methods=Procedures that operate directly on these pixels.  Denoted by: g(x,y)=T[f(x,y)]  F(x,y) : Input Image ,T: Operator on Image g(x,y): Processed Image.  T also can operate on a set of Images.  Spatial Domain=Aggregate of pixels composing an image.  Spatial Domain Methods=Procedures that operate directly on these pixels.  Denoted by: g(x,y)=T[f(x,y)]  F(x,y) : Input Image ,T: Operator on Image g(x,y): Processed Image.  T also can operate on a set of Images.
  • 4. Definition of Neighborhood:  Input for Process: A neighborhood about a point (x,y)  The simplest form of input is a one pixel neighborhood. s=T(r) T:Transformation Function s ,r : gray level of f(x,y) and g(x,y) respectively.  The most basic approach is rectangular sub image area centered at (x,y)  Is it the only solution ???  Input for Process: A neighborhood about a point (x,y)  The simplest form of input is a one pixel neighborhood. s=T(r) T:Transformation Function s ,r : gray level of f(x,y) and g(x,y) respectively.  The most basic approach is rectangular sub image area centered at (x,y)  Is it the only solution ???
  • 5. Linear Transformation  LinearTransformations:  S=a*r+b  LinearTransformations:  S=a*r+b
  • 10. Creating a Transformation In Matlab/Octave  Step1: Defining the MappingTable  Step2: Use the Mapping table to transfer pixel values  Step3:Visualization  Step1: Defining the MappingTable  Step2: Use the Mapping table to transfer pixel values  Step3:Visualization
  • 11. Piece-wise linear transformation functions  The form of them could be arbitrarily complex  A practical implementation of some important transformations can be formulated only as piece-wise functions.  The form of them could be arbitrarily complex  A practical implementation of some important transformations can be formulated only as piece-wise functions.
  • 12. Contrast Stretching  Is one of the simplest form of piece-wise linear function.  Low contrast can result from:  Poor Illumination  Lack of dynamic range in the imaging sensor  Wrong setting of lens aperture.  Is one of the simplest form of piece-wise linear function.  Low contrast can result from:  Poor Illumination  Lack of dynamic range in the imaging sensor  Wrong setting of lens aperture.
  • 15. Linear Transformation cont.  Gray Level Slicing  Highlighting a specific range of gray levels in an image.  Enhancing features like masses of water in satellite imageries.  OneApproach: show high values for pixel of interest.  SecondApproach: Brighten the color of interest  Gray Level Slicing  Highlighting a specific range of gray levels in an image.  Enhancing features like masses of water in satellite imageries.  OneApproach: show high values for pixel of interest.  SecondApproach: Brighten the color of interest
  • 17. Histogram Processing  Histogram is a un normalized PDF for gray values.  It means that it contains the number of pixels for each gray value.  So it means there are 3 Histogram for a color Image, because we have 3 Different Class of 0-255 colors.  Histogram is a un normalized PDF for gray values.  It means that it contains the number of pixels for each gray value.  So it means there are 3 Histogram for a color Image, because we have 3 Different Class of 0-255 colors. kk nrh )(
  • 20. Histogram Equalization  Histograms could be considered as Probability Density Functions. So cumulative density functions could be defined as well.
  • 21. Again the case of low contrast image
  • 23. Histograms after Hist. equalization
  • 24. CDF’s after Hist. Equalization
  • 25. Histogram Matching  The same concept Except we use the CDF of one image as a non-linearTransform for another image.  The resulting Image will have more or less the same Contrast as the reference.  The same concept Except we use the CDF of one image as a non-linearTransform for another image.  The resulting Image will have more or less the same Contrast as the reference.
  • 26. Enhancement Using Arithmetic/Logic Operations  Performed on a Pixel-by-Pixel basis  Between two or MORE images.  Example: subtraction of two images.  Logic operations=Logic and/or nor xor xnor  Logic operations operate on a pixel-by-pixel basis.  We only concern about 1-“and” 2-”or” 3-“not” because they are functionally complete  The other operations could be expresses as a function of them.  Performed on a Pixel-by-Pixel basis  Between two or MORE images.  Example: subtraction of two images.  Logic operations=Logic and/or nor xor xnor  Logic operations operate on a pixel-by-pixel basis.  We only concern about 1-“and” 2-”or” 3-“not” because they are functionally complete  The other operations could be expresses as a function of them.
  • 27. Image Subtraction  Math formulation: Background EstimationSource Image Foreground
  • 28. Image Averaging  Notation  Application:  Noise Reduction  Astronomy  Surveillance  Background estimation  Notation  Application:  Noise Reduction  Astronomy  Surveillance  Background estimation
  • 29. Example: background estimation by Image Averaging
  • 30. Spatial Filtering  Input: Neighborhood + Sub-Image  Output:A single value regarding to each pixel  Definition: A neighborhood operation works with the values of the image pixels in the neighborhood and values of a sub-image that has the same dimension….  Sub-Image is called: Mask, Kernel,Template orWindow  Input: Neighborhood + Sub-Image  Output:A single value regarding to each pixel  Definition: A neighborhood operation works with the values of the image pixels in the neighborhood and values of a sub-image that has the same dimension….  Sub-Image is called: Mask, Kernel,Template orWindow
  • 31. Spatial Filters P1 P2 P3 . . . . . . P10 P11 P12 P13 P14 M1 M2 M3 M4 M5 M6 M7 M8 M9 Mask(w) Original Image(f) Response to Mask
  • 32. Smoothing Filters  N-by-N filters used for noise reduction  Blur an image and remove the high frequency part of signal  Usually Gaussian Noise could efficiently remove by them.  Equivalent to High-pass filters in Frequency domain.  Most-basic type is Mask=ones(3)  N-by-N filters used for noise reduction  Blur an image and remove the high frequency part of signal  Usually Gaussian Noise could efficiently remove by them.  Equivalent to High-pass filters in Frequency domain.  Most-basic type is Mask=ones(3)
  • 34. Order-Statistics Filters  Median  Principal function: to force points with distinct gray values to be more like their neighbors.  Very suitable for eliminate salt and pepper noise  Max  Min  Mode  They all find an ordering-related elements in a defined neighborhood and replace it with the original pixel.  Median  Principal function: to force points with distinct gray values to be more like their neighbors.  Very suitable for eliminate salt and pepper noise  Max  Min  Mode  They all find an ordering-related elements in a defined neighborhood and replace it with the original pixel.
  • 35. Order-statistics Filters Example  Grab a 3x3 Neighborhood {10,20,20,20,15,20,20,25,100}  Sort them {10,15,20,20,20,20,25,100}  Calculate order-statistics Filter, example: Median:20  Grab a 3x3 Neighborhood {10,20,20,20,15,20,20,25,100}  Sort them {10,15,20,20,20,20,25,100}  Calculate order-statistics Filter, example: Median:20
  • 37. Sharpening  Objective: to highlight detail in an image or enhance detail that has been blurred, either in error or as a natural effect of a particular method of image acquisition.  Applications are vary and important from electronic printing and medical imaging to industrial inspection and autonomous guidance in military systems.  Objective: to highlight detail in an image or enhance detail that has been blurred, either in error or as a natural effect of a particular method of image acquisition.  Applications are vary and important from electronic printing and medical imaging to industrial inspection and autonomous guidance in military systems.
  • 38. Sharpening cont.  Image blurring can accomplished in the spatial domain by pixel averaging in a neighborhood.  Averaging is analogous to integration  So it is logical to conclude that sharpening could be accomplished by spatial differentiation  Image blurring can accomplished in the spatial domain by pixel averaging in a neighborhood.  Averaging is analogous to integration  So it is logical to conclude that sharpening could be accomplished by spatial differentiation
  • 39. What will be revealed from image sharpening  Strength of the response of a derivative operator is proportional to the degree of discontinuity of the image at that point  So image differentiation will enhances  Edges  Other discontinuities (like Noise)  Deemphasizes  Areas with slowly varying gray-level-values  Strength of the response of a derivative operator is proportional to the degree of discontinuity of the image at that point  So image differentiation will enhances  Edges  Other discontinuities (like Noise)  Deemphasizes  Areas with slowly varying gray-level-values
  • 40. Fundamental Properties of sharpening filters  To simplify we will focus on one dimensional derivative  We are interested on behavior in  Flat segments  At the onset and end of discontinuities(step,ramp)  Along gray level ramps  To simplify we will focus on one dimensional derivative  We are interested on behavior in  Flat segments  At the onset and end of discontinuities(step,ramp)  Along gray level ramps
  • 41. First order derivative properties  Any definition for fist order should satisfy:  Must be zero in flat segments  Must be non-zero at the onset of a gray-level step or ramp  Must be non-zero along ramps  Any definition for fist order should satisfy:  Must be zero in flat segments  Must be non-zero at the onset of a gray-level step or ramp  Must be non-zero along ramps
  • 42. Second derivative properties  Any definition should satisfy:  Must be zero in flat areas  Must be non-zero at the onset and end of a gray- level step or ramp  Must be zero along ramps of constant slpe  Any definition should satisfy:  Must be zero in flat areas  Must be non-zero at the onset and end of a gray- level step or ramp  Must be zero along ramps of constant slpe
  • 43. Basic Definitions  A basic definition of the first order derivative of a one-dimensional function f(x):  Second order derivative  A basic definition of the first order derivative of a one-dimensional function f(x):  Second order derivative
  • 44. 1st and 2nd order Derivatives
  • 45. Derivatives Summary  1st order derivative:  Produces thicker edges in an image  Stronger response to gray level step  2nd order derivative  Stronger response fine details, such as thin lines and isolated points  Produce double response to step change in gray level  Their responses is greater to a point rather than a line, to a line rather than a step.  Which one we should choose?  In most applications, the 2nd derivative is better suited than the 1st for image enhancement  1st order derivative:  Produces thicker edges in an image  Stronger response to gray level step  2nd order derivative  Stronger response fine details, such as thin lines and isolated points  Produce double response to step change in gray level  Their responses is greater to a point rather than a line, to a line rather than a step.  Which one we should choose?  In most applications, the 2nd derivative is better suited than the 1st for image enhancement
  • 46. Isotropic filters  Their response is independent of the discontinuities in the image to which the filter applied.  So Isotropic filters are rotation invariant, so rotating and image and then applying the filter is same as applying the filter then rotating the result.  It can be shown(Rosenfeld and Kak [1982]) that the simplest isotropic derivative operation is Laplacian.  Their response is independent of the discontinuities in the image to which the filter applied.  So Isotropic filters are rotation invariant, so rotating and image and then applying the filter is same as applying the filter then rotating the result.  It can be shown(Rosenfeld and Kak [1982]) that the simplest isotropic derivative operation is Laplacian.
  • 47. Laplacian  Formula  Derivative of any order is linear so Laplacian is a linear operation  Discrete form of equation  Formula  Derivative of any order is linear so Laplacian is a linear operation  Discrete form of equation
  • 50. Sharpening by Using Laplacian  Adding the original Image the absolute value of Laplacian operator
  • 51. Simplification over the last sharpening process
  • 52. Unsharp Masking  A process used for many years in publishing industries for image sharpening  Consist of subtracting a blurred version of image from the image itself.  This process called “unsharp Masking”  A process used for many years in publishing industries for image sharpening  Consist of subtracting a blurred version of image from the image itself.  This process called “unsharp Masking”
  • 53. High-Boost Filter  A slight further generalization of unsharp-masking is called high- boost filtering  Rewrite high-boost equation:  IfA=1 then high-boost is a regular Laplacian.  A slight further generalization of unsharp-masking is called high- boost filtering  Rewrite high-boost equation:  IfA=1 then high-boost is a regular Laplacian.
  • 54. Effect of High-Boost on a Dark Image
  • 55. IMAGE ENHANCEMENT IN FREQUENCY DOMAIN A First Course in MachineVision
  • 56. Background  Discovered by “Jean Baptiste Joseph Fourier”.  Published as aTheory in the book:”Analytic Theory of Heat” [1822].  55 years later translated in English by Freeman[1878].  Fourier express that: any function that periodically repeats itself can be expressed as a sum of sines/or cosines of different frequencies, each multiplied by a different coefficient(we call this sum Fourier series).  Discovered by “Jean Baptiste Joseph Fourier”.  Published as aTheory in the book:”Analytic Theory of Heat” [1822].  55 years later translated in English by Freeman[1878].  Fourier express that: any function that periodically repeats itself can be expressed as a sum of sines/or cosines of different frequencies, each multiplied by a different coefficient(we call this sum Fourier series).
  • 58. One dimensional Fourier Transform  Direct  Inverse  Components of FourierTransform are complex numbers (Real and Imaginary Part)  So we have two Images:  Magnitude or Spectrum ofTransform  PhaseAngle or Phase spectrum ofTransform  Direct  Inverse  Components of FourierTransform are complex numbers (Real and Imaginary Part)  So we have two Images:  Magnitude or Spectrum ofTransform  PhaseAngle or Phase spectrum ofTransform
  • 59. Fourier Cont.  Fourier  Magnitude  Phase Angle  Fourier  Magnitude  Phase Angle
  • 60. Application of DFT  Filtering: Low-pass and High-pass  Convolution in Spatial Domain is a simple multiplication in Frequency Domain  So Mask filters are easier in Frequency under the condition that we have specialized hardware which can run DFT very fast.  Filtering: Low-pass and High-pass  Convolution in Spatial Domain is a simple multiplication in Frequency Domain  So Mask filters are easier in Frequency under the condition that we have specialized hardware which can run DFT very fast.