CV Lecture 8
CV Lecture 8
CV Lecture 8
CSC-455
Today’s Lecture
3
Structuring Element
4
Morphology: Quick Example
Structuring Element 29
Erosion
Effects
Shrinks the size of foreground (1-valued) objects
Smoothes object boundaries
Removes small objects
After erosion
Original
with a disc of
image
radius 10
9
Erosion
Perform Erosion
Structuring Element
Dilation
Effects
Expands the size of foreground(1-valued)
objects
Smoothes object boundaries
Closes holes and gaps
0 0 0 0 0
0 0 0 0 0
0 1 1 1 0
0 0 0 0 0
0 1 1 1 0
Image Segment 0 0 1 0 0
0 1 1 1 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
Dilation A +B
0 1 1 1 0
0 1 0 1 1 1 1 1
Structuring Element
1 1 1 1 1 1 1 1
0 1 0 1 1 1 1 1
0 1 1 1 0
Segment B
19
Opening
f s ( f s) s
Opening
Image
Opening: Example
Opening
Breaks narrow joints
Removes ‘Salt’ noise
Opening: Example
56
Original Image Processed Image
Structuring Element
Closing
f s ( f s) s
After
Closing
Image
Closing: Example
Closing
Eliminates small holes
Fills gaps
Removes ‘Pepper’ noise
Closing: Example
60
Original Image Processed Image
Structuring Element
References
Some Slide material has been taken from Dr M. Usman Akram Computer Vision
Lectures
CSCI 1430: Introduction to Computer Vision by James Tompkin
Statistical Pattern Recognition: A Review – A.K Jain et al., PAMI (22) 2000
Pattern Recognition and Analysis Course – A.K. Jain, MSU
Pattern Classification” by Duda et al., John Wiley & Sons.
Digital Image Processing”, Rafael C. Gonzalez & Richard E. Woods, Addison-Wesley,
2002
Machine Vision: Automated Visual Inspection and Robot Vision”, David Vernon,
Prentice Hall, 1991
www.eu.aibo.com/
Advances in Human Computer Interaction, Shane Pinder, InTech, Austria, October
2008
Computer Vision A modern Approach by Frosyth
http://www.cs.cmu.edu/~16385/s18/