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)

Slides:



Advertisements
Similar presentations
Gray-Scale Morphological Filtering
Advertisements

In form and in feature, face and limb, I grew so like my brother
Document Image Processing
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
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.
Each pixel is 0 or 1, background or foreground Image processing to
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.
Morphology Structural processing of images Image Processing and Computer Vision: 33 Morphological Transformations Set theoretic methods of extracting.
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.
Course Website: Digital Image Processing Morphological Image Processing.
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
Morphological Image Processing
EE465: Introduction to Digital Image Processing 1 What is in Common?
E.G.M. PetrakisBinary Image Processing1 Binary Image Analysis Segmentation produces homogenous regions –each region has uniform gray-level –each region.
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,
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.
Blending recap Visible seams – edges that should not exist, should be avoided. People are fairly insensitive to uniform intensity shifts or gradual intensity.
Morphological Image Processing
Gianni Ramponi University of Trieste Images © 2002 Gonzalez & Woods Digital Image Processing Chapter 9 Morphological Image.
Digital Image Processing
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
References Books: Chapter 11, Image Processing, Analysis, and Machine Vision, Sonka et al Chapter 9, Digital Image Processing, Gonzalez & Woods.
Morphological Filtering
CS654: Digital Image Analysis
CDS 301 Fall, 2008 Image Visualization Chap. 9 November 11, 2008 Jie Zhang Copyright ©
Digital Camera and Computer Vision Laboratory Department of Computer Science and Information Engineering National Taiwan University, Taipei, Taiwan, R.O.C.
EE 4780 Morphological Image Processing. Bahadir K. Gunturk2 Example Two semiconductor wafer images are given. You are supposed to determine the defects.
Image Processing and Analysis (ImagePandA)
1 Mathematic Morphology used to extract image components that are useful in the representation and description of region shape, such as boundaries extraction.
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,
Digital Image Processing Morphological Image Processing.
BYST Morp-1 DIP - WS2002: Morphology Digital Image Processing Morphological Image Processing Bundit Thipakorn, Ph.D. Computer Engineering Department.
曾令祺 性別:男 籍貫:大陸湖北省 Facebook/ :
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.
Digital Image Processing, Spring ECES 682 Digital Image Processing Week 8 Oleh Tretiak ECE Department Drexel University.
Morphological Image Processing (Chapter 9) CSC 446 Lecturer: Nada ALZaben.
Morphological Image Processing
Lecture 11+x+1 Chapter 9 Morphological Image Processing.
Digital Image Processing CP-7008 Lecture # 09 Morphological Image Processing Fall 2011.
CSE 554 Lecture 1: Binary Pictures
Computer and Robot Vision I
Binary Image Processing
CS Digital Image Processing Lecture 5
Computer and Robot Vision I
Binary Image processing بهمن 92
Blending recap Visible seams – edges that should not exist, should be avoided. People are fairly insensitive to uniform intensity shifts or gradual intensity.
Morphological Operation
Morphological Image Processing
ECE 692 – Advanced Topics in Computer Vision
Digital Image Processing Lecture 14: Morphology
CS654: Digital Image Analysis
Morphological Filters Applications and Extension Morphological Filters
Presentation transcript:

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) describe the object pixels in a binary image, either the black or white pixels. Z 3 sets are used for describing the 3-D or time series of 2-D binary images as well as 2-D gray level images. Elementary operations on A: a subset of E n with n-tuple elements: a=(a 1,a 2,...a n ) Translation over d  E n : A d = { x  E n | x = a + d, for some a  A} Complement (negation): A c = { x  E n | x  A } Reflection (transposition): A r = { x  E n | x = -a, for some a  A} Intersection of A and B: A  B = {x  E n | x  A and x  B} Union of A and B: A  B = {x  E n | x  A or x  B} Difference between A and B: A-B = {x  E n | x  A and x  B} = A  B c

2007Theo Schouten2 Basic set operations

2007Theo Schouten3 Dilation The dilation operator on sets A and B are defined by: A  B = { c  E n | c = a + b, for some a  A, b  B } =  [b  B] A b = { x | (B r x  A )   } A is normally the image, while B is often a smaller structuring element.

2007Theo Schouten4 Example dilation Dilation with a discrete "disk", the origin being inside of it, gives an isotrope "swelling" or "expansion" of the image. Note that here the white pixels have been chosen as the object pixels. This implementation is based on the third definition of dilation. Black indicates the original pixels and white the pixels that were added in. In red are some place of the movement of B r x.

2007Theo Schouten5 another example dilation

