SlideShare a Scribd company logo
1 of 29
Prepared by
T. Sathiyabama
M. Sahaya Pretha
K. Shunmuga Priya
R. Rajalakshmi
Department of Computer Science and Engineering,
MS University, Tirunelveli
10/26/2016 8:17 AM 1
Definition
Direct Manipulation of image Pixels.
The objective of Sharpening is to highlight transitions
in intensity
The image blurring is accomplished by pixel averaging
in a neighborhood.
Since averaging is analogous to integration.
10/26/2016 8:17 AM 2
Some Applications
Photo Enhancement
Medical image visualization
Industrial defect detection
Electronic printing
Autonomous guidance in military systems
10/26/2016 8:17 AM 3
Foundation
Sharpening Filters to find details about
Remove blurring from images.
Highlight edges
We are interested in the behavior of these derivatives
in areas of constant gray level(flat segments), at the
onset and end of discontinuities(step and ramp
discontinuities), and along gray-level ramps.
These types of discontinuities can be noise points,
lines, and edges.
10/26/2016 8:17 AM 4
Definition for a first derivative
Must be zero in flat segments
Must be nonzero at the onset of a gray-level step or ramp
Must be nonzero along ramps
A basic definition of the first-order derivative of a one-dimensional
function f(x) is
(Diff b/w subsequent values & measures the rate of change of the
function)
10/26/2016 8:17 AM 5
)()1(
f
xfxf
x



Definition for a second derivative
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 slope
We define a second-order derivative as the difference
(the values both
before& after the
current value)
10/26/2016 8:17 AM 6
)(2)1()1(2
2
xfxfxf
x
f



First and second-order derivatives in digital form => difference
The 1st-order derivative is nonzero along the entire ramp,
while the 2nd-order derivative is nonzero only at the onset and
end of the ramp.
The response at and around the point is much stronger for the
2nd- than for the 1st-order derivative.
10/26/2016 8:17 AM 7
)()1( xfxf
x
f



)(2)1()1(
)]1()([)]()1([2
2
xfxfxf
xfxfxfxf
x
f




Gray-level profile
10/26/2016 8:17 AM 8
660 1 2 30 0 2 2 2 2 23 3 3 3 30 0 0 0 0 0 0 0 7 7 5 5
7
6
5
4
3
2
1
0
Derivative of image profile
10/26/2016 8:17 AM 9
0 0 0 1 2 3 2 0 0 2 2 6 3 3 2 2 3 3 0 0 0 0 0 0 7 7 6 5 5 3
0 0 1 1 1-1-2 0 2 0 4-3 0-1 0 1 0-3 0 0 0 0 0-7 0-1-1 0-2
0-1 0 0-2-1 2 2-2 4-7 3-1 1 1-1-3 3 0 0 0 0-7 7-1 0 1-2
first
second
2nd derivatives for image
Sharpening
 2-D 2nd derivatives => Laplacian
10/26/2016 8:17 AM 10
2
2
2
2
2
y
f
x
f
f






),(4)]1,()1,(),1(),1([
)],(2)1,()1,([
)],(2),1(),1([2
yxfyxfyxfyxfyxf
yxfyxfyxf
yxfyxfyxff



=>discrete formulation
Implementation






),(),(
),(),(
),( 2
2
yxfyxf
yxfyxf
yxg
),(2
yxf
10/26/2016 8:17 AM 11
If the center coefficient is negative
If the center coefficient is positive
Where f(x,y) is the original image
is Laplacian filtered image
g(x,y) is the sharpen image
Definition of 2nd derivatives in
filter mask
900 rotation
invariant
450 rotation
invariant
(include
Diagonals)
4 -
-
-
- -
- - -
-
---
8
10/26/2016 8:17 AM 12
Implementation
10/26/2016 8:17 AM 13
Implementation
10/26/2016 8:17 AM 14
Filtered = Conv(image,mask)
Implementation
10/26/2016 8:17 AM 15
filtered = filtered - Min(filtered)
filtered = filtered * (255.0/Max(filtered))
Implementation
10/26/2016 8:17 AM 16
sharpened = image + filtered
sharpened = sharpened - Min(sharpened )
sharpened = sharpened * (255.0/Max(sharpened ))
Algorithm
1. Using Laplacian filter to original image
2. And then add the image result from step 1 and the
original image
3. We will apply two step to be one mask
10/26/2016 8:17 AM 17
),(4)1,()1,(),1(),1(),(),( yxfyxfyxfyxfyxfyxfyxg 
)1,()1,(),1(),1(),(5),(  yxfyxfyxfyxfyxfyxg
Result of Algorithm
10/26/2016 8:17 AM 18
-1
-1
5 -1
-1
0 0
0 0
-1
-1
9 -1
-1
-1 -1
-1 -1
Laplacian filtering: example
10/26/2016 8:17 AM 19
Original image Laplacian filtered image
Unsharp masking
 A process to sharpen images consists of
subtracting a blurred version of an image from
the image itself. This process, called unsharp
masking, is expressed as
),(),(),( yxfyxfyxfs 
),( yxfs
10/26/2016 8:17 AM 20
),( yxf),( yxf
Where denotes the sharpened image obtained by unsharp
masking, an is a blurred version of
High-boost filtering
 A high-boost filtered image, fhb is defined at any
point (x,y) as
1),(),(),(  AwhereyxfyxAfyxfhb
),(),(),()1(),( yxfyxfyxfAyxfhb 
10/26/2016 8:17 AM 21
),(),()1(),( yxfyxfAyxf shb 
This equation is applicable general and does not state explicity how
the sharp image is obtained
High-boost filtering and Laplacian
 If we choose to use the Laplacian, then we know
fs(x,y)






),(),(
),(),(
2
2
yxfyxAf
yxfyxAf
fhb
10/26/2016 8:17 AM 22
If the center coefficient is negative
If the center coefficient is positive
-1
-1
A+4 -1
-1
0 0
0 0
-1
-1
A+8 -1
-1
-1 -1
-1 -1
The Gradient (1st order derivative)
 First Derivatives in image processing are
implemented using the magnitude of the
gradient.
The gradient of function f(x,y) is























y
f
x
f
G
G
f
y
x
10/26/2016 8:17 AM 23
 The magnitude of this vector is given by
yxyx GGGGfmag  22
)(
-1 1
1
-1
Gx
Gy
This mask is simple, and no isotropic. Its result
only horizontal and vertical.
10/26/2016 8:17 AM 24
Robert’s Method
 The simplest approximations to a first-order
derivative that satisfy the conditions stated in
that section are
2
68
2
59 )()( zzzzf 
6859 zzzzf 
z1 z2 z3
z4 z5 z6
z7 z8 z9
Gx = (z9-z5) and Gy = (z8-z6)
10/26/2016 8:17 AM 25
 These mask are referred to as the Roberts cross-
gradient operators.
-1 0
0 1
-10
01
10/26/2016 8:17 AM 26
Sobel’s Method
 Using this equation
)2()2()2()2( 741963321987 zzzzzzzzzzzzf 
-1 -2 -1
0 0 0
1 2 1 1
-2
10
0
0-1
2
-1
10/26/2016 8:17 AM 27
Gradient: example
defectsoriginal(contact lens) Sobel gradient
 Enhance defects and eliminate slowly changing background
10/26/2016 8:17 AM 28
10/26/2016 8:17 AM 29
Thank You to all my viewers

More Related Content

What's hot

Point processing
Point processingPoint processing
Point processingpanupriyaa7
 
Image Processing: Spatial filters
Image Processing: Spatial filtersImage Processing: Spatial filters
Image Processing: Spatial filtersA B Shinde
 
Image Representation & Descriptors
Image Representation & DescriptorsImage Representation & Descriptors
Image Representation & DescriptorsPundrikPatel
 
Digital Image Processing - Image Compression
Digital Image Processing - Image CompressionDigital Image Processing - Image Compression
Digital Image Processing - Image CompressionMathankumar S
 
Image enhancement sharpening
Image enhancement  sharpeningImage enhancement  sharpening
Image enhancement sharpeningarulraj121
 
Histogram Processing
Histogram ProcessingHistogram Processing
Histogram ProcessingAmnaakhaan
 
Image compression standards
Image compression standardsImage compression standards
Image compression standardskirupasuchi1996
 
Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)Kalyan Acharjya
 
Image Smoothing using Frequency Domain Filters
Image Smoothing using Frequency Domain FiltersImage Smoothing using Frequency Domain Filters
Image Smoothing using Frequency Domain FiltersSuhaila Afzana
 
Color Image Processing: Basics
Color Image Processing: BasicsColor Image Processing: Basics
Color Image Processing: BasicsA B Shinde
 
digital image processing
digital image processingdigital image processing
digital image processingAbinaya B
 

What's hot (20)

03 image transform
03 image transform03 image transform
03 image transform
 
Region based segmentation
Region based segmentationRegion based segmentation
Region based segmentation
 
Point processing
Point processingPoint processing
Point processing
 
Psuedo color
Psuedo colorPsuedo color
Psuedo color
 
Image Processing: Spatial filters
Image Processing: Spatial filtersImage Processing: Spatial filters
Image Processing: Spatial filters
 
Image Representation & Descriptors
Image Representation & DescriptorsImage Representation & Descriptors
Image Representation & Descriptors
 
Digital Image Processing - Image Compression
Digital Image Processing - Image CompressionDigital Image Processing - Image Compression
Digital Image Processing - Image Compression
 
Image enhancement sharpening
Image enhancement  sharpeningImage enhancement  sharpening
Image enhancement sharpening
 
Histogram Processing
Histogram ProcessingHistogram Processing
Histogram Processing
 
Unit3 dip
Unit3 dipUnit3 dip
Unit3 dip
 
Canny Edge Detection
Canny Edge DetectionCanny Edge Detection
Canny Edge Detection
 
Image compression models
Image compression modelsImage compression models
Image compression models
 
Image compression standards
Image compression standardsImage compression standards
Image compression standards
 
Noise Models
Noise ModelsNoise Models
Noise Models
 
Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)
 
