SlideShare a Scribd company logo
1 of 60
Download to read offline
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

Spatial Filters (Digital Image Processing)
Spatial Filters (Digital Image Processing)Spatial Filters (Digital Image Processing)
Spatial Filters (Digital Image Processing)Kalyan Acharjya
 
Image enhancement ppt nal2
Image enhancement ppt nal2Image enhancement ppt nal2
Image enhancement ppt nal2Surabhi Ks
 
Image enhancement techniques
Image enhancement techniquesImage enhancement techniques
Image enhancement techniquesSaideep
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial DomainDEEPASHRI HK
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial DomainA B Shinde
 
Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)asodariyabhavesh
 
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
 
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 enhancementmukesh bhardwaj
 
Image Enhancement - Point Processing
Image Enhancement - Point ProcessingImage Enhancement - Point Processing
Image Enhancement - Point ProcessingGayathri31093
 
03 digital image fundamentals DIP
03 digital image fundamentals DIP03 digital image fundamentals DIP
03 digital image fundamentals DIPbabak danyal
 
COM2304: Intensity Transformation and Spatial Filtering – III Spatial Filters...
COM2304: Intensity Transformation and Spatial Filtering – III Spatial Filters...COM2304: Intensity Transformation and Spatial Filtering – III Spatial Filters...
COM2304: Intensity Transformation and Spatial Filtering – III Spatial Filters...Hemantha Kulathilake
 
COM2304: Intensity Transformation and Spatial Filtering – II Spatial Filterin...
COM2304: Intensity Transformation and Spatial Filtering – II Spatial Filterin...COM2304: Intensity Transformation and Spatial Filtering – II Spatial Filterin...
COM2304: Intensity Transformation and Spatial Filtering – II Spatial Filterin...Hemantha Kulathilake
 
Image processing second unit Notes
Image processing second unit NotesImage processing second unit Notes
Image processing second unit NotesAAKANKSHA JAIN
 
Digital image processing
Digital image processingDigital image processing
Digital image processingABIRAMI M
 
Image enhancement
Image enhancementImage enhancement
Image enhancementvsaranya169
 
4.intensity transformations
4.intensity transformations4.intensity transformations
4.intensity transformationsYahya Alkhaldi
 

What's hot (20)

Spatial Filters (Digital Image Processing)
Spatial Filters (Digital Image Processing)Spatial Filters (Digital Image Processing)
Spatial Filters (Digital Image Processing)
 
Image enhancement ppt nal2
Image enhancement ppt nal2Image enhancement ppt nal2
Image enhancement ppt nal2
 
Image enhancement techniques
Image enhancement techniquesImage enhancement techniques
Image enhancement techniques
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial Domain
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial Domain
 
Enhancement in Digital Image Processing
Enhancement in Digital Image ProcessingEnhancement in Digital Image Processing
Enhancement in Digital Image Processing
 
Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)
 
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...
 
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
 
Image Enhancement - Point Processing
Image Enhancement - Point ProcessingImage Enhancement - Point Processing
Image Enhancement - Point Processing
 
03 digital image fundamentals DIP
03 digital image fundamentals DIP03 digital image fundamentals DIP
03 digital image fundamentals DIP
 
Image enhancement
Image enhancementImage enhancement
Image enhancement
 
COM2304: Intensity Transformation and Spatial Filtering – III Spatial Filters...
COM2304: Intensity Transformation and Spatial Filtering – III Spatial Filters...COM2304: Intensity Transformation and Spatial Filtering – III Spatial Filters...
COM2304: Intensity Transformation and Spatial Filtering – III Spatial Filters...
 
image enhancement
 image enhancement image enhancement
image enhancement
 
COM2304: Intensity Transformation and Spatial Filtering – II Spatial Filterin...
COM2304: Intensity Transformation and Spatial Filtering – II Spatial Filterin...COM2304: Intensity Transformation and Spatial Filtering – II Spatial Filterin...
COM2304: Intensity Transformation and Spatial Filtering – II Spatial Filterin...
 
