Introduction to Morphological Operators

Slides:



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

Computational Biology, Part 23 Biological Imaging II Robert F. Murphy Copyright  1996, 1999, All rights reserved.
Table of Contents 9.5 Some Basic Morphological Algorithm
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.
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.
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-
Each pixel is 0 or 1, background or foreground Image processing to
图像处理技术讲座( 7 ) Digital Image Processing (7) 二值形态学 Binary morphology 顾 力栩 上海交通大学 计算机系
Morphological image processing – Part II
Morphology.
Computer Graphics & Image Processing Chapter # 9
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.
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.
Morphology Structural processing of images Image Processing and Computer Vision: 33 Morphological Transformations Set theoretic methods of extracting.
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)
Morphological Image Processing The field of mathematical morphology contributes a wide range of operators to image processing, all based around a few simple.
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.
Image Processing1 Morphological and Other Area Operations Introduction –Morphology is the science of form and structure –It is about regions or.
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.
: Chapter 6: Morphological Image Processing 1 Montri Karnjanadecha ac.th/~montri Image Processing.
Digital Image Processing Chapter 9: Morphological Image Processing 5 September 2007 Digital Image Processing Chapter 9: Morphological Image Processing.
Morphological Processing
Morphological Image Processing
Gianni Ramponi University of Trieste Images © 2002 Gonzalez & Woods Digital Image Processing Chapter 9 Morphological Image.
Digital Image Processing CSC331 Morphological image processing 1.
Lecture Two for teens.
1 Regions and Binary Images Hao Jiang Computer Science Department Sept. 25, 2014.
Binary Morphology A method for … –Dilation –Erosion –Opening –Closing -750-
Digital Image Processing CSC331 Morphological image processing 1.
Erosion: Erosion is used for shrinking of element A by using element B
CS654: Digital Image Analysis
References Books: Chapter 11, Image Processing, Analysis, and Machine Vision, Sonka et al Chapter 9, Digital Image Processing, Gonzalez & Woods.
CS654: Digital Image Analysis
CS 376b Introduction to Computer Vision 02 / 15 / 2008 Instructor: Michael Eckmann.
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.
Machine Vision ENT 273 Hema C.R. Binary Image Processing Lecture 3.
Image Visualization. Outline 9.1. Image Data Representation 9.2. Image Processing and Visualization 9.3. Basic Imaging Algorithms Contrast Enhancement.
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
Gray-level images.
Digital Image Processing CP-7008 Lecture # 09 Morphological Image Processing Fall 2011.
CSE 554 Lecture 1: Binary Pictures
HIT and MISS.
Introduction to Morphological Operators
Lecture 8 Introduction to Binary Morphology
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
Morphological Image Processing
Morphological and Other Area Operations
Morphological Operators
Digital Image Processing Lecture 14: Morphology
DIGITAL IMAGE PROCESSING Elective 3 (5th Sem.)
Presentation transcript:

Introduction to Morphological Operators 15-Apr-17

About this lecture In this lecture we introduce INFORMALLY the most important operations based on morphology, just to give you the intuitive feeling. In next lectures we will introduce more formalism and more examples. 4/15/2017

EROSION 4/15/2017

What We Do Today. 2nd Part Introduction to Morphological Operators Used generally on binary images, e.g., background subtraction results! Used on gray value images, if viewed as a stack to binary images. Good for, e.g., Noise removal in background Removal of holes in foreground / background Check: www.cee.hw.ac.uk/hipr

A first Example: Erosion Erosion is an important morphological operation Applied Structuring Element: 15-Apr-17

Example for Erosion 1 1 Input image Structuring Element Output Image 1 Structuring Element Output Image 15-Apr-17

Example for Erosion 1 1 Input image Structuring Element Output Image 1 Structuring Element Output Image 15-Apr-17

Example for Erosion 1 1 Input image Structuring Element Output Image 1 Structuring Element Output Image 15-Apr-17

Example for Erosion 1 1 Input image Structuring Element Output Image 1 Structuring Element Output Image 15-Apr-17

Example for Erosion 1 1 1 Input image Structuring Element Output Image 1 Structuring Element Output Image 1 15-Apr-17