Digital Image Processing
Digital Image ProcessingDigital Image Processing
Digital Image Processing
 
Image Smoothing using Frequency Domain Filters
Image Smoothing using Frequency Domain FiltersImage Smoothing using Frequency Domain Filters
Image Smoothing using Frequency Domain Filters
 
Color Image Processing: Basics
Color Image Processing: BasicsColor Image Processing: Basics
Color Image Processing: Basics
 
digital image processing
digital image processingdigital image processing
digital image processing
 
image compression ppt
image compression pptimage compression ppt
image compression ppt
 

Similar to Sharpening spatial filters

Filtering Corrupted Image and Edge Detection in Restored Grayscale Image Usin...
Filtering Corrupted Image and Edge Detection in Restored Grayscale Image Usin...Filtering Corrupted Image and Edge Detection in Restored Grayscale Image Usin...
Filtering Corrupted Image and Edge Detection in Restored Grayscale Image Usin...CSCJournals
 
An Adaptive Two-level Filtering Technique for Noise Lines in Video Images
An Adaptive Two-level Filtering Technique for Noise Lines in Video ImagesAn Adaptive Two-level Filtering Technique for Noise Lines in Video Images
An Adaptive Two-level Filtering Technique for Noise Lines in Video ImagesCSCJournals
 