rs and gis
rs and gisrs and gis
rs and gis
 
Image processing second unit Notes
Image processing second unit NotesImage processing second unit Notes
Image processing second unit Notes
 
Digital image processing
Digital image processingDigital image processing
Digital image processing
 
Image enhancement
Image enhancementImage enhancement
Image enhancement
 
4.intensity transformations
4.intensity transformations4.intensity transformations
4.intensity transformations
 

Similar to 4 image enhancement in spatial domain

SpatialEnhancement of course CE7491 of NTU
SpatialEnhancement of course CE7491 of NTUSpatialEnhancement of course CE7491 of NTU
SpatialEnhancement of course CE7491 of NTUlyumingzhi
 
Spatial Filtering in intro image processingr
Spatial Filtering in intro image processingrSpatial Filtering in intro image processingr
Spatial Filtering in intro image processingrkumarankit06875
 
Image Enhancement in the Spatial Domain1.ppt
Image Enhancement in the Spatial Domain1.pptImage Enhancement in the Spatial Domain1.ppt
Image Enhancement in the Spatial Domain1.pptShabanamTamboli1
 
Image enhancement
Image enhancementImage enhancement
Image enhancementKuppusamy P
 
Kulum alin-11 jan2014
Kulum alin-11 jan2014Kulum alin-11 jan2014
Kulum alin-11 jan2014rolly purnomo
 
Lec_2_Digital Image Fundamentals.pdf
Lec_2_Digital Image Fundamentals.pdfLec_2_Digital Image Fundamentals.pdf
Lec_2_Digital Image Fundamentals.pdfnagwaAboElenein
 
LAPLACE TRANSFORM SUITABILITY FOR IMAGE PROCESSING
LAPLACE TRANSFORM SUITABILITY FOR IMAGE PROCESSINGLAPLACE TRANSFORM SUITABILITY FOR IMAGE PROCESSING
LAPLACE TRANSFORM SUITABILITY FOR IMAGE PROCESSINGPriyanka Rathore
 
image segmentation image segmentation.pptx
image segmentation image segmentation.pptximage segmentation image segmentation.pptx
image segmentation image segmentation.pptxNaveenKumar5162
 
Image_processing_unit2_SPPU_Syllabus.pptx
Image_processing_unit2_SPPU_Syllabus.pptxImage_processing_unit2_SPPU_Syllabus.pptx
Image_processing_unit2_SPPU_Syllabus.pptxMayuri Narkhede
 
12-Image enhancement and filtering.ppt
12-Image enhancement and filtering.ppt12-Image enhancement and filtering.ppt
12-Image enhancement and filtering.pptAJAYMALIK97
 
Spatial domain filtering.ppt
Spatial domain filtering.pptSpatial domain filtering.ppt
Spatial domain filtering.pptssuser4bbfb1
 
Computer Graphics Part1
Computer Graphics Part1Computer Graphics Part1
Computer Graphics Part1qpqpqp
 

Similar to 4 image enhancement in spatial domain (20)

4 image enhancement in spatial domain
4 image enhancement in spatial domain4 image enhancement in spatial domain
4 image enhancement in spatial domain
 
SpatialEnhancement of course CE7491 of NTU
SpatialEnhancement of course CE7491 of NTUSpatialEnhancement of course CE7491 of NTU
SpatialEnhancement of course CE7491 of NTU
 
Spatial Filtering in intro image processingr
Spatial Filtering in intro image processingrSpatial Filtering in intro image processingr
Spatial Filtering in intro image processingr
 
2. filtering basics
2. filtering basics2. filtering basics
2. filtering basics
 
DIP Lecture 7-9.pdf
DIP Lecture 7-9.pdfDIP Lecture 7-9.pdf
DIP Lecture 7-9.pdf
 