Example for Erosion 1 1 1 Input image Structuring Element Output Image 1 Structuring Element Output Image 1 15-Apr-17

Example for Erosion 1 1 1 Input image Structuring Element Output Image 1 Structuring Element Output Image 1 15-Apr-17

Example for Erosion 1 1 1 Input image Structuring Element Output Image 1 Structuring Element Output Image 1 15-Apr-17

Introduction Structuring Element Erosion Dilation Opening Closing Outlook: Hit-and-miss Operation, Thinning, Thickening 15-Apr-17

Structuring Element (Kernel) Structuring Elements can have varying sizes Usually, element values are 0,1 and none(!) Structural Elements have an origin For thinning, other values are possible Empty spots in the Structuring Elements are don’t care’s! Box Disc Examples of stucturing elements 15-Apr-17

Dilation & Erosion Basic operations Are dual to each other: Erosion shrinks foreground, enlarges Background Dilation enlarges foreground, shrinks background 15-Apr-17

Erosion Erosion is the set of all points in the image, where the structuring element “fits into”. Consider each foreground pixel in the input image If the structuring element fits in, write a “1” at the origin of the structuring element! Simple application of pattern matching Input: Binary Image (Gray value) Structuring Element, containing only 1s! 15-Apr-17

Another example of erosion White = 0, black = 1, dual property, image as a result of erosion gets darker 15-Apr-17

Erosion on Gray Value Images View gray value images as a stack of binary images! 15-Apr-17

Erosion on Gray Value Images Images get darker! 15-Apr-17

Counting Coins Counting coins is difficult because they touch each other! Solution: Binarization and Erosion separates them! 15-Apr-17

DILATION 4/15/2017

Example: Dilation Dilation is an important morphological operation Applied Structuring Element: 15-Apr-17

Dilation Dilation is the set of all points in the image, where the structuring element “touches” the foreground. Consider each pixel in the input image If the structuring element touches the foreground image, write a “1” at the origin of the structuring element! Input: Binary Image Structuring Element, containing only 1s!! 15-Apr-17

Example for Dilation 1 1 1 Input image Structuring Element 1 Structuring Element Output Image 1 15-Apr-17

Example for Dilation 1 1 1 Input image Structuring Element 1 Structuring Element Output Image 1 15-Apr-17

Example for Dilation 1 1 1 Input image Structuring Element 1 Structuring Element Output Image 1 15-Apr-17

Example for Dilation 1 1 1 Input image Structuring Element 1 Structuring Element Output Image 1 15-Apr-17

Example for Dilation 1 1 1 Input image Structuring Element 1 Structuring Element Output Image 1 15-Apr-17

Example for Dilation 1 1 1 Input image Structuring Element 1 Structuring Element Output Image 1 15-Apr-17

Example for Dilation 1 1 1 Input image Structuring Element 1 Structuring Element Output Image 1 15-Apr-17

Example for Dilation 1 1 1 Input image Structuring Element 1 Structuring Element Output Image 1 15-Apr-17

Another Dilation Example Image get lighter, more uniform intensity 15-Apr-17

Dilation on Gray Value Images View gray value images as a stack of binary images! 15-Apr-17

Dilation on Gray Value Images More uniform intensity 15-Apr-17

Edge Detection Edge Detection Dilate input image Subtract input image from dilated image Edges remain! 15-Apr-17

Opening & Closing Important operations Derived from the fundamental operations Dilatation Erosion Usually applied to binary images, but gray value images are also possible Opening and closing are dual operations 15-Apr-17

OPENING 4/15/2017

Opening Similar to Erosion Erosion next dilation Spot and noise removal Less destructive Erosion next dilation the same structuring element for both operations. Input: Binary Image Structuring Element, containing only 1s! 15-Apr-17

Opening Take the structuring element (SE) and slide it around inside each foreground region. All pixels which can be covered by the SE with the SE being entirely within the foreground region will be preserved. All foreground pixels which can not be reached by the structuring element without lapping over the edge of the foreground object will be eroded away! Opening is idempotent: Repeated application has no further effects! 15-Apr-17

Opening Structuring element: 3x3 square 15-Apr-17