Review of Linear Image Degradation and Image Restoration Technique
Review of Linear Image Degradation and Image Restoration TechniqueReview of Linear Image Degradation and Image Restoration Technique
Review of Linear Image Degradation and Image Restoration TechniqueBRNSSPublicationHubI
 
griffm3_ECSE4540_Final_Project_Report
griffm3_ECSE4540_Final_Project_Reportgriffm3_ECSE4540_Final_Project_Report
griffm3_ECSE4540_Final_Project_ReportMatt Griffin
 
Advanced Multimedia
Advanced MultimediaAdvanced Multimedia
Advanced Multimediakadalrocker
 
Digital image processing 1
Digital  image processing 1Digital  image processing 1
Digital image processing 1Dhaval Jalalpara
 
3 intensity transformations and spatial filtering slides
3 intensity transformations and spatial filtering slides3 intensity transformations and spatial filtering slides
3 intensity transformations and spatial filtering slidesBHAGYAPRASADBUGGE
 
Estimation, Detection & Comparison of Soil Nutrients using Matlab
Estimation, Detection & Comparison of Soil Nutrients using MatlabEstimation, Detection & Comparison of Soil Nutrients using Matlab
Estimation, Detection & Comparison of Soil Nutrients using MatlabIRJET Journal
 
Linear Smoothing, Median, and Sharpening Filter
Linear Smoothing, Median, and Sharpening FilterLinear Smoothing, Median, and Sharpening Filter
Linear Smoothing, Median, and Sharpening FilterVARUN KUMAR
 
edge Linking dip.pptx
  edge Linking dip.pptx  edge Linking dip.pptx
edge Linking dip.pptxMruthyunjayaS
 
CSE367 Lecture- image sinal processing lecture
CSE367 Lecture- image sinal processing lectureCSE367 Lecture- image sinal processing lecture
CSE367 Lecture- image sinal processing lectureFatmaNewagy1
 
