Gianni Ramponi University of Trieste Images © 2002 Gonzalez & Woods Digital Image Processing Chapter 9 Morphological Image.

Slides:



Advertisements
Similar presentations
Gray-Scale Morphological Filtering
Advertisements

Course Syllabus 1.Color 2.Camera models, camera calibration 3.Advanced image pre-processing Line detection Corner detection Maximally stable extremal regions.
In form and in feature, face and limb, I grew so like my brother
Table of Contents 9.5 Some Basic Morphological Algorithm
Course Syllabus 1.Color 2.Camera models, camera calibration 3.Advanced image pre-processing Line detection Corner detection Maximally stable extremal regions.
CDS 301 Fall, 2009 Image Visualization Chap. 9 November 5, 2009 Jie Zhang Copyright ©
Chapter 9: Morphological Image Processing
Course Syllabus 1.Color 2.Camera models, camera calibration 3.Advanced image pre-processing Line detection Corner detection Maximally stable extremal regions.
DIGITAL IMAGE PROCESSING
Each pixel is 0 or 1, background or foreground Image processing to
Introduction to Morphological Operators
Morphological Image Processing Md. Rokanujjaman Assistant Professor Dept of Computer Science and Engineering Rajshahi University.
Tutorial # 10 Morphological Operations I8oZE.
Provides mathematical tools for shape analysis in both binary and grayscale images Chapter 13 – Mathematical Morphology Usages: (i)Image pre-processing.
Digital Image Processing, 2nd ed. © 2002 R. C. Gonzalez & R. E. Woods Chapter 9 Morphological Image Processing Chapter 9 Morphological.
Chapter 9 Morphological Image Processing. Preview Morphology: denotes a branch of biology that deals with the form and structure of animals and planets.
Morphological Image Processing Spring 2006, Jen-Chang Liu.
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
Morphological Image Processing
2007Theo Schouten1 Morphology Set theory is the mathematical basis for morphology. Sets in Euclidic space E 2 (or rather Z 2 : the set of pairs of integers)
CSE554Binary PicturesSlide 1 CSE 554 Lecture 1: Binary Pictures Fall 2013.
Digital Image Processing
Lecture 5. Morphological Image Processing. 10/6/20152 Introduction ► ► Morphology: a branch of biology that deals with the form and structure of animals.
Morphological Image Processing
MATHEMATICAL MORPHOLOGY I.INTRODUCTION II.BINARY MORPHOLOGY III.GREY-LEVEL MORPHOLOGY.
Mathematical Morphology Lecture 14 Course book reading: GW Lucia Ballerini Digital Image Processing.
Chapter 9.  Mathematical morphology: ◦ A useful tool for extracting image components in the representation of region shape.  Boundaries, skeletons,
Mathematical Morphology in Image Processing Dr.K.V.Pramod Dept. of Computer Applications Cochin University of Sc. & Technology.
Course Syllabus 1.Color 2.Camera models, camera calibration 3.Advanced image pre-processing Line detection Corner detection Maximally stable extremal regions.
Digital Image Processing Chapter 9: Morphological Image Processing 5 September 2007 Digital Image Processing Chapter 9: Morphological Image Processing.
Morphological Image Processing
J. Shanbehzadeh M. Hosseinajad Khwarizmi University of Tehran.
Image Segmentation and Morphological Processing Digital Image Processing in Life- Science Aviad Baram
Chapter 3 cont’d. Binary Image Analysis. Binary image morphology (nonlinear image processing)
Digital Image Processing
Mathematical Morphology Mathematical morphology (matematická morfologie) –A special image analysis discipline based on morphological transformations of.
DIGITAL IMAGE PROCESSING Instructors: Dr J. Shanbehzadeh Mostafa Mahdijo Mostafa Mahdijo ( J.Shanbehzadeh.
Digital Image Processing CSC331 Morphological image processing 1.
Morphological Image Processing การทำงานกับรูปภาพด้วยวิธีมอร์โฟโลจิคัล
CS654: Digital Image Analysis
Mathematical Morphology
References Books: Chapter 11, Image Processing, Analysis, and Machine Vision, Sonka et al Chapter 9, Digital Image Processing, Gonzalez & Woods.
CS654: Digital Image Analysis
CDS 301 Fall, 2008 Image Visualization Chap. 9 November 11, 2008 Jie Zhang Copyright ©
EE 4780 Morphological Image Processing. Bahadir K. Gunturk2 Example Two semiconductor wafer images are given. You are supposed to determine the defects.
1 Mathematic Morphology used to extract image components that are useful in the representation and description of region shape, such as boundaries extraction.
DIGITAL IMAGE PROCESSING
Morphological Image Processing Robotics. 2/22/2016Introduction to Machine Vision Remember from Lecture 12: GRAY LEVEL THRESHOLDING Objects Set threshold.
 Mathematical morphology is a tool for extracting image components that are useful in the representation and description of region shape, such as boundaries,
BYST Morp-1 DIP - WS2002: Morphology Digital Image Processing Morphological Image Processing Bundit Thipakorn, Ph.D. Computer Engineering Department.
Morphology Morphology deals with form and structure Mathematical morphology is a tool for extracting image components useful in: –representation and description.
Lecture(s) 3-4. Morphological Image Processing. 3/13/20162 Introduction ► ► Morphology: a branch of biology that deals with the form and structure of.
Chapter 6 Skeleton & Morphological Operation. Image Processing for Pattern Recognition Feature Extraction Acquisition Preprocessing Classification Post.
Morphological Image Processing (Chapter 9) CSC 446 Lecturer: Nada ALZaben.
Morphological Image Processing
Mathematical Morphology A Geometric Approach to Image Processing and Analysis John Goutsias Department of Electrical and Computer Engineering Image Analysis.
Lecture 11+x+1 Chapter 9 Morphological Image Processing.
Digital Image Processing Lecture 15: Morphological Algorithms April 27, 2005 Prof. Charlene Tsai.
Gray-level images.
Digital Image Processing CP-7008 Lecture # 09 Morphological Image Processing Fall 2011.
CSE 554 Lecture 1: Binary Pictures
Introduction to Morphological Operators
CS Digital Image Processing Lecture 5
Binary Image processing بهمن 92
Morphological Image Processing
Digital Image Processing Lecture 15: Morphological Algorithms
Digital Image Processing Lecture 14: Morphology
Morphological Operators
DIGITAL IMAGE PROCESSING Elective 3 (5th Sem.)
Morphological Filters Applications and Extension Morphological Filters
Presentation transcript:

Gianni Ramponi University of Trieste Images © 2002 Gonzalez & Woods Digital Image Processing Chapter 9 Morphological Image Processing Chapter 9 Morphological Image Processing Question What is Mathematical Morphology ? An (imprecise) Mathematical Answer A mathematical tool for investigating geometric structure in binary and grayscale images. Shape Processing and Analysis Visual perception requires transformation of images so as to make explicit particular shape information. Goal: Distinguish meaningful shape information from irrelevant one. The vast majority of shape processing and analysis techniques are based on designing a shape operator which satisfies desirable properties.

Gianni Ramponi University of Trieste Images © 2002 Gonzalez & Woods Digital Image Processing Chapter 9 Morphological Image Processing Chapter 9 Morphological Image Processing Morphological Operators Erosions and dilations are the most elementary operators of mathematical morphology. More complicated morphological operators can be designed by means of combining erosions and dilations. Some History George Matheron (1975) Random Sets and Integral Geometry, John Wiley. Jean Serra (1982) Image Analysis and Mathematical Morphology, Academic Press. Petros Maragos (1985) A Unified Theory of Translations-Invariant Systems with Applications to Morphological Analysis and Coding of Images, Doctoral Thesis, Georgia Tech.

Gianni Ramponi University of Trieste Images © 2002 Gonzalez & Woods Digital Image Processing Chapter 9 Morphological Image Processing Chapter 9 Morphological Image Processing

Gianni Ramponi University of Trieste Images © 2002 Gonzalez & Woods Digital Image Processing Chapter 9 Morphological Image Processing Chapter 9 Morphological Image Processing

Gianni Ramponi University of Trieste Images © 2002 Gonzalez & Woods Digital Image Processing Chapter 9 Morphological Image Processing Chapter 9 Morphological Image Processing

Gianni Ramponi University of Trieste Images © 2002 Gonzalez & Woods Digital Image Processing Chapter 9 Morphological Image Processing: DILATION Chapter 9 Morphological Image Processing: DILATION B = structuring element NOTE:the flipping of the structuring element is included in analogy to convolution. Not all Authors perform it. Set of all points z such that B, flipped and translated by z, has a non-empty intersection with A

Gianni Ramponi University of Trieste Images © 2002 Gonzalez & Woods Digital Image Processing Chapter 9 Morphological Image Processing: DILATION Chapter 9 Morphological Image Processing: DILATION A possible alternative: linear lowpass filtering + thresholding Example: bridging the gaps

Gianni Ramponi University of Trieste Images © 2002 Gonzalez & Woods Digital Image Processing Chapter 9 Morphological Image Processing: EROSION Chapter 9 Morphological Image Processing: EROSION Set of all points z such that B, translated by z, is included in A

Gianni Ramponi University of Trieste Images © 2002 Gonzalez & Woods Digital Image Processing Example: eliminating small objects NOTE: white objects on black background (opposite wrt prev. slides) NOTE: the final dilation will NOT yield in general the exact shape of the original objects Chapter 9 Morphological Image Processing: EROSION Chapter 9 Morphological Image Processing: EROSION

Gianni Ramponi University of Trieste Images © 2002 Gonzalez & Woods Digital Image Processing Example: Chapter 9 Morphological Image Processing: EROSION Chapter 9 Morphological Image Processing: EROSION

Gianni Ramponi University of Trieste Images © 2002 Gonzalez & Woods Digital Image Processing Opening and closing OPENING is erosion followed by dilation CLOSING is dilation followed by erosion Chapter 9 Morphological Processing: OPENING, CLOSING Chapter 9 Morphological Processing: OPENING, CLOSING

Gianni Ramponi University of Trieste Images © 2002 Gonzalez & Woods Digital Image Processing Chapter 9 Morphological Image Processing: OPENING Chapter 9 Morphological Image Processing: OPENING A different formulation:

Gianni Ramponi University of Trieste Images © 2002 Gonzalez & Woods Digital Image Processing Chapter 9 Morphological Image Processing: CLOSING Chapter 9 Morphological Image Processing: CLOSING A different formulation: a point w is an element of if and only if for any translate of (B) z that contains w

Gianni Ramponi University of Trieste Images © 2002 Gonzalez & Woods Digital Image Processing Chapter 9 Morphological Image Processing Chapter 9 Morphological Image Processing A property: Erosion and Dilation Opening and Closing are dual operators wrt set complementation and reflection:

Gianni Ramponi University of Trieste Images © 2002 Gonzalez & Woods Digital Image Processing Chapter 9 Morphological Image Processing: EXAMPLE Chapter 9 Morphological Image Processing: EXAMPLE

Gianni Ramponi University of Trieste Images © 2002 Gonzalez & Woods Digital Image Processing Chapter 9 Morphological Image Processing: EXAMPLE Chapter 9 Morphological Image Processing: EXAMPLE Gaps exist in the output; Better results with a smaller SE

Gianni Ramponi University of Trieste Images © 2002 Gonzalez & Woods Digital Image Processing Chapter 9 Morphological Image Processing Chapter 9 Morphological Image Processing

Gianni Ramponi University of Trieste Images © 2002 Gonzalez & Woods Digital Image Processing Chapter 9 Morphological Image Processing Chapter 9 Morphological Image Processing Boundary extraction: example

Gianni Ramponi University of Trieste Images © 2002 Gonzalez & Woods Digital Image Processing Chapter 9 Morphological Image Processing Chapter 9 Morphological Image Processing Region filling: The dilation would fill the whole area were it not for the intersection with A C  Conditional dilation

Gianni Ramponi University of Trieste Images © 2002 Gonzalez & Woods Digital Image Processing Chapter 9 Morphological Image Processing: SKELETONS Chapter 9 Morphological Image Processing: SKELETONS Maximum disk: largest disk included in A, touching the boundary of A at two or more different places

Gianni Ramponi University of Trieste Images © 2002 Gonzalez & Woods Digital Image Processing Chapter 9 Morphological Image Processing: SKELETONS Chapter 9 Morphological Image Processing: SKELETONS K

Gianni Ramponi University of Trieste Images © 2002 Gonzalez & Woods Digital Image Processing Chapter 9 Morphology: Example of skeleton Chapter 9 Morphology: Example of skeleton It is not granted that the resulting skeleton is maximally thin, connected, minimally eroded. Other techniques exist; e.g., the Medial Axis Transform, or conditional thinning algorithms.

Gianni Ramponi University of Trieste Images © 2002 Gonzalez & Woods Digital Image Processing Bwmorph Matlab command: options Chapter 9 Morphological Image Processing Chapter 9 Morphological Image Processing

Gianni Ramponi University of Trieste Images © 2002 Gonzalez & Woods Digital Image Processing Chapter 9 Morphology: gray-level images Chapter 9 Morphology: gray-level images Dilation and erosion of an image f(x,y) by a structuring element b(x,y). NOTE: b and f are no longer sets, but functions of the coordinates x,y. In a simple 1-D case: Like in convolution, we can rather have b(x) slide over f(x):

Gianni Ramponi University of Trieste Images © 2002 Gonzalez & Woods Digital Image Processing Chapter 9 Morphology: gray-level images Chapter 9 Morphology: gray-level images

Gianni Ramponi University of Trieste Images © 2002 Gonzalez & Woods Digital Image Processing Chapter 9 Morphology: gray-level images Chapter 9 Morphology: gray-level images Similarly for erosion: Note: s-x has become s+x in order to define a duality between dilation and erosion:

Gianni Ramponi University of Trieste Images © 2002 Gonzalez & Woods Digital Image Processing Chapter 9 Morphology: gray-level images Chapter 9 Morphology: gray-level images In two dimensions: Effects of erosion (when the structuring element has all positive entries): The output image tends to be darker than the input one Bright details in the input image having area smaller than the s.e. are lessened The opposite for dilation.

Gianni Ramponi University of Trieste Images © 2002 Gonzalez & Woods Digital Image Processing Chapter 9 Morphology: gray-level images Chapter 9 Morphology: gray-level images Structuring element: “flat- top”, a parallelepiped with unit height and size 5x5 pixels

Gianni Ramponi University of Trieste Images © 2002 Gonzalez & Woods Digital Image Processing Chapter 9 Morphology: gray-level images Chapter 9 Morphology: gray-level images Opening and closing of an image f(x,y) by a structuring element b(x,y) have the same form as their binary counterpart: Geometric interpretation: View the image as a 3-D surface map, and suppose we have a spherical s.e. Opening: roll the sphere against the underside of the surface, and take the highest points reached by any part of the sphere Closing: roll the sphere on top of the surface, and take the lowest points reached by any part of the sphere

Gianni Ramponi University of Trieste Images © 2002 Gonzalez & Woods Digital Image Processing Chapter 9 Morphology: gray-level images Chapter 9 Morphology: gray-level images

Gianni Ramponi University of Trieste Images © 2002 Gonzalez & Woods Digital Image Processing Chapter 9 Morphology: gray-level images Chapter 9 Morphology: gray-level images Same s.e. as in Fig Note the decreased size of the small bright (opening) or dark (closing) details; with no appreciable effect on the darker (opening) or brighter (closing) details

Gianni Ramponi University of Trieste Images © 2002 Gonzalez & Woods Digital Image Processing Chapter 9 Morphology: gray-level images Chapter 9 Morphology: gray-level images Morphological smoothing: opening followed by closing (what about doing viceversa?) (Same s.e. as in Fig.9.29)

Gianni Ramponi University of Trieste Images © 2002 Gonzalez & Woods Digital Image Processing Chapter 9 Morphology: gray-level images Chapter 9 Morphology: gray-level images Morphological gradient: difference between dilation and erosion (Same s.e. as in Fig.9.29)

Gianni Ramponi University of Trieste Images © 2002 Gonzalez & Woods Digital Image Processing Chapter 9 Morphology: gray-level images Chapter 9 Morphology: gray-level images Top-hat transformation: difference between original and opening (what about original and closing?) (Same s.e. as in Fig.9.29)

Gianni Ramponi University of Trieste Images © 2002 Gonzalez & Woods Digital Image Processing Chapter 9 Morphology: gray-level images Chapter 9 Morphology: gray-level images Texture segmentation: (for this specific problem) 1.Closing with a larger and larger s.e. until the small particles disappear 2.Opening with a s.e. larger than the gaps between large particles 3.Gradient  separation contour

Gianni Ramponi University of Trieste Images © 2002 Gonzalez & Woods Digital Image Processing Chapter 9 Morphology: gray-level images Chapter 9 Morphology: gray-level images Granulometry: (for this specific problem) 1.Opening with a small s.e. and difference wrt original image (i.e., top- hat transform) 2.Repeat with larger and larger s.e. 3.Build histogram