Image Enhancement in the Spatial Domain1.ppt
Image Enhancement in the Spatial Domain1.pptImage Enhancement in the Spatial Domain1.ppt
Image Enhancement in the Spatial Domain1.ppt
 
Image enhancement
Image enhancementImage enhancement
Image enhancement
 
Image enhancement
Image enhancementImage enhancement
Image enhancement
 
Kulum alin-11 jan2014
Kulum alin-11 jan2014Kulum alin-11 jan2014
Kulum alin-11 jan2014
 
Lec_2_Digital Image Fundamentals.pdf
Lec_2_Digital Image Fundamentals.pdfLec_2_Digital Image Fundamentals.pdf
Lec_2_Digital Image Fundamentals.pdf
 
Module 2
Module 2Module 2
Module 2
 
LAPLACE TRANSFORM SUITABILITY FOR IMAGE PROCESSING
LAPLACE TRANSFORM SUITABILITY FOR IMAGE PROCESSINGLAPLACE TRANSFORM SUITABILITY FOR IMAGE PROCESSING
LAPLACE TRANSFORM SUITABILITY FOR IMAGE PROCESSING
 
Chap5 imange enhancemet
Chap5 imange enhancemetChap5 imange enhancemet
Chap5 imange enhancemet
 
Digital Image Fundamentals - II
Digital Image Fundamentals - IIDigital Image Fundamentals - II
Digital Image Fundamentals - II
 
image segmentation image segmentation.pptx
image segmentation image segmentation.pptximage segmentation image segmentation.pptx
image segmentation image segmentation.pptx
 
Image_processing_unit2_SPPU_Syllabus.pptx
Image_processing_unit2_SPPU_Syllabus.pptxImage_processing_unit2_SPPU_Syllabus.pptx
Image_processing_unit2_SPPU_Syllabus.pptx
 
12-Image enhancement and filtering.ppt
12-Image enhancement and filtering.ppt12-Image enhancement and filtering.ppt
12-Image enhancement and filtering.ppt
 
Spatial domain filtering.ppt
Spatial domain filtering.pptSpatial domain filtering.ppt
Spatial domain filtering.ppt
 
Computer Graphics Part1
Computer Graphics Part1Computer Graphics Part1
Computer Graphics Part1
 
Spatial domain and filtering
Spatial domain and filteringSpatial domain and filtering
Spatial domain and filtering
 

More from Prakash Velayudham V

More from Prakash Velayudham V (8)

RS Aggarwal reasoning.pdf
RS Aggarwal reasoning.pdfRS Aggarwal reasoning.pdf
RS Aggarwal reasoning.pdf
 
Question Bank BS8161 QP 2.pdf
Question Bank BS8161 QP 2.pdfQuestion Bank BS8161 QP 2.pdf
Question Bank BS8161 QP 2.pdf
 
HS8581.pdf
HS8581.pdfHS8581.pdf
HS8581.pdf
 
CONSUMER ELECTRONICS ARCHITECTURE.ppt
CONSUMER ELECTRONICS ARCHITECTURE.pptCONSUMER ELECTRONICS ARCHITECTURE.ppt
CONSUMER ELECTRONICS ARCHITECTURE.ppt
 
Syllabus_EC8791_ERTS.doc
Syllabus_EC8791_ERTS.docSyllabus_EC8791_ERTS.doc
Syllabus_EC8791_ERTS.doc
 
Pulse Modulation.ppt
Pulse Modulation.pptPulse Modulation.ppt
Pulse Modulation.ppt
 
Advanced Wireless Communication-EC8092
Advanced Wireless Communication-EC8092Advanced Wireless Communication-EC8092
Advanced Wireless Communication-EC8092
 
Wsn
WsnWsn
Wsn
 

Recently uploaded

VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfme23b1001
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .Satyam Kumar
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLDeelipZope
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learningmisbanausheenparvam
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxPoojaBan
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
 
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2RajaP95
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineeringmalavadedarshan25
 

Recently uploaded (20)

VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdf
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCL
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learning
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptx
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineering
 

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.