Video Segmentation
Video SegmentationVideo Segmentation
Video SegmentationSmriti Jain
 
IMAGE DENOISING BY MEDIAN FILTER IN WAVELET DOMAIN
IMAGE DENOISING BY MEDIAN FILTER IN WAVELET DOMAINIMAGE DENOISING BY MEDIAN FILTER IN WAVELET DOMAIN
IMAGE DENOISING BY MEDIAN FILTER IN WAVELET DOMAINijma
 
13 fourierfiltrationen
13 fourierfiltrationen13 fourierfiltrationen
13 fourierfiltrationenhoailinhtinh
 
Notes on image processing
Notes on image processingNotes on image processing
Notes on image processingMohammed Kamel
 
LAPLACE TRANSFORM SUITABILITY FOR IMAGE PROCESSING
LAPLACE TRANSFORM SUITABILITY FOR IMAGE PROCESSINGLAPLACE TRANSFORM SUITABILITY FOR IMAGE PROCESSING
LAPLACE TRANSFORM SUITABILITY FOR IMAGE PROCESSINGPriyanka Rathore
 
Optimized linear spatial filters implemented in FPGA
Optimized linear spatial filters implemented in FPGAOptimized linear spatial filters implemented in FPGA
Optimized linear spatial filters implemented in FPGAIOSRJVSP
 
Visual Quality for both Images and Display of Systems by Visual Enhancement u...
Visual Quality for both Images and Display of Systems by Visual Enhancement u...Visual Quality for both Images and Display of Systems by Visual Enhancement u...
Visual Quality for both Images and Display of Systems by Visual Enhancement u...IJMER
 

Similar to Sharpening spatial filters (20)

Image denoising
Image denoisingImage denoising
Image denoising
 
Filtering Corrupted Image and Edge Detection in Restored Grayscale Image Usin...
Filtering Corrupted Image and Edge Detection in Restored Grayscale Image Usin...Filtering Corrupted Image and Edge Detection in Restored Grayscale Image Usin...
Filtering Corrupted Image and Edge Detection in Restored Grayscale Image Usin...
 
An Adaptive Two-level Filtering Technique for Noise Lines in Video Images
An Adaptive Two-level Filtering Technique for Noise Lines in Video ImagesAn Adaptive Two-level Filtering Technique for Noise Lines in Video Images
An Adaptive Two-level Filtering Technique for Noise Lines in Video Images
 
Review of Linear Image Degradation and Image Restoration Technique
Review of Linear Image Degradation and Image Restoration TechniqueReview of Linear Image Degradation and Image Restoration Technique
Review of Linear Image Degradation and Image Restoration Technique
 
griffm3_ECSE4540_Final_Project_Report
griffm3_ECSE4540_Final_Project_Reportgriffm3_ECSE4540_Final_Project_Report
griffm3_ECSE4540_Final_Project_Report
 
Advanced Multimedia
Advanced MultimediaAdvanced Multimedia
Advanced Multimedia
 
Digital image processing 1
Digital  image processing 1Digital  image processing 1
Digital image processing 1
 
3 intensity transformations and spatial filtering slides
3 intensity transformations and spatial filtering slides3 intensity transformations and spatial filtering slides
3 intensity transformations and spatial filtering slides
 
Estimation, Detection & Comparison of Soil Nutrients using Matlab
Estimation, Detection & Comparison of Soil Nutrients using MatlabEstimation, Detection & Comparison of Soil Nutrients using Matlab
Estimation, Detection & Comparison of Soil Nutrients using Matlab
 
Linear Smoothing, Median, and Sharpening Filter
Linear Smoothing, Median, and Sharpening FilterLinear Smoothing, Median, and Sharpening Filter
Linear Smoothing, Median, and Sharpening Filter
 
edge Linking dip.pptx
  edge Linking dip.pptx  edge Linking dip.pptx
edge Linking dip.pptx
 
CSE367 Lecture- image sinal processing lecture
CSE367 Lecture- image sinal processing lectureCSE367 Lecture- image sinal processing lecture
CSE367 Lecture- image sinal processing lecture
 
Video Segmentation
Video SegmentationVideo Segmentation
Video Segmentation
 
IMAGE DENOISING BY MEDIAN FILTER IN WAVELET DOMAIN
IMAGE DENOISING BY MEDIAN FILTER IN WAVELET DOMAINIMAGE DENOISING BY MEDIAN FILTER IN WAVELET DOMAIN
IMAGE DENOISING BY MEDIAN FILTER IN WAVELET DOMAIN
 
