Tutorial # 10 Morphological Operations 1. 2 7I8oZE.

Slides:



Advertisements
Similar presentations
5th Intensive Course on Soil Micromorphology Naples th - 14th September Image Analysis Lecture 8 Introduction to Binary Morphology.
Advertisements

In form and in feature, face and limb, I grew so like my brother
CDS 301 Fall, 2009 Image Visualization Chap. 9 November 5, 2009 Jie Zhang Copyright ©
Chapter 9: Morphological Image Processing
Morphology – Chapter 10. Binary image processing Often it is advantageous to reduce an image from gray level (multiple bits/pixel) to binary (1 bit/pixel)
Binary Morphology A method for … –Dilation –Erosion –Opening –Closing -750-
Introduction to Morphological Operators
Table of Contents Preview 9.1 Preliminaries 9.2 Erosion and Dilation
Morphological Image Processing Md. Rokanujjaman Assistant Professor Dept of Computer Science and Engineering Rajshahi University.
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.
Introduction to Computer Vision
Morphological Image Processing Spring 2006, Jen-Chang Liu.
Course Website: Digital Image Processing Morphological Image Processing.
Computer Vision Basics Image Terminology Binary Operations Filtering Edge Operators.
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
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)
E.G.M. PetrakisBinary Image Processing1 Binary Image Analysis Segmentation produces homogenous regions –each region has uniform gray-level –each region.
GUIDED BY: C.VENKATESH PRESENTED BY: S.FAHIMUDDIN C.VAMSI KRISHNA ASST.PROFESSOR M.V.KRISHNA REDDY (DEPT.ECE)
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,
September 23, 2014Computer Vision Lecture 5: Binary Image Processing 1 Binary Images Binary images are grayscale images with only two possible levels of.
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.
Image Segmentation and Morphological Processing Digital Image Processing in Life- Science Aviad Baram
1 Regions and Binary Images Hao Jiang Computer Science Department Sept. 25, 2014.
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.
Binary Morphology A method for … –Dilation –Erosion –Opening –Closing -750-
Digital Image Processing CSC331 Morphological image processing 1.
Morphological Image Processing การทำงานกับรูปภาพด้วยวิธีมอร์โฟโลจิคัล
Erosion: Erosion is used for shrinking of element A by using element B
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.
Morphological Filtering
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.
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.
Morphological Image Processing (Chapter 9) CSC 446 Lecturer: Nada ALZaben.
Morphological Image Processing
Morphology Image Processing‏ Lab 6. Dilationgrow image regions Erosionshrink image regions Openingremoval of image region Closingfilling in image region.
Digital Image Processing CP-7008 Lecture # 09 Morphological Image Processing Fall 2011.
Introduction to Morphological Operators
Lecture 8 Introduction to Binary Morphology
Binary Image Analysis used in a variety of applications:
CS Digital Image Processing Lecture 5
EEEB0765 Digital Signal Processing for Embedded Systems 8 Video and Image Processing in Embedded Systems (I) Assoc. Prof. Dr. Peerapol Yuvapoositanon.
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
Digital Image Processing Lecture 14: Morphology
CS654: Digital Image Analysis
Morphological Operators
Binary Image Analysis used in a variety of applications:
Morphological Filters Applications and Extension Morphological Filters
Presentation transcript:

Tutorial # 10 Morphological Operations 1

2 7I8oZE

Mathematical morphology Based on set theory ▫In the context of image processing  The objects/regions in an image are the sets For binary images ▫Black region is one set ▫White region is one set 3 rsect_B.svg

Morphological operations Local pixel transformations for transforming images based on region shapes and patterns Use logical operations Often used on binary images Examples: ▫Erosion ▫Dilation ▫Opening ▫Closing 4

Structuring element A simple, pre-defined shape Used to apply the morphological operations Compares the shape with the neighbourhood of each pixel Examples: 5 Origin

To use in MATLAB Need to specify structuring element – strel() 6 diamonddisk