2007Theo Schouten6 Dilation properties Dilation is communitative and associative: A  B = B  A A  (B  C) = (A  B)  C This is used in software and hardware implementations to save on operations; if B and C each have N elements then B  C can have N 2 elements. On the right you can see that a dilation using a 4 by 4 square with 16 pixels, can be done with 4 consecutive dilations each with structure elements of 2 pixels. To the left you can see that if the origin is not in B, then it is possible that A  B has no pixels in common with A. A d  B = (A  B) d and A d  B -d = A  B (hardware implementations) (A  B)  C = (A  C)  (B  C) and A  (B  C) = (A  B)  (A  C)

2007Theo Schouten7 Erosion A  B = { c  E n | (c + b)  A for every b  B } = { c  E n | B c  A } = { c  E n | for every b  B there is an a  A such that c = a-b} =  [b  B] A -b Erosion is not commutative nor is it equal to the difference of the sets. (0,0)  B  (A  B)  A thus resulting in "shrinking" of the original image

2007Theo Schouten8 Example erosion (A  B) c = A c  B r (erosion-dilation duality) (A  B) c = A c  B c (DeMorgan's law) A  (B  C) = (A  B)  C (replace erosion by 2 smaller ones) A d  B = (A  B) d A  B d = (A  B) -d A  (B  C) = (A  B)  (A  C)

2007Theo Schouten9 example erosion + dilation

2007Theo Schouten10 Opening and Closing opening: A  K = (A  K)  K closing: A  K = (A  K)  K A  B =  [ {y | B y  A ] B y or { x  A | there is a y, x  B y and B y  A} representing the union of translations of B which are contained in A A  B =  [ [ { y | B y r  A c } ] B y r ] c representing the complement of the union of all translations Duality of opening and closing: (A  K) c = A c  K r Idempotent: A  K = (A  K)  K A  K = (A  K )  K

2007Theo Schouten11 Example opening and closing Left: the open operation The structure element moves along the inside of the object and the black pixels disappear. Right: the close operation The structure element moves along the outside of the object and the white pixels are added.

2007Theo Schouten12 Another example opening with a disk structure element: breaks thin connections within an object eliminates small islands and sharp protrusions closing with a disk structure element: fills thin connections within an object eliminates small holes and fills dents in contours fills small gaps in parts of an object

2007Theo Schouten13 Real image example

2007Theo Schouten14 Hit-or-Miss transformation The goal of the "hit-miss" operation is to find pixels x, for which B 1 x is in A (“hit”) and where no pixel in B 2 x is in A (“miss”), thus B 2 x is in A c. The definition of the "hit-miss" operation is: A  B = { x  E n | B 1 x  A and B 2 x  A c } It can be shown that: A  B = ( A  B 1 )  ( A c  B 2 ) = ( A  B 1 ) - ( A  B 2r ) Original image (white pixels) B1B1 Complement B2B2 Erosion with B1 Erosion with B2 Searching for white pixels, that do not have 4-connected neighboring pixels.

2007Theo Schouten15 Boundary extraction  B (A) = A - (A  B)

2007Theo Schouten16 Other operations Other, more complicated operations: region filling, connected components, convex hull, thinning, thickening, skeletons, pruning L. Vincent (Signal Processing 22,1991,3-23) gives an efficient algorithm for the implementation of morphological operations with random structure elements, assuming a chain code encoding of the binary objects. Thinning with different structure elements

2007Theo Schouten17 Gray level images We use sets in E N. The first (N-1) coordinates form the spatial domain and the last coordinate is for the surface. For gray level images N=3, the first two coordinates of an element in a set are the (x,y) in the image and the third is the gray level. Concepts such as top or top-surface of a set and the shadow (umbra) of a surface are used in the definitions of the operations. f  k = T [ U[f]  U[k] ] thus (f  k)(x) = max { z  K, x-z  F | f(x-z) + k(z) } f  k = T [ U[f]  U[k] ] thus (f  k)(x) = min { z  K, x+z  F | f(x+z) - k(z) } The properties of gray level dilation and erosion are equivalent to those of binary operations.

2007Theo Schouten18 Example dilation, erosion

2007Theo Schouten19 Gray opening, closing

2007Theo Schouten20 Example opening and closing To the far left is the original image, in the center the opening of it with a disk with radius 3 as the structure element. All the thin white bands have disappeared, only the broad one remains. To the right the closing, all the valleys where the structure element does not fit have been filled, only the three broad black bands remain.

2007Theo Schouten21 Smoothing, gradient, top-hat Smoothing: s = (f  b)  b Top-hat: h = f-(f  b) Gradient: g = (f  b) -(f  b)