13 fourierfiltrationen
13 fourierfiltrationen13 fourierfiltrationen
13 fourierfiltrationen
 
Histogram processing
Histogram processingHistogram processing
Histogram processing
 
Notes on image processing
Notes on image processingNotes on image processing
Notes on image processing
 
LAPLACE TRANSFORM SUITABILITY FOR IMAGE PROCESSING
LAPLACE TRANSFORM SUITABILITY FOR IMAGE PROCESSINGLAPLACE TRANSFORM SUITABILITY FOR IMAGE PROCESSING
LAPLACE TRANSFORM SUITABILITY FOR IMAGE PROCESSING
 
Optimized linear spatial filters implemented in FPGA
Optimized linear spatial filters implemented in FPGAOptimized linear spatial filters implemented in FPGA
Optimized linear spatial filters implemented in FPGA
 
Visual Quality for both Images and Display of Systems by Visual Enhancement u...
Visual Quality for both Images and Display of Systems by Visual Enhancement u...Visual Quality for both Images and Display of Systems by Visual Enhancement u...
Visual Quality for both Images and Display of Systems by Visual Enhancement u...
 

Recently uploaded

What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...asadnawaz62
 
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
 
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
 
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
 
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
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
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
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .Satyam Kumar
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionDr.Costas Sachpazis
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
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
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxk795866
 

Recently uploaded (20)

What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...
 
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
 
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
 
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
 
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...
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
 
young call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Serviceyoung call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Service
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
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
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
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
 
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
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptx
 