7 X Set B (structuring element) Set A For display purposes, the white background is equivalent to the black of a binary image while the purple region is a white region. Example from Gonzalez et al. 2008

8 X Run B along A so that the origin of B touches each element of A. At each location, does B completely overlap with B?

9 No there is not complete overlap. This pixel in A will not be included in our final solution. Let’s move on to its neighbouring pixel.

10 What happens if B overlaps the entire neighbouring region of a pixel in A? X This pixel becomes part of the new solution.

11 We can continue like this for every single pixel.

12 The resulting solution gives us something like this. It’s a smaller version of the original set A. This is referred to as erosion.

13 DiaIYQ

Erosion 14 Morphological operation that erodes or shrinks the boundaries of regions of some foreground pixels (ie: white pixels) This equation basically states: The erosion of A by B are the points z such that the translation of B by z is contained in A (Gonzalez et al. 2008)

Erosion Example 15 Original image Binary image content/uploads/2012/01/microchip.jpg

Erosion Example 16 Original binary image Eroded image with structuring element (square 3x3)

Erosion Example 17 Original binary image Eroded image with structuring element (square 5x5)

Uses Can be used to filter out image details smaller than the structuring element (as seen in previous example Reduce thickness of objects 18

Dilation Opposite of erosion Causes expansion of foreground boundaries This time, the structuring element B is reflected about its origin and is shifted by z The dilation is then all the elements of A which overlap with by at least one element. Since B is often symmetrical, and B are equal. 19

20 X Using the same example as before, let’s see what happens when B is moved along A. If any part of B is touching A, that pixel is added to the final solution. In this case, the pixel is not added, since there is no overlap with A.

21 On this second pixel, there is overlap with one pixel. Then we add the pixel in A at the origin. X

22 The dilation of A by B is now

23 D27rMHs

Dilation Example 24 Original binary image Eroded image with structuring element (square 3x3)

What if we used a different structuring element? 25 Original binary image Eroded image with which structuring element?

What if we used a different structuring element? 26 Original binary image Eroded image with structuring element (disk, r =10) Note the rounded edges because a disk was used.

Uses Can be used to bridge gaps between objects Instead of blurring an image using a lowpass filter, dilation results in a binary image 27 Image with weak or broken edgesDilation connects the gaps

Zoomed in 28 Image with weak or broken edges Dilation connects the gaps (would require a large structuring element for complete connection)

How can I use this in MATLAB? Erosion – imerode() Dilation – imdilate() General (includes many of the different morphological operations) – bwmorph() Structuring element – strel() 29

Combinations Erosion and dilation can then be combined to create two other morphological operations: ▫Opening ▫Closing 30

Opening Smoothes object contours Removes thin protrusions Erosion followed by dilation Opening can be thought of as the structuring element B, as a “rolling ball” The new boundary is found when B is “rolled” inside the boundary (Dark blue is the original, Red circles are the structuring elements and light blue is the resulting opening of A by B 31 le:Opening.png

Advantages over erosion 32 Original noisy imageEroded image (disk, r = 1) Opening of image (disk, r = 1) Erosion can remove the undesired noise however also affects all of the desired foreground pixels. Opening retains the foreground pixels which the structuring element can roll around in. Image courtesy of MATLAB

Closing Smoothes object contour Fuses narrow breaks Eliminates small holes Fills gaps in the contour Dilation followed by erosion Closing can be thought of as rolling B on the outside of A The new boundary is found when B is “rolled” outside the boundary (Dark blue is the original, Red circles are the structuring elements and all blue regions are the resulting closing of A by B 33 le:Closing.png

Closing vs Dilation 34 Original image (want to remove small holes) Dilated image (disk, r = 10) Closing of image (disk, r = 10)

Example: Segmentation 35

Example 36 BinaryOpenedDilated

Example: Segmentation 37 Original imageClosing the thresholded image /close.htm

Example: Border Irregularity Idea: Capture “spiky” border irregularity 36