Opening Example Opening with a 11 pixel diameter disc 15-Apr-17

Opening Example 3x9 and 9x3 Structuring Element 3*9 9*3 15-Apr-17

Opening on Gray Value Images 5x5 square structuring element 15-Apr-17

Use Opening for Separating Blobs Use large structuring element that fits into the big blobs Structuring Element: 11 pixel disc 15-Apr-17

CLOSING 4/15/2017

Closing Similar to Dilation Removal of holes Tends to enlarge regions, shrink background Closing is defined as a Dilatation, followed by an Erosion using the same structuring element for both operations. Dilation next erosion! Input: Binary Image Structuring Element, containing only 1s! 15-Apr-17

Closing Take the structuring element (SE) and slide it around outside each foreground region. All background pixels which can be covered by the SE with the SE being entirely within the background region will be preserved. All background pixels which can not be reached by the structuring element without lapping over the edge of the foreground object will be turned into a foreground. Opening is idempotent: Repeated application has no further effects! 15-Apr-17

Closing Structuring element: 3x3 square 15-Apr-17

Closing Example Closing operation with a 22 pixel disc Closes small holes in the foreground 15-Apr-17

Closing Example 1 Thresholded closed Threshold Closing with disc of size 20 Thresholded closed 15-Apr-17

skeleton of Thresholded Closing Example 2 Good for further processing: E.g. Skeleton operation looks better for closed image! skeleton of Thresholded skeleton of Thresholded and next closed

Closing Gray Value Images 5x5 square structuring element 15-Apr-17

Opening & Closing Opening is the dual of closing i.e. opening the foreground pixels with a particular structuring element is equivalent to closing the background pixels with the same element. 15-Apr-17

HIT and MISS 4/15/2017

Hit-and-miss Transform Used to look for particular patterns of foreground and background pixels Very simple object recognition All other morphological operations can be derived from it!! Input: Binary Image Structuring Element, containing 0s and 1s!! 15-Apr-17

Hit-and-miss Transform Example for a Hit-and-miss Structuring Element Contains 0s, 1s and don’t care’s. Usually a “1” at the origin! 15-Apr-17

Hit-and-miss Transform Similar to Pattern Matching: If foreground and background pixels in the structuring element exactly match foreground and background pixels in the image, then the pixel underneath the origin of the structuring element is set to the foreground color. 15-Apr-17

Corner Detection with Hit-and-miss Transform Structuring Elements representing four corners 15-Apr-17

Corner Detection with Hit-and-miss Transform Apply each Structuring Element Use OR operation to combine the four results 15-Apr-17

Basic THINNING 4/15/2017

Thinning Used to remove selected foreground pixels from binary images After edge detection, lines are often thicker than one pixel. Thinning can be used to thin those line to one pixel width. 15-Apr-17

Definition of Thinning Let K be a kernel and I be an image with 0-1=0!! If foreground and background fit the structuring element exactly, then the pixel at the origin of the SE is set to 0 Note that the value of the SE at the origin is 1 or don’t care! 15-Apr-17

Example Thinning We use two Hit-and-miss Transforms 15-Apr-17

Basic THICKENING 4/15/2017

Thickening Used to grow selected regions of foreground pixels E.g. applications like approximation of convex hull 15-Apr-17

Definition Thickening Let K be a kernel and I be an image with 1+1=1 If foreground and background match exactly the SE, then set the pixel at its origin to 1! Note that the value of the SE at the origin is 0 or don’t care! 15-Apr-17

Example Thickening 15-Apr-17

PROBLEMS 4/15/2017

Problems Consider the images on slide 17! Why are the images getting darker under erosion? Explain! Consider the images on slide 31! Why are the intensities becoming more uniform? Explain! Compare Dilatation and Erosion! How are they related? Verify your answers with Matlab! Apply Erosion and Dilatation for noise removal! Consider slide 38: Remove the artefacts remaining with the horizontal lines. 15-Apr-17

Problems Derive dilatation and erosion from the Hit-and-miss transformation 15-Apr-17

Volker Krüger & Rune Andersen University of Aalborg, Esbjerg Sources Used Volker Krüger & Rune Andersen University of Aalborg, Esbjerg 15-Apr-17