Sharpening spatial filters

  • 1. Prepared by T. Sathiyabama M. Sahaya Pretha K. Shunmuga Priya R. Rajalakshmi Department of Computer Science and Engineering, MS University, Tirunelveli 10/26/2016 8:17 AM 1
  • 2. Definition Direct Manipulation of image Pixels. The objective of Sharpening is to highlight transitions in intensity The image blurring is accomplished by pixel averaging in a neighborhood. Since averaging is analogous to integration. 10/26/2016 8:17 AM 2
  • 3. Some Applications Photo Enhancement Medical image visualization Industrial defect detection Electronic printing Autonomous guidance in military systems 10/26/2016 8:17 AM 3
  • 4. Foundation Sharpening Filters to find details about Remove blurring from images. Highlight edges We are interested in the behavior of these derivatives in areas of constant gray level(flat segments), at the onset and end of discontinuities(step and ramp discontinuities), and along gray-level ramps. These types of discontinuities can be noise points, lines, and edges. 10/26/2016 8:17 AM 4
  • 5. Definition for a first derivative Must be zero in flat segments Must be nonzero at the onset of a gray-level step or ramp Must be nonzero along ramps A basic definition of the first-order derivative of a one-dimensional function f(x) is (Diff b/w subsequent values & measures the rate of change of the function) 10/26/2016 8:17 AM 5 )()1( f xfxf x   
  • 6. Definition for a second derivative 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 slope We define a second-order derivative as the difference (the values both before& after the current value) 10/26/2016 8:17 AM 6 )(2)1()1(2 2 xfxfxf x f   
  • 7. First and second-order derivatives in digital form => difference The 1st-order derivative is nonzero along the entire ramp, while the 2nd-order derivative is nonzero only at the onset and end of the ramp. The response at and around the point is much stronger for the 2nd- than for the 1st-order derivative. 10/26/2016 8:17 AM 7 )()1( xfxf x f    )(2)1()1( )]1()([)]()1([2 2 xfxfxf xfxfxfxf x f    
  • 8. Gray-level profile 10/26/2016 8:17 AM 8 660 1 2 30 0 2 2 2 2 23 3 3 3 30 0 0 0 0 0 0 0 7 7 5 5 7 6 5 4 3 2 1 0
  • 9. Derivative of image profile 10/26/2016 8:17 AM 9 0 0 0 1 2 3 2 0 0 2 2 6 3 3 2 2 3 3 0 0 0 0 0 0 7 7 6 5 5 3 0 0 1 1 1-1-2 0 2 0 4-3 0-1 0 1 0-3 0 0 0 0 0-7 0-1-1 0-2 0-1 0 0-2-1 2 2-2 4-7 3-1 1 1-1-3 3 0 0 0 0-7 7-1 0 1-2 first second
  • 10. 2nd derivatives for image Sharpening  2-D 2nd derivatives => Laplacian 10/26/2016 8:17 AM 10 2 2 2 2 2 y f x f f       ),(4)]1,()1,(),1(),1([ )],(2)1,()1,([ )],(2),1(),1([2 yxfyxfyxfyxfyxf yxfyxfyxf yxfyxfyxff    =>discrete formulation
  • 11. Implementation       ),(),( ),(),( ),( 2 2 yxfyxf yxfyxf yxg ),(2 yxf 10/26/2016 8:17 AM 11 If the center coefficient is negative If the center coefficient is positive Where f(x,y) is the original image is Laplacian filtered image g(x,y) is the sharpen image
  • 12. Definition of 2nd derivatives in filter mask 900 rotation invariant 450 rotation invariant (include Diagonals) 4 - - - - - - - - - --- 8 10/26/2016 8:17 AM 12
  • 14. Implementation 10/26/2016 8:17 AM 14 Filtered = Conv(image,mask)
  • 15. Implementation 10/26/2016 8:17 AM 15 filtered = filtered - Min(filtered) filtered = filtered * (255.0/Max(filtered))
  • 16. Implementation 10/26/2016 8:17 AM 16 sharpened = image + filtered sharpened = sharpened - Min(sharpened ) sharpened = sharpened * (255.0/Max(sharpened ))
  • 17. Algorithm 1. Using Laplacian filter to original image 2. And then add the image result from step 1 and the original image 3. We will apply two step to be one mask 10/26/2016 8:17 AM 17 ),(4)1,()1,(),1(),1(),(),( yxfyxfyxfyxfyxfyxfyxg  )1,()1,(),1(),1(),(5),(  yxfyxfyxfyxfyxfyxg
  • 18. Result of Algorithm 10/26/2016 8:17 AM 18 -1 -1 5 -1 -1 0 0 0 0 -1 -1 9 -1 -1 -1 -1 -1 -1
  • 19. Laplacian filtering: example 10/26/2016 8:17 AM 19 Original image Laplacian filtered image
  • 20. Unsharp masking  A process to sharpen images consists of subtracting a blurred version of an image from the image itself. This process, called unsharp masking, is expressed as ),(),(),( yxfyxfyxfs  ),( yxfs 10/26/2016 8:17 AM 20 ),( yxf),( yxf Where denotes the sharpened image obtained by unsharp masking, an is a blurred version of
  • 21. High-boost filtering  A high-boost filtered image, fhb is defined at any point (x,y) as 1),(),(),(  AwhereyxfyxAfyxfhb ),(),(),()1(),( yxfyxfyxfAyxfhb  10/26/2016 8:17 AM 21 ),(),()1(),( yxfyxfAyxf shb  This equation is applicable general and does not state explicity how the sharp image is obtained
  • 22. High-boost filtering and Laplacian  If we choose to use the Laplacian, then we know fs(x,y)       ),(),( ),(),( 2 2 yxfyxAf yxfyxAf fhb 10/26/2016 8:17 AM 22 If the center coefficient is negative If the center coefficient is positive -1 -1 A+4 -1 -1 0 0 0 0 -1 -1 A+8 -1 -1 -1 -1 -1 -1
  • 23. The Gradient (1st order derivative)  First Derivatives in image processing are implemented using the magnitude of the gradient. The gradient of function f(x,y) is                        y f x f G G f y x 10/26/2016 8:17 AM 23
  • 24.  The magnitude of this vector is given by yxyx GGGGfmag  22 )( -1 1 1 -1 Gx Gy This mask is simple, and no isotropic. Its result only horizontal and vertical. 10/26/2016 8:17 AM 24
  • 25. Robert’s Method  The simplest approximations to a first-order derivative that satisfy the conditions stated in that section are 2 68 2 59 )()( zzzzf  6859 zzzzf  z1 z2 z3 z4 z5 z6 z7 z8 z9 Gx = (z9-z5) and Gy = (z8-z6) 10/26/2016 8:17 AM 25
  • 26.  These mask are referred to as the Roberts cross- gradient operators. -1 0 0 1 -10 01 10/26/2016 8:17 AM 26
  • 27. Sobel’s Method  Using this equation )2()2()2()2( 741963321987 zzzzzzzzzzzzf  -1 -2 -1 0 0 0 1 2 1 1 -2 10 0 0-1 2 -1 10/26/2016 8:17 AM 27
  • 28. Gradient: example defectsoriginal(contact lens) Sobel gradient  Enhance defects and eliminate slowly changing background 10/26/2016 8:17 AM 28
  • 29. 10/26/2016 8:17 AM 29 Thank You to all my viewers