SlideShare a Scribd company logo
COMPUTER GRAPHICS & IMAGE PROCESSING
COM2403
Intensity Transformation and Spatial Filtering – III
Spatial Filters for Sharpening
K.A.S.H.Kulathilake
B.Sc. (Hons) IT (SLIIT), MCS (UCSC), M.Phil (UOM), SEDA(UK)
Rajarata University of Sri Lanka
Faculty of Applied Sciences
Department of Physical Sciences
Learning Outcomes
COM2304 - Computer Graphics & Image
Processing
• At the end of this lecture, you should be
able to;
– describe sharpening through spatial filters.
– Identify usage of derivatives in Image
Processing.
– discuss edge detection techniques.
– compare 1st & 2nd order derivatives used for
sharpening.
– Apply sharpening techniques for problem
solving.
2
Sharpening Spatial Filters
• The principle objective of sharpening is to highlight
transitions in intensity.
• In other terms, sharpening spatial filters seek to highlight
fine detail
– Remove blurring from images
– Highlight edges
• Sharpening filters are based on spatial differentiation.
• The strength of the response of a derivative operator is
proportional to the degree of intensity discontinuity of
the image at the point at which the operator is applied.
• Hence, image differentiation enhances edges and other
discontinuities ( such as noise) and deemphasizes areas
with slowly varying intensities.
COM2304 - Computer Graphics & Image
Processing
3
Sharpening Spatial Filters (Cont…)
• As the initial approach, it is better to get an idea about
certain properties of first order and second order
derivatives in the digital context.
• To simplify the explanation, it has been focused
attention on one dimensional derivatives.
• We are interested in the behavior of these derivatives
in areas of
– Constant intensity,
– At the onset and end of discontinuities (step and ramp
discontinuities), and
– Along the intensity ramps.
COM2304 - Computer Graphics & Image
Processing
4
Sharpening Spatial Filters (Cont…)
• Differentiation measures the rate of change of
a function.
• In digital context, values are finite and the
maximum possible intensity change is also
finite.
• The shortest distance over which that change
can occur is between the adjacent pixels.
• To understand this let’s discuss an example.
COM2304 - Computer Graphics & Image
Processing
5
Sharpening Spatial Filters (Cont…)
A B
Intensity transition
6
COM2304 - Computer Graphics & Image
Processing
Sharpening Spatial Filters (Cont…)
• The formula for the 1st derivative of a function is as
follows:
• It is just the difference between subsequent values
and measures the rate of change of the function.
• It should satisfy following conditions:
– Must be zero in the areas of constant intensity.
– Must be nonzero at the onset of an intensity step or
ramp.
– Must be nonzero along the ramp.
COM2304 - Computer Graphics & Image
Processing
7
)()1( xfxf
x
f



Sharpening Spatial Filters (Cont…)Image Strip
0
1
2
3
4
5
6
7
8
1st Derivative
-8
-6
-4
-2
0
2
4
6
8
5 5 4 3 2 1 0 0 0 6 0 0 0 0 1 3 1 0 0 0 0 7 7 7 7
-1 -1 -1 -1 -1 0 0 6 -6 0 0 0 1 2 -2 -1 0 0 0 7 0 0 0
8
COM2304 - Computer Graphics & Image
Processing
Sharpening Spatial Filters (Cont…)
• The formula for the 2nd derivative of a function is as follows:
• Simply takes into account the values both before and after the
current value.
• It should satisfy:
– Must be zero in the areas of constant intensity.
– Must be nonzero at the onset and end of an intensity
step or ramp.
– Must be zero along the ramp of constant slope.
COM2304 - Computer Graphics & Image
Processing
9
)(2)1()1(2
2
xfxfxf
x
f



Sharpening Spatial Filters (Cont…)Image Strip
0
1
2
3
4
5
6
7
8
5 5 4 3 2 1 0 0 0 6 0 0 0 0 1 3 1 0 0 0 0 7 7 7 7
2nd Derivative
-15
-10
-5
0
5
10
-1 0 0 0 0 1 0 6 -12 6 0 0 1 1 -4 1 1 0 0 7 -7 0 0
Zero crossing
Zero crossing
property is
quite useful
for locating
edges
10
COM2304 - Computer Graphics & Image
Processing
Sharpening Spatial Filters (Cont…)
• The 2nd derivative is more useful for image
enhancement than the 1st derivative because;
– Stronger response to fine detail
– Simpler implementation
COM2304 - Computer Graphics & Image
Processing
11
The Laplacian Operation
• In this section, we discuss 2D, second order
derivatives used for image sharpening.
• It is an isotropic filter
– It means that the response is independent of the
direction of the discontinuities in the image to
which the filter is applied. / rotation invariant.
COM2304 - Computer Graphics & Image
Processing
12
The Laplacian Operation (Cont…)
The Laplacian is defined as follows:
where the partial 2nd order derivative in the x direction
is defined as follows:
and in the y direction as follows:
y
f
x
f
f 2
2
2
2
2






),(2),1(),1(2
2
yxfyxfyxf
x
f



),(2)1,()1,(2
2
yxfyxfyxf
y
f



13
COM2304 - Computer Graphics & Image
Processing
The Laplacian Operation (Cont…)
So, the Laplacian can be given as follows:
We can easily build a filter based on this
),1(),1([2
yxfyxff 
)]1,()1,(  yxfyxf
),(4 yxf
0 1 0
1 -4 1
0 1 0
This provides an isotropic
results for rotations in
increments of 90 degrees
0 -1 0
-1 4 -1
0 -1 0
14
COM2304 - Computer Graphics & Image
Processing
The Laplacian Operation (Cont…)
• We can incorporate diagonal directions to
form a laplacian filter;
COM2304 - Computer Graphics & Image
Processing
15
),1(),1([2
yxfyxff  )]1,()1,(  yxfyxf
),(8 yxf
)]1,1()1,1(  yxfyxf)1,1()1,1([  yxfyxf
1 1 1
1 -8 1
1 1 1
-1 -1 -1
-1 8 -1
-1 -1 -1
This provides an isotropic
results for rotations in
increments of 45 degrees
The Laplacian Operation (Cont…)
Applying the Laplacian to an image we get a new image
that highlights edges and other discontinuities
Original
Image
Laplacian
Filtered Image
Laplacian
Filtered Image
Scaled for Display
16
COM2304 - Computer Graphics & Image
Processing
The Laplacian Operation (Cont…)
The result of a Laplacian filtering is
not an enhanced image
We have to do more work in order
to get our final image
Subtract the Laplacian result from
the original image to generate our
final sharpened enhanced image Laplacian
Filtered Image
Scaled for Display
fyxfyxg 2
),(),( 
17
COM2304 - Computer Graphics & Image
Processing
The Laplacian Operation (Cont…)
Laplacian Image Enhancement: In the final
sharpened image edges and fine detail are much
more obvious
- =
Original
Image
Laplacian
Filtered Image
Sharpened
Image
18
COM2304 - Computer Graphics & Image
Processing
The Laplacian Operation (Cont…)
19
COM2304 - Computer Graphics & Image
Processing
Image Gradient & Properties
• First derivatives in image processing are implemented using
the magnitude of the gradient.
• Gradient is a tool of choice for finding edge strength and
direction at location (x, y) of an image f and it is defined as a
vector.
• For a function f(x, y) the gradient of f at coordinates (x, y) is
given as the column vector:
COM2304 - Computer Graphics & Image
Processing
20























y
f
x
f
G
G
y
x
f
This vector has important
geometrical property that it
points in the direction of the
greatest rate of change of f at
location (x, y).
Image Gradient & Properties (Cont…)
• Gradient Operators:
– Obtaining the gradient of an image requires
computing the partial derivatives x and y at every
pixel location in the image.
– Therefore, digital approximation of the partial
derivatives over a neighborhood about a point is
required.
COM2304 - Computer Graphics & Image
Processing
21
),()1,(
),(
),(),1(
),(
yxfyxf
y
yxf
G
yxfyxf
x
yxf
G
y
x








Image Gradient & Properties (Cont…)
• There are various gradient operators available
namely; ID mask, Robert Cross, Prewitt, Sobel
• I-D Mask:
– Above equations can be implemented for all
pertinent values of x and y by filtering f(x,y) with
the 1-D masks.
COM2304 - Computer Graphics & Image
Processing
22
-1
1
-1 1
Image Gradient & Properties (Cont…)
• Roberts Cross-Gradient Operators:
• When diagonal edge direction is of interest, we need a 2
Dimensional mask.
• This operator cannot compute the edge direction
COM2304 - Computer Graphics & Image
Processing
23
)(
),(
)(
),(
68
59
zz
y
yxf
G
zz
x
yxf
G
y
x








z1 z2 z3
z4 z5 z6
z7 z8 z9
Image Gradient & Properties (Cont…)
• Prewitt Gradient Operators:
COM2304 - Computer Graphics & Image
Processing
24
)()(
),(
)()(
),(
741963
321987
zzzzzz
y
yxf
G
zzzzzz
x
yxf
G
y
x







 z1 z2 z3
z4 z5 z6
z7 z8 z9
Image Gradient & Properties (Cont…)
• Sobel Gradient Operators:
– Using 2 in the center location provides image
smoothing; hence, it has better noise suppression.
COM2304 - Computer Graphics & Image
Processing
25
)2()2(
),(
)2()2(
),(
741963
321987
zzzzzz
y
yxf
G
zzzzzz
x
yxf
G
y
x








z1 z2 z3
z4 z5 z6
z7 z8 z9
Image Gradient & Properties (Cont…)
COM2304 - Computer Graphics & Image
Processing
26
Original Image Horizontal Gradient Component
Vertical Gradient Component Combined Edge Image
Image Gradient & Properties (Cont…)
• Note that the coefficients of all the masks
sum to zero, thus giving a response of zero in
areas of constant intensity, as expected of a
derivative operator.
• To filter an image it is filtered using both
operators the results of which are added
together
• All the masks discussed above are used to
determine Gx, and Gy.
COM2304 - Computer Graphics & Image
Processing
27
Image Gradient & Properties (Cont…)
• Prewitt and Sobel masks give isotropic results
only for vertical and horizontal edges.
• It is possible to modify the 3*3 masks, so that
they have their strongest responses along the
diagonal directions as shown below;
COM2304 - Computer Graphics & Image
Processing
28
0 1 1
-1 0 1
-1 -1 0
-1 -1 0
-1 0 1
0 1 1
Modified Prewitt
masks
How Image Gradient Works?
• How Sobel works?
– The Sobel edge detector is a gradient based
method.
– It works with first order derivatives.
– It calculates the first derivatives of the image
separately for the X and Y axes.
– The derivatives are only approximations (because
the images are not continuous).
COM2304 - Computer Graphics & Image
Processing
29
How Image Gradient Works? (Cont…)
– To approximate them, the following kernels are used for
convolution:
– The kernel on the left approximates the derivative along the X
axis. The one on the right is for the Y axis.
– Using this information, we can calculate the following:
• Magnitude or "strength" of the edge:
• Approximate strength:
• The orientation of the edge:
COM2304 - Computer Graphics & Image
Processing
30
How Image Gradient Works? (Cont…)
The magnitude of this vector is given by:
For practical reasons this can be simplified as:
)f( magf
  2
1
22
yx GG 
2
1
22

























y
f
x
f
yx GGf 
31
COM2304 - Computer Graphics & Image
Processing
It is the value of the rate
of change in the
direction of the gradient
vector.
How Image Gradient Works? (Cont…)
• The direction of the gradient vector is given by
the angle:
• It is measured with respect to the x- axis.
• The direction of an edge at an arbitrary point
(x, y) is orthogonal to the direction, ᾳ(x, y) of
the gradient vector at the point.
COM2304 - Computer Graphics & Image
Processing
32







x
y
g
g
yx nta),(
How Image Gradient Works? (Cont…)
COM2304 - Computer Graphics & Image
Processing
33
Figure contains zoomed
straight edge segment.
Each square shown here
corresponds to a pixel.
We want to find strength
and direction of the edge
at the point highlighted
with a box?
Example
How Image Gradient Works? (Cont…)
• Method:
– We need to compute the derivatives of x and y
directions using a 3* 3 neighborhood.
– To get the partial derivatives in the x direction
subtract the pixels in the top row of the
neighborhood from the pixels in the bottom row.
– To get the partial derivatives in the y direction
subtract the pixels in the left column of the
neighborhood from the pixels in the right column.
– Suppose
COM2304 - Computer Graphics & Image
Processing
34
2/
2/


yf
xf
How Image Gradient Works? (Cont…)
• M(x,y) at that point
equals to 2+2
• Similarly, the direction
of gradient vector at
the same point equals
to:
• It is same as 1350
measured in positive
direction with respect
to the x-axis.
COM2304 - Computer Graphics & Image
Processing
35
0
45tan),( 





 
x
y
G
G
yx
https://www.trigonometrytable.com/tan-inverse.php
How Image Gradient Works? (Cont…)
• Edge at a point is
orthogonal to the gradient
vector at that point.
• So the direction angle of
the edge in this example is
• All edge point in the figure
have the same gradient,
so that entire edge
segment is in the same
direction.
COM2304 - Computer Graphics & Image
Processing
36
00
4590 
How Image Gradient Works? (Cont…)
COM2304 - Computer Graphics & Image
Processing
37
How Image Gradient Works? (Cont…)
Sobel filters are typically used for edge detection
An image of a contact
lens which is
enhanced in order to
make defects (at four
and five o’clock in the
image) more obvious
38
COM2304 - Computer Graphics & Image
Processing
Canny Edge Detection
• The Canny edge detector is a good approximation of the optimal
operator, i.e., the one that maximizes the product of signal-to-noise
ratio and localization.
• Basically, the Canny edge detector is the first derivative of a
Gaussian function.
• The algorithm runs in 5 separate steps:
– Smoothing: Blurring of the image to remove noise.
– Finding gradients: The edges should be marked where the gradients of
the image has large magnitudes.
– Non-maximum suppression: Only local maxima should be marked as
edges.
– Double thresholding: Potential edges are determined by thresholding.
– Edge tracking by hysteresis: Final edges are determined by suppressing
all edges that are not connected to a very certain (strong) edge.
COM2304 - Computer Graphics & Image
Processing
39
Refer Note
Canny Edge Detection (Cont…)
COM2304 - Computer Graphics & Image
Processing
40
Canny Edges
Canny Edge Detection (Cont…)
COM2304 - Computer Graphics & Image
Processing
41
Original Image
Laplacian Edges
Sobel Edges
Canny Edges
1st & 2nd Derivatives
Comparing the 1st and 2nd derivatives we can
conclude the following:
– 1st order derivatives generally produce thicker
edges
– 2nd order derivatives have a stronger response to
fine detail e.g. thin lines
– 1st order derivatives have stronger response to
grey level step
– 2nd order derivatives produce a double response
at step changes in grey level
42
COM2304 - Computer Graphics & Image
Processing
Combining Spatial Enhancement
Methods
Successful image enhancement
is typically not achieved using a
single operation
Rather we combine a range of
techniques in order to achieve a
final result
This example will focus on
enhancing the bone scan to the
right
43
COM2304 - Computer Graphics & Image
Processing
Combining Spatial Enhancement
Methods (Cont…)
Laplacian filter of
bone scan (a)
Sharpened version of
bone scan achieved by
subtracting (a) and (b)
Sobel filter of bone
scan (a)
(a)
(b)
(c)
(d) 44
COM2304 - Computer Graphics & Image
Processing
Combining Spatial Enhancement
Methods (Cont…)
The product of (c) and
(e) which will be used
as a mask
Sharpened image
which is sum of (a)
and (f)
Result of applying a
power-law trans. to
(g)
(e)
(f)
(g)
(h)
Image (d) smoothed with a
5*5 averaging filter
45
COM2304 - Computer Graphics & Image
Processing
Combining Spatial Enhancement
Methods (Cont…)
Compare the original and final images
46
COM2304 - Computer Graphics & Image
Processing
Reference
• Chapter 03 of Gonzalez, R.C., Woods, R.E.,
Digital Image Processing, 3rd ed. Addison-
Wesley Pub.
COM2304 - Computer Graphics & Image
Processing
47
Learning Outcomes Revisit
• Now, you should be able to;
– describe sharpening through spatial filters.
– Identify usage of derivatives in Image
Processing.
– discuss edge detection techniques.
– compare 1st & 2nd order derivatives used for
sharpening.
– Apply sharpening techniques for problem
solving.
COM2304 - Computer Graphics & Image
Processing
48
QUESTIONS ?
Next Lecture – Morphological Image Processing
COM2304 - Computer Graphics & Image
Processing
49

More Related Content

What's hot

Image Restoration (Order Statistics Filters)
Image Restoration (Order Statistics Filters)Image Restoration (Order Statistics Filters)
Image Restoration (Order Statistics Filters)
Kalyan Acharjya
 
Image Restoration
Image RestorationImage Restoration
Image Restoration
Poonam Seth
 
Image representation
Image representationImage representation
Image representation
Rahul Dadwal
 
Chapter 8 image compression
Chapter 8 image compressionChapter 8 image compression
Chapter 8 image compression
asodariyabhavesh
 
Jpeg standards
Jpeg   standardsJpeg   standards
Jpeg standards
NikhilBanerjee7
 
Digital Image restoration
Digital Image restorationDigital Image restoration
Digital Image restoration
Md Shabir Alam
 
Run length encoding
Run length encodingRun length encoding
Run length encoding
praseethasnair123
 
Image processing second unit Notes
Image processing second unit NotesImage processing second unit Notes
Image processing second unit Notes
AAKANKSHA JAIN
 
Color fundamentals and color models - Digital Image Processing
Color fundamentals and color models - Digital Image ProcessingColor fundamentals and color models - Digital Image Processing
Color fundamentals and color models - Digital Image Processing
Amna
 
Anti aliasing,area sampling,koch curve and c curve
Anti aliasing,area sampling,koch curve and c curveAnti aliasing,area sampling,koch curve and c curve
Anti aliasing,area sampling,koch curve and c curve
Pallab Kumar Nandi
 
Smoothing in Digital Image Processing
Smoothing in Digital Image ProcessingSmoothing in Digital Image Processing
Smoothing in Digital Image Processing
Pallavi Agarwal
 
Bit plane slicing
Bit plane slicingBit plane slicing
Bit plane slicing
Asad Ali
 
Introduction to Image Compression
Introduction to Image CompressionIntroduction to Image Compression
Introduction to Image Compression
Kalyan Acharjya
 
4.intensity transformations
4.intensity transformations4.intensity transformations
4.intensity transformations
Yahya Alkhaldi
 
Presentation of Lossy compression
Presentation of Lossy compressionPresentation of Lossy compression
Presentation of Lossy compression
Omar Ghazi
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial Domain
DEEPASHRI HK
 
Spatial filtering
Spatial filteringSpatial filtering
Spatial filtering
DeepikaT13
 
Digital image processing
Digital image processing  Digital image processing
Digital image processing
kavitha muneeshwaran
 
NOISE FILTERS IN IMAGE PROCESSING
NOISE FILTERS IN IMAGE PROCESSINGNOISE FILTERS IN IMAGE PROCESSING
NOISE FILTERS IN IMAGE PROCESSING
Animesh Singh Sengar
 
Noise Models
Noise ModelsNoise Models
Noise Models
Sardar Alam
 

What's hot (20)

Image Restoration (Order Statistics Filters)
Image Restoration (Order Statistics Filters)Image Restoration (Order Statistics Filters)
Image Restoration (Order Statistics Filters)
 
Image Restoration
Image RestorationImage Restoration
Image Restoration
 
Image representation
Image representationImage representation
Image representation
 
Chapter 8 image compression
Chapter 8 image compressionChapter 8 image compression
Chapter 8 image compression
 
Jpeg standards
Jpeg   standardsJpeg   standards
Jpeg standards
 
Digital Image restoration
Digital Image restorationDigital Image restoration
Digital Image restoration
 
Run length encoding
Run length encodingRun length encoding
Run length encoding
 
Image processing second unit Notes
Image processing second unit NotesImage processing second unit Notes
Image processing second unit Notes
 
Color fundamentals and color models - Digital Image Processing
Color fundamentals and color models - Digital Image ProcessingColor fundamentals and color models - Digital Image Processing
Color fundamentals and color models - Digital Image Processing
 
Anti aliasing,area sampling,koch curve and c curve
Anti aliasing,area sampling,koch curve and c curveAnti aliasing,area sampling,koch curve and c curve
Anti aliasing,area sampling,koch curve and c curve
 
Smoothing in Digital Image Processing
Smoothing in Digital Image ProcessingSmoothing in Digital Image Processing
Smoothing in Digital Image Processing
 
Bit plane slicing
Bit plane slicingBit plane slicing
Bit plane slicing
 
Introduction to Image Compression
Introduction to Image CompressionIntroduction to Image Compression
Introduction to Image Compression
 
4.intensity transformations
4.intensity transformations4.intensity transformations
4.intensity transformations
 
Presentation of Lossy compression
Presentation of Lossy compressionPresentation of Lossy compression
Presentation of Lossy compression
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial Domain
 
Spatial filtering
Spatial filteringSpatial filtering
Spatial filtering
 
Digital image processing
Digital image processing  Digital image processing
Digital image processing
 
NOISE FILTERS IN IMAGE PROCESSING
NOISE FILTERS IN IMAGE PROCESSINGNOISE FILTERS IN IMAGE PROCESSING
NOISE FILTERS IN IMAGE PROCESSING
 
Noise Models
Noise ModelsNoise Models
Noise Models
 

Viewers also liked

COM1407: File Processing
COM1407: File Processing COM1407: File Processing
COM1407: File Processing
Hemantha Kulathilake
 
COM2304: Color and Color Models
COM2304: Color and Color ModelsCOM2304: Color and Color Models
COM2304: Color and Color Models
Hemantha Kulathilake
 
5 spatial filtering p1
5 spatial filtering p15 spatial filtering p1
5 spatial filtering p1
Gichelle Amon
 
Spatial filtering using image processing
Spatial filtering using image processingSpatial filtering using image processing
Spatial filtering using image processing
Anuj Arora
 
Unit3 dip
Unit3 dipUnit3 dip
Unit3 dip
Imran Khan
 
SPATIAL FILTER
SPATIAL FILTERSPATIAL FILTER
Image enhancement techniques
Image enhancement techniquesImage enhancement techniques
Image enhancement techniques
sakshij91
 
Image enhancement
Image enhancementImage enhancement
Image enhancement
Ayaelshiwi
 
Image enhancement techniques
Image enhancement techniquesImage enhancement techniques
Image enhancement techniques
Saideep
 
06 spatial filtering DIP
06 spatial filtering DIP06 spatial filtering DIP
06 spatial filtering DIP
babak danyal
 
Smoothing Filters in Spatial Domain
Smoothing Filters in Spatial DomainSmoothing Filters in Spatial Domain
Smoothing Filters in Spatial Domain
Madhu Bala
 
Enhancement in spatial domain
Enhancement in spatial domainEnhancement in spatial domain
Enhancement in spatial domain
Ashish Kumar
 

Viewers also liked (12)

COM1407: File Processing
COM1407: File Processing COM1407: File Processing
COM1407: File Processing
 
COM2304: Color and Color Models
COM2304: Color and Color ModelsCOM2304: Color and Color Models
COM2304: Color and Color Models
 
5 spatial filtering p1
5 spatial filtering p15 spatial filtering p1
5 spatial filtering p1
 
Spatial filtering using image processing
Spatial filtering using image processingSpatial filtering using image processing
Spatial filtering using image processing
 
Unit3 dip
Unit3 dipUnit3 dip
Unit3 dip
 
SPATIAL FILTER
SPATIAL FILTERSPATIAL FILTER
SPATIAL FILTER
 
Image enhancement techniques
Image enhancement techniquesImage enhancement techniques
Image enhancement techniques
 
Image enhancement
Image enhancementImage enhancement
Image enhancement
 
Image enhancement techniques
Image enhancement techniquesImage enhancement techniques
Image enhancement techniques
 
06 spatial filtering DIP
06 spatial filtering DIP06 spatial filtering DIP
06 spatial filtering DIP
 
Smoothing Filters in Spatial Domain
Smoothing Filters in Spatial DomainSmoothing Filters in Spatial Domain
Smoothing Filters in Spatial Domain
 
Enhancement in spatial domain
Enhancement in spatial domainEnhancement in spatial domain
Enhancement in spatial domain
 

Similar to COM2304: Intensity Transformation and Spatial Filtering – III Spatial Filters for Sharpening

Segmentation Techniques -I
Segmentation Techniques -ISegmentation Techniques -I
Segmentation Techniques -I
Hemantha Kulathilake
 
COM2304: Morphological Image Processing
COM2304: Morphological Image ProcessingCOM2304: Morphological Image Processing
COM2304: Morphological Image Processing
Hemantha Kulathilake
 
LAPLACE TRANSFORM SUITABILITY FOR IMAGE PROCESSING
LAPLACE TRANSFORM SUITABILITY FOR IMAGE PROCESSINGLAPLACE TRANSFORM SUITABILITY FOR IMAGE PROCESSING
LAPLACE TRANSFORM SUITABILITY FOR IMAGE PROCESSING
Priyanka Rathore
 
Digital Image Fundamentals - II
Digital Image Fundamentals - IIDigital Image Fundamentals - II
Digital Image Fundamentals - II
Hemantha Kulathilake
 
Spatial Filtering in intro image processingr
Spatial Filtering in intro image processingrSpatial Filtering in intro image processingr
Spatial Filtering in intro image processingr
kumarankit06875
 
Segmentation Techniques -II
Segmentation Techniques -IISegmentation Techniques -II
Segmentation Techniques -II
Hemantha Kulathilake
 
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
 
When Discrete Optimization Meets Multimedia Security (and Beyond)
When Discrete Optimization Meets Multimedia Security (and Beyond)When Discrete Optimization Meets Multimedia Security (and Beyond)
When Discrete Optimization Meets Multimedia Security (and Beyond)
Shujun Li
 
TYBSC (CS) SEM 6- DIGITAL IMAGE PROCESSING
TYBSC (CS) SEM 6- DIGITAL IMAGE PROCESSINGTYBSC (CS) SEM 6- DIGITAL IMAGE PROCESSING
TYBSC (CS) SEM 6- DIGITAL IMAGE PROCESSING
Kamana Tripathi
 
Ch 3. Image Enhancement in the Spatial Domain_okay.ppt
Ch 3. Image Enhancement in the Spatial Domain_okay.pptCh 3. Image Enhancement in the Spatial Domain_okay.ppt
Ch 3. Image Enhancement in the Spatial Domain_okay.ppt
nurulrahat02
 
SpatialEnhancement of course CE7491 of NTU
SpatialEnhancement of course CE7491 of NTUSpatialEnhancement of course CE7491 of NTU
SpatialEnhancement of course CE7491 of NTU
lyumingzhi
 
The automatic license plate recognition(alpr)
The automatic license plate recognition(alpr)The automatic license plate recognition(alpr)
The automatic license plate recognition(alpr)
eSAT Publishing House
 
The automatic license plate recognition(alpr)
The automatic license plate recognition(alpr)The automatic license plate recognition(alpr)
The automatic license plate recognition(alpr)
eSAT Journals
 
Fractal Image Compression of Satellite Color Imageries Using Variable Size of...
Fractal Image Compression of Satellite Color Imageries Using Variable Size of...Fractal Image Compression of Satellite Color Imageries Using Variable Size of...
Fractal Image Compression of Satellite Color Imageries Using Variable Size of...
CSCJournals
 
BallCatchingRobot
BallCatchingRobotBallCatchingRobot
BallCatchingRobot
gauravbrd
 
Module-5-1_230523_171754 (1).pdf
Module-5-1_230523_171754 (1).pdfModule-5-1_230523_171754 (1).pdf
Module-5-1_230523_171754 (1).pdf
vikasmittal92
 
CSE367 Lecture- image sinal processing lecture
CSE367 Lecture- image sinal processing lectureCSE367 Lecture- image sinal processing lecture
CSE367 Lecture- image sinal processing lecture
FatmaNewagy1
 
The automatic license plate recognition(alpr)
The automatic license plate recognition(alpr)The automatic license plate recognition(alpr)
The automatic license plate recognition(alpr)
eSAT Publishing House
 
Environment Detection and Path Planning Using the E-puck Robot
Environment Detection and Path Planning Using the E-puck Robot Environment Detection and Path Planning Using the E-puck Robot
Environment Detection and Path Planning Using the E-puck Robot
IRJET Journal
 
The automatic license plate recognition(alpr)
The automatic license plate recognition(alpr)The automatic license plate recognition(alpr)
The automatic license plate recognition(alpr)
eSAT Journals
 

Similar to COM2304: Intensity Transformation and Spatial Filtering – III Spatial Filters for Sharpening (20)

Segmentation Techniques -I
Segmentation Techniques -ISegmentation Techniques -I
Segmentation Techniques -I
 
COM2304: Morphological Image Processing
COM2304: Morphological Image ProcessingCOM2304: Morphological Image Processing
COM2304: Morphological 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
 
Digital Image Fundamentals - II
Digital Image Fundamentals - IIDigital Image Fundamentals - II
Digital Image Fundamentals - II
 
Spatial Filtering in intro image processingr
Spatial Filtering in intro image processingrSpatial Filtering in intro image processingr
Spatial Filtering in intro image processingr
 
Segmentation Techniques -II
Segmentation Techniques -IISegmentation Techniques -II
Segmentation Techniques -II
 
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
 
When Discrete Optimization Meets Multimedia Security (and Beyond)
When Discrete Optimization Meets Multimedia Security (and Beyond)When Discrete Optimization Meets Multimedia Security (and Beyond)
When Discrete Optimization Meets Multimedia Security (and Beyond)
 
TYBSC (CS) SEM 6- DIGITAL IMAGE PROCESSING
TYBSC (CS) SEM 6- DIGITAL IMAGE PROCESSINGTYBSC (CS) SEM 6- DIGITAL IMAGE PROCESSING
TYBSC (CS) SEM 6- DIGITAL IMAGE PROCESSING
 
Ch 3. Image Enhancement in the Spatial Domain_okay.ppt
Ch 3. Image Enhancement in the Spatial Domain_okay.pptCh 3. Image Enhancement in the Spatial Domain_okay.ppt
Ch 3. Image Enhancement in the Spatial Domain_okay.ppt
 
SpatialEnhancement of course CE7491 of NTU
SpatialEnhancement of course CE7491 of NTUSpatialEnhancement of course CE7491 of NTU
SpatialEnhancement of course CE7491 of NTU
 
The automatic license plate recognition(alpr)
The automatic license plate recognition(alpr)The automatic license plate recognition(alpr)
The automatic license plate recognition(alpr)
 
The automatic license plate recognition(alpr)
The automatic license plate recognition(alpr)The automatic license plate recognition(alpr)
The automatic license plate recognition(alpr)
 
Fractal Image Compression of Satellite Color Imageries Using Variable Size of...
Fractal Image Compression of Satellite Color Imageries Using Variable Size of...Fractal Image Compression of Satellite Color Imageries Using Variable Size of...
Fractal Image Compression of Satellite Color Imageries Using Variable Size of...
 
BallCatchingRobot
BallCatchingRobotBallCatchingRobot
BallCatchingRobot
 
Module-5-1_230523_171754 (1).pdf
Module-5-1_230523_171754 (1).pdfModule-5-1_230523_171754 (1).pdf
Module-5-1_230523_171754 (1).pdf
 
CSE367 Lecture- image sinal processing lecture
CSE367 Lecture- image sinal processing lectureCSE367 Lecture- image sinal processing lecture
CSE367 Lecture- image sinal processing lecture
 
The automatic license plate recognition(alpr)
The automatic license plate recognition(alpr)The automatic license plate recognition(alpr)
The automatic license plate recognition(alpr)
 
Environment Detection and Path Planning Using the E-puck Robot
Environment Detection and Path Planning Using the E-puck Robot Environment Detection and Path Planning Using the E-puck Robot
Environment Detection and Path Planning Using the E-puck Robot
 
The automatic license plate recognition(alpr)
The automatic license plate recognition(alpr)The automatic license plate recognition(alpr)
The automatic license plate recognition(alpr)
 

More from Hemantha Kulathilake

NLP_KASHK:Parsing with Context-Free Grammar
NLP_KASHK:Parsing with Context-Free Grammar NLP_KASHK:Parsing with Context-Free Grammar
NLP_KASHK:Parsing with Context-Free Grammar
Hemantha Kulathilake
 
NLP_KASHK:Context-Free Grammar for English
NLP_KASHK:Context-Free Grammar for EnglishNLP_KASHK:Context-Free Grammar for English
NLP_KASHK:Context-Free Grammar for English
Hemantha Kulathilake
 
NLP_KASHK:POS Tagging
NLP_KASHK:POS TaggingNLP_KASHK:POS Tagging
NLP_KASHK:POS Tagging
Hemantha Kulathilake
 
NLP_KASHK:Markov Models
NLP_KASHK:Markov ModelsNLP_KASHK:Markov Models
NLP_KASHK:Markov Models
Hemantha Kulathilake
 
NLP_KASHK:Smoothing N-gram Models
NLP_KASHK:Smoothing N-gram ModelsNLP_KASHK:Smoothing N-gram Models
NLP_KASHK:Smoothing N-gram Models
Hemantha Kulathilake
 
NLP_KASHK:Evaluating Language Model
NLP_KASHK:Evaluating Language ModelNLP_KASHK:Evaluating Language Model
NLP_KASHK:Evaluating Language Model
Hemantha Kulathilake
 
NLP_KASHK:N-Grams
NLP_KASHK:N-GramsNLP_KASHK:N-Grams
NLP_KASHK:N-Grams
Hemantha Kulathilake
 
NLP_KASHK:Minimum Edit Distance
NLP_KASHK:Minimum Edit DistanceNLP_KASHK:Minimum Edit Distance
NLP_KASHK:Minimum Edit Distance
Hemantha Kulathilake
 
NLP_KASHK:Finite-State Morphological Parsing
NLP_KASHK:Finite-State Morphological ParsingNLP_KASHK:Finite-State Morphological Parsing
NLP_KASHK:Finite-State Morphological Parsing
Hemantha Kulathilake
 
NLP_KASHK:Morphology
NLP_KASHK:MorphologyNLP_KASHK:Morphology
NLP_KASHK:Morphology
Hemantha Kulathilake
 
NLP_KASHK:Text Normalization
NLP_KASHK:Text NormalizationNLP_KASHK:Text Normalization
NLP_KASHK:Text Normalization
Hemantha Kulathilake
 
NLP_KASHK:Finite-State Automata
NLP_KASHK:Finite-State AutomataNLP_KASHK:Finite-State Automata
NLP_KASHK:Finite-State Automata
Hemantha Kulathilake
 
NLP_KASHK:Regular Expressions
NLP_KASHK:Regular Expressions NLP_KASHK:Regular Expressions
NLP_KASHK:Regular Expressions
Hemantha Kulathilake
 
NLP_KASHK: Introduction
NLP_KASHK: Introduction NLP_KASHK: Introduction
NLP_KASHK: Introduction
Hemantha Kulathilake
 
COm1407: Character & Strings
COm1407: Character & StringsCOm1407: Character & Strings
COm1407: Character & Strings
Hemantha Kulathilake
 
COM1407: Structures, Unions & Dynamic Memory Allocation
COM1407: Structures, Unions & Dynamic Memory Allocation COM1407: Structures, Unions & Dynamic Memory Allocation
COM1407: Structures, Unions & Dynamic Memory Allocation
Hemantha Kulathilake
 
COM1407: Input/ Output Functions
COM1407: Input/ Output FunctionsCOM1407: Input/ Output Functions
COM1407: Input/ Output Functions
Hemantha Kulathilake
 
COM1407: Working with Pointers
COM1407: Working with PointersCOM1407: Working with Pointers
COM1407: Working with Pointers
Hemantha Kulathilake
 
COM1407: Arrays
COM1407: ArraysCOM1407: Arrays
COM1407: Arrays
Hemantha Kulathilake
 
COM1407: Program Control Structures – Repetition and Loops
COM1407: Program Control Structures – Repetition and Loops COM1407: Program Control Structures – Repetition and Loops
COM1407: Program Control Structures – Repetition and Loops
Hemantha Kulathilake
 

More from Hemantha Kulathilake (20)

NLP_KASHK:Parsing with Context-Free Grammar
NLP_KASHK:Parsing with Context-Free Grammar NLP_KASHK:Parsing with Context-Free Grammar
NLP_KASHK:Parsing with Context-Free Grammar
 
NLP_KASHK:Context-Free Grammar for English
NLP_KASHK:Context-Free Grammar for EnglishNLP_KASHK:Context-Free Grammar for English
NLP_KASHK:Context-Free Grammar for English
 
NLP_KASHK:POS Tagging
NLP_KASHK:POS TaggingNLP_KASHK:POS Tagging
NLP_KASHK:POS Tagging
 
NLP_KASHK:Markov Models
NLP_KASHK:Markov ModelsNLP_KASHK:Markov Models
NLP_KASHK:Markov Models
 
NLP_KASHK:Smoothing N-gram Models
NLP_KASHK:Smoothing N-gram ModelsNLP_KASHK:Smoothing N-gram Models
NLP_KASHK:Smoothing N-gram Models
 
NLP_KASHK:Evaluating Language Model
NLP_KASHK:Evaluating Language ModelNLP_KASHK:Evaluating Language Model
NLP_KASHK:Evaluating Language Model
 
NLP_KASHK:N-Grams
NLP_KASHK:N-GramsNLP_KASHK:N-Grams
NLP_KASHK:N-Grams
 
NLP_KASHK:Minimum Edit Distance
NLP_KASHK:Minimum Edit DistanceNLP_KASHK:Minimum Edit Distance
NLP_KASHK:Minimum Edit Distance
 
NLP_KASHK:Finite-State Morphological Parsing
NLP_KASHK:Finite-State Morphological ParsingNLP_KASHK:Finite-State Morphological Parsing
NLP_KASHK:Finite-State Morphological Parsing
 
NLP_KASHK:Morphology
NLP_KASHK:MorphologyNLP_KASHK:Morphology
NLP_KASHK:Morphology
 
NLP_KASHK:Text Normalization
NLP_KASHK:Text NormalizationNLP_KASHK:Text Normalization
NLP_KASHK:Text Normalization
 
NLP_KASHK:Finite-State Automata
NLP_KASHK:Finite-State AutomataNLP_KASHK:Finite-State Automata
NLP_KASHK:Finite-State Automata
 
NLP_KASHK:Regular Expressions
NLP_KASHK:Regular Expressions NLP_KASHK:Regular Expressions
NLP_KASHK:Regular Expressions
 
NLP_KASHK: Introduction
NLP_KASHK: Introduction NLP_KASHK: Introduction
NLP_KASHK: Introduction
 
COm1407: Character & Strings
COm1407: Character & StringsCOm1407: Character & Strings
COm1407: Character & Strings
 
COM1407: Structures, Unions & Dynamic Memory Allocation
COM1407: Structures, Unions & Dynamic Memory Allocation COM1407: Structures, Unions & Dynamic Memory Allocation
COM1407: Structures, Unions & Dynamic Memory Allocation
 
COM1407: Input/ Output Functions
COM1407: Input/ Output FunctionsCOM1407: Input/ Output Functions
COM1407: Input/ Output Functions
 
COM1407: Working with Pointers
COM1407: Working with PointersCOM1407: Working with Pointers
COM1407: Working with Pointers
 
COM1407: Arrays
COM1407: ArraysCOM1407: Arrays
COM1407: Arrays
 
COM1407: Program Control Structures – Repetition and Loops
COM1407: Program Control Structures – Repetition and Loops COM1407: Program Control Structures – Repetition and Loops
COM1407: Program Control Structures – Repetition and Loops
 

Recently uploaded

原版制作(carleton毕业证书)卡尔顿大学毕业证硕士文凭原版一模一样
原版制作(carleton毕业证书)卡尔顿大学毕业证硕士文凭原版一模一样原版制作(carleton毕业证书)卡尔顿大学毕业证硕士文凭原版一模一样
原版制作(carleton毕业证书)卡尔顿大学毕业证硕士文凭原版一模一样
yqqaatn0
 
如何办理(uvic毕业证书)维多利亚大学毕业证本科学位证书原版一模一样
如何办理(uvic毕业证书)维多利亚大学毕业证本科学位证书原版一模一样如何办理(uvic毕业证书)维多利亚大学毕业证本科学位证书原版一模一样
如何办理(uvic毕业证书)维多利亚大学毕业证本科学位证书原版一模一样
yqqaatn0
 
ESR spectroscopy in liquid food and beverages.pptx
ESR spectroscopy in liquid food and beverages.pptxESR spectroscopy in liquid food and beverages.pptx
ESR spectroscopy in liquid food and beverages.pptx
PRIYANKA PATEL
 
The debris of the ‘last major merger’ is dynamically young
The debris of the ‘last major merger’ is dynamically youngThe debris of the ‘last major merger’ is dynamically young
The debris of the ‘last major merger’ is dynamically young
Sérgio Sacani
 
Bob Reedy - Nitrate in Texas Groundwater.pdf
Bob Reedy - Nitrate in Texas Groundwater.pdfBob Reedy - Nitrate in Texas Groundwater.pdf
Bob Reedy - Nitrate in Texas Groundwater.pdf
Texas Alliance of Groundwater Districts
 
Eukaryotic Transcription Presentation.pptx
Eukaryotic Transcription Presentation.pptxEukaryotic Transcription Presentation.pptx
Eukaryotic Transcription Presentation.pptx
RitabrataSarkar3
 
Thornton ESPP slides UK WW Network 4_6_24.pdf
Thornton ESPP slides UK WW Network 4_6_24.pdfThornton ESPP slides UK WW Network 4_6_24.pdf
Thornton ESPP slides UK WW Network 4_6_24.pdf
European Sustainable Phosphorus Platform
 
Cytokines and their role in immune regulation.pptx
Cytokines and their role in immune regulation.pptxCytokines and their role in immune regulation.pptx
Cytokines and their role in immune regulation.pptx
Hitesh Sikarwar
 
molar-distalization in orthodontics-seminar.pptx
molar-distalization in orthodontics-seminar.pptxmolar-distalization in orthodontics-seminar.pptx
molar-distalization in orthodontics-seminar.pptx
Anagha Prasad
 
NuGOweek 2024 Ghent programme overview flyer
NuGOweek 2024 Ghent programme overview flyerNuGOweek 2024 Ghent programme overview flyer
NuGOweek 2024 Ghent programme overview flyer
pablovgd
 
Nucleophilic Addition of carbonyl compounds.pptx
Nucleophilic Addition of carbonyl  compounds.pptxNucleophilic Addition of carbonyl  compounds.pptx
Nucleophilic Addition of carbonyl compounds.pptx
SSR02
 
Sharlene Leurig - Enabling Onsite Water Use with Net Zero Water
Sharlene Leurig - Enabling Onsite Water Use with Net Zero WaterSharlene Leurig - Enabling Onsite Water Use with Net Zero Water
Sharlene Leurig - Enabling Onsite Water Use with Net Zero Water
Texas Alliance of Groundwater Districts
 
Unlocking the mysteries of reproduction: Exploring fecundity and gonadosomati...
Unlocking the mysteries of reproduction: Exploring fecundity and gonadosomati...Unlocking the mysteries of reproduction: Exploring fecundity and gonadosomati...
Unlocking the mysteries of reproduction: Exploring fecundity and gonadosomati...
AbdullaAlAsif1
 
Applied Science: Thermodynamics, Laws & Methodology.pdf
Applied Science: Thermodynamics, Laws & Methodology.pdfApplied Science: Thermodynamics, Laws & Methodology.pdf
Applied Science: Thermodynamics, Laws & Methodology.pdf
University of Hertfordshire
 
BREEDING METHODS FOR DISEASE RESISTANCE.pptx
BREEDING METHODS FOR DISEASE RESISTANCE.pptxBREEDING METHODS FOR DISEASE RESISTANCE.pptx
BREEDING METHODS FOR DISEASE RESISTANCE.pptx
RASHMI M G
 
Phenomics assisted breeding in crop improvement
Phenomics assisted breeding in crop improvementPhenomics assisted breeding in crop improvement
Phenomics assisted breeding in crop improvement
IshaGoswami9
 
Randomised Optimisation Algorithms in DAPHNE
Randomised Optimisation Algorithms in DAPHNERandomised Optimisation Algorithms in DAPHNE
Randomised Optimisation Algorithms in DAPHNE
University of Maribor
 
Remote Sensing and Computational, Evolutionary, Supercomputing, and Intellige...
Remote Sensing and Computational, Evolutionary, Supercomputing, and Intellige...Remote Sensing and Computational, Evolutionary, Supercomputing, and Intellige...
Remote Sensing and Computational, Evolutionary, Supercomputing, and Intellige...
University of Maribor
 
bordetella pertussis.................................ppt
bordetella pertussis.................................pptbordetella pertussis.................................ppt
bordetella pertussis.................................ppt
kejapriya1
 
The binding of cosmological structures by massless topological defects
The binding of cosmological structures by massless topological defectsThe binding of cosmological structures by massless topological defects
The binding of cosmological structures by massless topological defects
Sérgio Sacani
 

Recently uploaded (20)

原版制作(carleton毕业证书)卡尔顿大学毕业证硕士文凭原版一模一样
原版制作(carleton毕业证书)卡尔顿大学毕业证硕士文凭原版一模一样原版制作(carleton毕业证书)卡尔顿大学毕业证硕士文凭原版一模一样
原版制作(carleton毕业证书)卡尔顿大学毕业证硕士文凭原版一模一样
 
如何办理(uvic毕业证书)维多利亚大学毕业证本科学位证书原版一模一样
如何办理(uvic毕业证书)维多利亚大学毕业证本科学位证书原版一模一样如何办理(uvic毕业证书)维多利亚大学毕业证本科学位证书原版一模一样
如何办理(uvic毕业证书)维多利亚大学毕业证本科学位证书原版一模一样
 
ESR spectroscopy in liquid food and beverages.pptx
ESR spectroscopy in liquid food and beverages.pptxESR spectroscopy in liquid food and beverages.pptx
ESR spectroscopy in liquid food and beverages.pptx
 
The debris of the ‘last major merger’ is dynamically young
The debris of the ‘last major merger’ is dynamically youngThe debris of the ‘last major merger’ is dynamically young
The debris of the ‘last major merger’ is dynamically young
 
Bob Reedy - Nitrate in Texas Groundwater.pdf
Bob Reedy - Nitrate in Texas Groundwater.pdfBob Reedy - Nitrate in Texas Groundwater.pdf
Bob Reedy - Nitrate in Texas Groundwater.pdf
 
Eukaryotic Transcription Presentation.pptx
Eukaryotic Transcription Presentation.pptxEukaryotic Transcription Presentation.pptx
Eukaryotic Transcription Presentation.pptx
 
Thornton ESPP slides UK WW Network 4_6_24.pdf
Thornton ESPP slides UK WW Network 4_6_24.pdfThornton ESPP slides UK WW Network 4_6_24.pdf
Thornton ESPP slides UK WW Network 4_6_24.pdf
 
Cytokines and their role in immune regulation.pptx
Cytokines and their role in immune regulation.pptxCytokines and their role in immune regulation.pptx
Cytokines and their role in immune regulation.pptx
 
molar-distalization in orthodontics-seminar.pptx
molar-distalization in orthodontics-seminar.pptxmolar-distalization in orthodontics-seminar.pptx
molar-distalization in orthodontics-seminar.pptx
 
NuGOweek 2024 Ghent programme overview flyer
NuGOweek 2024 Ghent programme overview flyerNuGOweek 2024 Ghent programme overview flyer
NuGOweek 2024 Ghent programme overview flyer
 
Nucleophilic Addition of carbonyl compounds.pptx
Nucleophilic Addition of carbonyl  compounds.pptxNucleophilic Addition of carbonyl  compounds.pptx
Nucleophilic Addition of carbonyl compounds.pptx
 
Sharlene Leurig - Enabling Onsite Water Use with Net Zero Water
Sharlene Leurig - Enabling Onsite Water Use with Net Zero WaterSharlene Leurig - Enabling Onsite Water Use with Net Zero Water
Sharlene Leurig - Enabling Onsite Water Use with Net Zero Water
 
Unlocking the mysteries of reproduction: Exploring fecundity and gonadosomati...
Unlocking the mysteries of reproduction: Exploring fecundity and gonadosomati...Unlocking the mysteries of reproduction: Exploring fecundity and gonadosomati...
Unlocking the mysteries of reproduction: Exploring fecundity and gonadosomati...
 
Applied Science: Thermodynamics, Laws & Methodology.pdf
Applied Science: Thermodynamics, Laws & Methodology.pdfApplied Science: Thermodynamics, Laws & Methodology.pdf
Applied Science: Thermodynamics, Laws & Methodology.pdf
 
BREEDING METHODS FOR DISEASE RESISTANCE.pptx
BREEDING METHODS FOR DISEASE RESISTANCE.pptxBREEDING METHODS FOR DISEASE RESISTANCE.pptx
BREEDING METHODS FOR DISEASE RESISTANCE.pptx
 
Phenomics assisted breeding in crop improvement
Phenomics assisted breeding in crop improvementPhenomics assisted breeding in crop improvement
Phenomics assisted breeding in crop improvement
 
Randomised Optimisation Algorithms in DAPHNE
Randomised Optimisation Algorithms in DAPHNERandomised Optimisation Algorithms in DAPHNE
Randomised Optimisation Algorithms in DAPHNE
 
Remote Sensing and Computational, Evolutionary, Supercomputing, and Intellige...
Remote Sensing and Computational, Evolutionary, Supercomputing, and Intellige...Remote Sensing and Computational, Evolutionary, Supercomputing, and Intellige...
Remote Sensing and Computational, Evolutionary, Supercomputing, and Intellige...
 
bordetella pertussis.................................ppt
bordetella pertussis.................................pptbordetella pertussis.................................ppt
bordetella pertussis.................................ppt
 
The binding of cosmological structures by massless topological defects
The binding of cosmological structures by massless topological defectsThe binding of cosmological structures by massless topological defects
The binding of cosmological structures by massless topological defects
 

COM2304: Intensity Transformation and Spatial Filtering – III Spatial Filters for Sharpening

  • 1. COMPUTER GRAPHICS & IMAGE PROCESSING COM2403 Intensity Transformation and Spatial Filtering – III Spatial Filters for Sharpening K.A.S.H.Kulathilake B.Sc. (Hons) IT (SLIIT), MCS (UCSC), M.Phil (UOM), SEDA(UK) Rajarata University of Sri Lanka Faculty of Applied Sciences Department of Physical Sciences
  • 2. Learning Outcomes COM2304 - Computer Graphics & Image Processing • At the end of this lecture, you should be able to; – describe sharpening through spatial filters. – Identify usage of derivatives in Image Processing. – discuss edge detection techniques. – compare 1st & 2nd order derivatives used for sharpening. – Apply sharpening techniques for problem solving. 2
  • 3. Sharpening Spatial Filters • The principle objective of sharpening is to highlight transitions in intensity. • In other terms, sharpening spatial filters seek to highlight fine detail – Remove blurring from images – Highlight edges • Sharpening filters are based on spatial differentiation. • The strength of the response of a derivative operator is proportional to the degree of intensity discontinuity of the image at the point at which the operator is applied. • Hence, image differentiation enhances edges and other discontinuities ( such as noise) and deemphasizes areas with slowly varying intensities. COM2304 - Computer Graphics & Image Processing 3
  • 4. Sharpening Spatial Filters (Cont…) • As the initial approach, it is better to get an idea about certain properties of first order and second order derivatives in the digital context. • To simplify the explanation, it has been focused attention on one dimensional derivatives. • We are interested in the behavior of these derivatives in areas of – Constant intensity, – At the onset and end of discontinuities (step and ramp discontinuities), and – Along the intensity ramps. COM2304 - Computer Graphics & Image Processing 4
  • 5. Sharpening Spatial Filters (Cont…) • Differentiation measures the rate of change of a function. • In digital context, values are finite and the maximum possible intensity change is also finite. • The shortest distance over which that change can occur is between the adjacent pixels. • To understand this let’s discuss an example. COM2304 - Computer Graphics & Image Processing 5
  • 6. Sharpening Spatial Filters (Cont…) A B Intensity transition 6 COM2304 - Computer Graphics & Image Processing
  • 7. Sharpening Spatial Filters (Cont…) • The formula for the 1st derivative of a function is as follows: • It is just the difference between subsequent values and measures the rate of change of the function. • It should satisfy following conditions: – Must be zero in the areas of constant intensity. – Must be nonzero at the onset of an intensity step or ramp. – Must be nonzero along the ramp. COM2304 - Computer Graphics & Image Processing 7 )()1( xfxf x f   
  • 8. Sharpening Spatial Filters (Cont…)Image Strip 0 1 2 3 4 5 6 7 8 1st Derivative -8 -6 -4 -2 0 2 4 6 8 5 5 4 3 2 1 0 0 0 6 0 0 0 0 1 3 1 0 0 0 0 7 7 7 7 -1 -1 -1 -1 -1 0 0 6 -6 0 0 0 1 2 -2 -1 0 0 0 7 0 0 0 8 COM2304 - Computer Graphics & Image Processing
  • 9. Sharpening Spatial Filters (Cont…) • The formula for the 2nd derivative of a function is as follows: • Simply takes into account the values both before and after the current value. • It should satisfy: – Must be zero in the areas of constant intensity. – Must be nonzero at the onset and end of an intensity step or ramp. – Must be zero along the ramp of constant slope. COM2304 - Computer Graphics & Image Processing 9 )(2)1()1(2 2 xfxfxf x f   
  • 10. Sharpening Spatial Filters (Cont…)Image Strip 0 1 2 3 4 5 6 7 8 5 5 4 3 2 1 0 0 0 6 0 0 0 0 1 3 1 0 0 0 0 7 7 7 7 2nd Derivative -15 -10 -5 0 5 10 -1 0 0 0 0 1 0 6 -12 6 0 0 1 1 -4 1 1 0 0 7 -7 0 0 Zero crossing Zero crossing property is quite useful for locating edges 10 COM2304 - Computer Graphics & Image Processing
  • 11. Sharpening Spatial Filters (Cont…) • The 2nd derivative is more useful for image enhancement than the 1st derivative because; – Stronger response to fine detail – Simpler implementation COM2304 - Computer Graphics & Image Processing 11
  • 12. The Laplacian Operation • In this section, we discuss 2D, second order derivatives used for image sharpening. • It is an isotropic filter – It means that the response is independent of the direction of the discontinuities in the image to which the filter is applied. / rotation invariant. COM2304 - Computer Graphics & Image Processing 12
  • 13. The Laplacian Operation (Cont…) The Laplacian is defined as follows: where the partial 2nd order derivative in the x direction is defined as follows: and in the y direction as follows: y f x f f 2 2 2 2 2       ),(2),1(),1(2 2 yxfyxfyxf x f    ),(2)1,()1,(2 2 yxfyxfyxf y f    13 COM2304 - Computer Graphics & Image Processing
  • 14. The Laplacian Operation (Cont…) So, the Laplacian can be given as follows: We can easily build a filter based on this ),1(),1([2 yxfyxff  )]1,()1,(  yxfyxf ),(4 yxf 0 1 0 1 -4 1 0 1 0 This provides an isotropic results for rotations in increments of 90 degrees 0 -1 0 -1 4 -1 0 -1 0 14 COM2304 - Computer Graphics & Image Processing
  • 15. The Laplacian Operation (Cont…) • We can incorporate diagonal directions to form a laplacian filter; COM2304 - Computer Graphics & Image Processing 15 ),1(),1([2 yxfyxff  )]1,()1,(  yxfyxf ),(8 yxf )]1,1()1,1(  yxfyxf)1,1()1,1([  yxfyxf 1 1 1 1 -8 1 1 1 1 -1 -1 -1 -1 8 -1 -1 -1 -1 This provides an isotropic results for rotations in increments of 45 degrees
  • 16. The Laplacian Operation (Cont…) Applying the Laplacian to an image we get a new image that highlights edges and other discontinuities Original Image Laplacian Filtered Image Laplacian Filtered Image Scaled for Display 16 COM2304 - Computer Graphics & Image Processing
  • 17. The Laplacian Operation (Cont…) The result of a Laplacian filtering is not an enhanced image We have to do more work in order to get our final image Subtract the Laplacian result from the original image to generate our final sharpened enhanced image Laplacian Filtered Image Scaled for Display fyxfyxg 2 ),(),(  17 COM2304 - Computer Graphics & Image Processing
  • 18. The Laplacian Operation (Cont…) Laplacian Image Enhancement: In the final sharpened image edges and fine detail are much more obvious - = Original Image Laplacian Filtered Image Sharpened Image 18 COM2304 - Computer Graphics & Image Processing
  • 19. The Laplacian Operation (Cont…) 19 COM2304 - Computer Graphics & Image Processing
  • 20. Image Gradient & Properties • First derivatives in image processing are implemented using the magnitude of the gradient. • Gradient is a tool of choice for finding edge strength and direction at location (x, y) of an image f and it is defined as a vector. • For a function f(x, y) the gradient of f at coordinates (x, y) is given as the column vector: COM2304 - Computer Graphics & Image Processing 20                        y f x f G G y x f This vector has important geometrical property that it points in the direction of the greatest rate of change of f at location (x, y).
  • 21. Image Gradient & Properties (Cont…) • Gradient Operators: – Obtaining the gradient of an image requires computing the partial derivatives x and y at every pixel location in the image. – Therefore, digital approximation of the partial derivatives over a neighborhood about a point is required. COM2304 - Computer Graphics & Image Processing 21 ),()1,( ),( ),(),1( ),( yxfyxf y yxf G yxfyxf x yxf G y x        
  • 22. Image Gradient & Properties (Cont…) • There are various gradient operators available namely; ID mask, Robert Cross, Prewitt, Sobel • I-D Mask: – Above equations can be implemented for all pertinent values of x and y by filtering f(x,y) with the 1-D masks. COM2304 - Computer Graphics & Image Processing 22 -1 1 -1 1
  • 23. Image Gradient & Properties (Cont…) • Roberts Cross-Gradient Operators: • When diagonal edge direction is of interest, we need a 2 Dimensional mask. • This operator cannot compute the edge direction COM2304 - Computer Graphics & Image Processing 23 )( ),( )( ),( 68 59 zz y yxf G zz x yxf G y x         z1 z2 z3 z4 z5 z6 z7 z8 z9
  • 24. Image Gradient & Properties (Cont…) • Prewitt Gradient Operators: COM2304 - Computer Graphics & Image Processing 24 )()( ),( )()( ),( 741963 321987 zzzzzz y yxf G zzzzzz x yxf G y x         z1 z2 z3 z4 z5 z6 z7 z8 z9
  • 25. Image Gradient & Properties (Cont…) • Sobel Gradient Operators: – Using 2 in the center location provides image smoothing; hence, it has better noise suppression. COM2304 - Computer Graphics & Image Processing 25 )2()2( ),( )2()2( ),( 741963 321987 zzzzzz y yxf G zzzzzz x yxf G y x         z1 z2 z3 z4 z5 z6 z7 z8 z9
  • 26. Image Gradient & Properties (Cont…) COM2304 - Computer Graphics & Image Processing 26 Original Image Horizontal Gradient Component Vertical Gradient Component Combined Edge Image
  • 27. Image Gradient & Properties (Cont…) • Note that the coefficients of all the masks sum to zero, thus giving a response of zero in areas of constant intensity, as expected of a derivative operator. • To filter an image it is filtered using both operators the results of which are added together • All the masks discussed above are used to determine Gx, and Gy. COM2304 - Computer Graphics & Image Processing 27
  • 28. Image Gradient & Properties (Cont…) • Prewitt and Sobel masks give isotropic results only for vertical and horizontal edges. • It is possible to modify the 3*3 masks, so that they have their strongest responses along the diagonal directions as shown below; COM2304 - Computer Graphics & Image Processing 28 0 1 1 -1 0 1 -1 -1 0 -1 -1 0 -1 0 1 0 1 1 Modified Prewitt masks
  • 29. How Image Gradient Works? • How Sobel works? – The Sobel edge detector is a gradient based method. – It works with first order derivatives. – It calculates the first derivatives of the image separately for the X and Y axes. – The derivatives are only approximations (because the images are not continuous). COM2304 - Computer Graphics & Image Processing 29
  • 30. How Image Gradient Works? (Cont…) – To approximate them, the following kernels are used for convolution: – The kernel on the left approximates the derivative along the X axis. The one on the right is for the Y axis. – Using this information, we can calculate the following: • Magnitude or "strength" of the edge: • Approximate strength: • The orientation of the edge: COM2304 - Computer Graphics & Image Processing 30
  • 31. How Image Gradient Works? (Cont…) The magnitude of this vector is given by: For practical reasons this can be simplified as: )f( magf   2 1 22 yx GG  2 1 22                          y f x f yx GGf  31 COM2304 - Computer Graphics & Image Processing It is the value of the rate of change in the direction of the gradient vector.
  • 32. How Image Gradient Works? (Cont…) • The direction of the gradient vector is given by the angle: • It is measured with respect to the x- axis. • The direction of an edge at an arbitrary point (x, y) is orthogonal to the direction, ᾳ(x, y) of the gradient vector at the point. COM2304 - Computer Graphics & Image Processing 32        x y g g yx nta),(
  • 33. How Image Gradient Works? (Cont…) COM2304 - Computer Graphics & Image Processing 33 Figure contains zoomed straight edge segment. Each square shown here corresponds to a pixel. We want to find strength and direction of the edge at the point highlighted with a box? Example
  • 34. How Image Gradient Works? (Cont…) • Method: – We need to compute the derivatives of x and y directions using a 3* 3 neighborhood. – To get the partial derivatives in the x direction subtract the pixels in the top row of the neighborhood from the pixels in the bottom row. – To get the partial derivatives in the y direction subtract the pixels in the left column of the neighborhood from the pixels in the right column. – Suppose COM2304 - Computer Graphics & Image Processing 34 2/ 2/   yf xf
  • 35. How Image Gradient Works? (Cont…) • M(x,y) at that point equals to 2+2 • Similarly, the direction of gradient vector at the same point equals to: • It is same as 1350 measured in positive direction with respect to the x-axis. COM2304 - Computer Graphics & Image Processing 35 0 45tan),(         x y G G yx https://www.trigonometrytable.com/tan-inverse.php
  • 36. How Image Gradient Works? (Cont…) • Edge at a point is orthogonal to the gradient vector at that point. • So the direction angle of the edge in this example is • All edge point in the figure have the same gradient, so that entire edge segment is in the same direction. COM2304 - Computer Graphics & Image Processing 36 00 4590 
  • 37. How Image Gradient Works? (Cont…) COM2304 - Computer Graphics & Image Processing 37
  • 38. How Image Gradient Works? (Cont…) Sobel filters are typically used for edge detection An image of a contact lens which is enhanced in order to make defects (at four and five o’clock in the image) more obvious 38 COM2304 - Computer Graphics & Image Processing
  • 39. Canny Edge Detection • The Canny edge detector is a good approximation of the optimal operator, i.e., the one that maximizes the product of signal-to-noise ratio and localization. • Basically, the Canny edge detector is the first derivative of a Gaussian function. • The algorithm runs in 5 separate steps: – Smoothing: Blurring of the image to remove noise. – Finding gradients: The edges should be marked where the gradients of the image has large magnitudes. – Non-maximum suppression: Only local maxima should be marked as edges. – Double thresholding: Potential edges are determined by thresholding. – Edge tracking by hysteresis: Final edges are determined by suppressing all edges that are not connected to a very certain (strong) edge. COM2304 - Computer Graphics & Image Processing 39 Refer Note
  • 40. Canny Edge Detection (Cont…) COM2304 - Computer Graphics & Image Processing 40 Canny Edges
  • 41. Canny Edge Detection (Cont…) COM2304 - Computer Graphics & Image Processing 41 Original Image Laplacian Edges Sobel Edges Canny Edges
  • 42. 1st & 2nd Derivatives Comparing the 1st and 2nd derivatives we can conclude the following: – 1st order derivatives generally produce thicker edges – 2nd order derivatives have a stronger response to fine detail e.g. thin lines – 1st order derivatives have stronger response to grey level step – 2nd order derivatives produce a double response at step changes in grey level 42 COM2304 - Computer Graphics & Image Processing
  • 43. Combining Spatial Enhancement Methods Successful image enhancement is typically not achieved using a single operation Rather we combine a range of techniques in order to achieve a final result This example will focus on enhancing the bone scan to the right 43 COM2304 - Computer Graphics & Image Processing
  • 44. Combining Spatial Enhancement Methods (Cont…) Laplacian filter of bone scan (a) Sharpened version of bone scan achieved by subtracting (a) and (b) Sobel filter of bone scan (a) (a) (b) (c) (d) 44 COM2304 - Computer Graphics & Image Processing
  • 45. Combining Spatial Enhancement Methods (Cont…) The product of (c) and (e) which will be used as a mask Sharpened image which is sum of (a) and (f) Result of applying a power-law trans. to (g) (e) (f) (g) (h) Image (d) smoothed with a 5*5 averaging filter 45 COM2304 - Computer Graphics & Image Processing
  • 46. Combining Spatial Enhancement Methods (Cont…) Compare the original and final images 46 COM2304 - Computer Graphics & Image Processing
  • 47. Reference • Chapter 03 of Gonzalez, R.C., Woods, R.E., Digital Image Processing, 3rd ed. Addison- Wesley Pub. COM2304 - Computer Graphics & Image Processing 47
  • 48. Learning Outcomes Revisit • Now, you should be able to; – describe sharpening through spatial filters. – Identify usage of derivatives in Image Processing. – discuss edge detection techniques. – compare 1st & 2nd order derivatives used for sharpening. – Apply sharpening techniques for problem solving. COM2304 - Computer Graphics & Image Processing 48
  • 49. QUESTIONS ? Next Lecture – Morphological Image Processing COM2304 - Computer Graphics & Image Processing 49