EECS490: Digital Image Processing. Lecture #17

Similar documents
Morphological Image Processing

Morphological Image Processing

Mathematical Morphology and Distance Transforms. Robin Strand

Introduction. Computer Vision & Digital Image Processing. Preview. Basic Concepts from Set Theory

Biomedical Image Analysis. Mathematical Morphology

morphology on binary images

Morphological Image Processing

09/11/2017. Morphological image processing. Morphological image processing. Morphological image processing. Morphological image processing (binary)

International Journal of Advance Engineering and Research Development. Applications of Set Theory in Digital Image Processing

Morphological Image Processing

Morphological Image Processing

Image Analysis. Morphological Image Analysis

Morphological Image Processing

Digital Image Processing Fundamentals

11. Gray-Scale Morphology. Computer Engineering, i Sejong University. Dongil Han

EE 584 MACHINE VISION

Topic 6 Representation and Description

11/10/2011 small set, B, to probe the image under study for each SE, define origo & pixels in SE

EE795: Computer Vision and Intelligent Systems

Lecture 7: Morphological Image Processing

Morphological Compound Operations-Opening and CLosing

Morphological Image Processing

CS443: Digital Imaging and Multimedia Binary Image Analysis. Spring 2008 Ahmed Elgammal Dept. of Computer Science Rutgers University

CS534 Introduction to Computer Vision Binary Image Analysis. Ahmed Elgammal Dept. of Computer Science Rutgers University

What will we learn? What is mathematical morphology? What is mathematical morphology? Fundamental concepts and operations

Morphology-form and structure. Who am I? structuring element (SE) Today s lecture. Morphological Transformation. Mathematical Morphology

Digital Image Processing

Lecture 3: Basic Morphological Image Processing

Filters. Advanced and Special Topics: Filters. Filters

Machine vision. Summary # 5: Morphological operations

Detection of Edges Using Mathematical Morphological Operators

Digital Image Processing Lecture 7. Segmentation and labeling of objects. Methods for segmentation. Labeling, 2 different algorithms

Chapter 3. Image Processing Methods. (c) 2008 Prof. Dr. Michael M. Richter, Universität Kaiserslautern

ECEN 447 Digital Image Processing

CITS 4402 Computer Vision

EECS490: Digital Image Processing. Lecture #23

C E N T E R A T H O U S T O N S C H O O L of H E A L T H I N F O R M A T I O N S C I E N C E S. Image Operations II

Lecture 10: Image Descriptors and Representation

Chapter 9 Morphological Image Processing

Babu Madhav Institute of Information Technology Years Integrated M.Sc.(IT)(Semester - 7)

Finger Print Analysis and Matching Daniel Novák

Mathematical morphology (1)

How to create shapes. Drawing basic shapes. Adobe Photoshop Elements 8 guide

Binary Image Processing. Introduction to Computer Vision CSE 152 Lecture 5

Digital image processing

Processing of binary images

ECG782: Multidimensional Digital Signal Processing

Creating a 2D Geometry Model

A Case Study on Mathematical Morphology Segmentation for MRI Brain Image

Lab 2. Hanz Cuevas Velásquez, Bob Fisher Advanced Vision School of Informatics, University of Edinburgh Week 3, 2018

ECG782: Multidimensional Digital Signal Processing

Image Processing. Bilkent University. CS554 Computer Vision Pinar Duygulu

Morphological Image Algorithms

[ ] Review. Edges and Binary Images. Edge detection. Derivative of Gaussian filter. Image gradient. Tuesday, Sept 16

Albert M. Vossepoel. Center for Image Processing

Mathematical morphology for grey-scale and hyperspectral images

Digital Image Processing COSC 6380/4393

Problem definition Image acquisition Image segmentation Connected component analysis. Machine vision systems - 1

Elaborazione delle Immagini Informazione multimediale - Immagini. Raffaella Lanzarotti

Digital Image Processing Chapter 11: Image Description and Representation

Unit 10 Study Guide: Plane Figures

03 Vector Graphics. Multimedia Systems. 2D and 3D Graphics, Transformations

Lecture 18 Representation and description I. 2. Boundary descriptors

Boundary descriptors. Representation REPRESENTATION & DESCRIPTION. Descriptors. Moore boundary tracking

CoE4TN4 Image Processing

Bioimage Informatics

GENERAL AUTOMATED FLAW DETECTION SCHEME FOR NDE X-RAY IMAGES

Course Number: Course Title: Geometry

Colorado School of Mines. Computer Vision. Professor William Hoff Dept of Electrical Engineering &Computer Science.

1 Background and Introduction 2. 2 Assessment 2

Colorado School of Mines. Computer Vision. Professor William Hoff Dept of Electrical Engineering &Computer Science.

Image Processing: Final Exam November 10, :30 10:30

Hierarchical Representation of 2-D Shapes using Convex Polygons: a Contour-Based Approach

Chapter 11 Representation & Description

Anno accademico 2006/2007. Davide Migliore

Image Segmentation. Ross Whitaker SCI Institute, School of Computing University of Utah

CHAPTER 6 DETECTION OF MASS USING NOVEL SEGMENTATION, GLCM AND NEURAL NETWORKS

COMPUTER AND ROBOT VISION

Two Image-Template Operations for Binary Image Processing. Hongchi Shi. Department of Computer Engineering and Computer Science

4-Border and 4-Boundary

Connectivity Preserving Digitization of Blurred Binary Images in 2D and 3D

Paint/Draw Tools. Foreground color. Free-form select. Select. Eraser/Color Eraser. Fill Color. Color Picker. Magnify. Pencil. Brush.

Examination in Image Processing

Geometry Vocabulary. acute angle-an angle measuring less than 90 degrees

Prime Time (Factors and Multiples)

Table 1. Different types of Defects on Tiles

Image segmentation. Stefano Ferrari. Università degli Studi di Milano Methods for Image Processing. academic year

Advanced geometry tools for CEM

SHAPE AND STRUCTURE. Shape and Structure. An explanation of Mathematical terminology

Disease Prediction of Paddy Crops Using Data Mining and Image Processing Techniques

Binary Image Analysis. Binary Image Analysis. What kinds of operations? Results of analysis. Useful Operations. Example: red blood cell image

SECTION 5 IMAGE PROCESSING 2

Other Voronoi/Delaunay Structures

The radius for a regular polygon is the same as the radius of the circumscribed circle.

Interactive Math Glossary Terms and Definitions

Glossary Common Core Curriculum Maps Math/Grade 6 Grade 8

EECS490: Digital Image Processing. Lecture #19

A Graphical Processing Unit Based on Real Time System. Khaled M. Alqahtani

Mathematical morphology... M.1 Introduction... M.1 Dilation... M.3 Erosion... M.3 Closing... M.4 Opening... M.5 Summary... M.6

Image Processing Fundamentals. Nicolas Vazquez Principal Software Engineer National Instruments

Transcription:

Lecture #17 Morphology & set operations on images Structuring elements Erosion and dilation Opening and closing Morphological image processing, boundary extraction, region filling Connectivity: convex hull, thinning

What is Mathematical Morphology? It is: nonlinear, built on Minkowski set theory, part of the theory of finite lattices, for image analysis based on shape, extremely useful, yet not often used. 1999-2007 by Richard Alan Peters II

Basic Set Operations A C = { A} A B = { A, B}= A B C

A Binary Image The foreground of binary image I is the set of locations, p, where I(p) = v fg. FG { I}= p), p = ( r,c) S P I(p) = v fg { } background I(p) = The background of binary image I is the set of locations, p, where I(p) = v bg. BG { I}= { I( p), p = ( r,c) S P I(p) = v bg }. foreground: I( p) = c where c R This represents a digital image. Each square is one pixel. 1999-2007 by Richard Alan Peters II

Structuring Elements A structuring element is a small image used as a moving window whose support* delineates pixel neighborhoods in the image plane. Example SEs FG is gray ; BG is white It can be of any shape, size, or connectivity (more than 1 piece, have holes). In the above figure the circles mark the location of the structuring element s origin which can be placed anywhere relative to its support. *the support of a binary image is the set of foreground pixel locations within the image plane 1999-2007 by Richard Alan Peters II

Structuring Elements Let I be an image and Z a SE. Z+p means that Z is moved so that its origin coincides with location p in S P. Z+p is the translate of Z to location p in S P. The set of locations in the image delineated by Z+p is called the Z-neighborhood of p in I denoted N{I,Z}(p). 1999-2007 by Richard Alan Peters II

Basic Set Operations Reflection of B about the origin ˆB = { = b, for b B} Original set B Translation of B by z=(z 1,z 2 ) ( B) Z = { c c = b + z, for b B} Image morphology includes two operations (reflection and translation) not normally used in set theory.

Structuring Elements Let Z be a SE and let S be the square of pixel locations that contains the set {(r,c), ( r, c) (r,c) support(z)}. Then Ẑ (, )= Z (, ) for all (, ) S. is the reflected structuring element. Ẑ is Z rotated by 180º around its origin. *the support of a binary image is the set of foreground pixel locations within the image plane 1999-2007 by Richard Alan Peters II

Structuring Elements Structuring Elements Structuring Elements for images need to be rectangular arrays Expanded with appropriate number of background elements to form a rectangle Origins of structuring elements shown as black dots

Erosion Set A and structuring element B 1. Make structuring element rectangular 2. Pad set A with background elements such that the entire structuring element is in the image when its origin is on the border of the original set 3. Output set C is foreground only when the foreground of B is entirely contained in the foreground of A this is called erosion

Erosion A B = { z ( B) z A} The erosion of A by B is the set of all points z such that the translation of B by z is contained in A In this case the structuring element B is the same height as A so the erosion is a straight line. Structuring element is NOT drawn to scale.

Erosion Original image Erosion by 11x11 structuring element of all 1 s Erosion by 15x15 structuring element of all 1 s Erosion by 45x45 structuring element of all 1 s Erosion using a variety of square structuring elements to remove image elements

Dilation Dilation by a small square structuring element extends the set A by 1/2 the width of the structuring element Dilation by a rectangular structuring element also extends the set A by 1/2 the width of the structuring element but not uniformly in x and y AøB = z { ( ˆB ) A 0} z Dilation is the set of all translations z such that the translated reflection of B is in the foreground of A

Dilation Text with broken characters Dilation of A by B joins broken segments 4-connected structuring element B Dilation works on binary images (in this case) and the result is binary; correlation would produce gray scale images

Opening An opening is the set of all translates of B that fit inside A A B = { ( B) z ( B) z A}= ( A B)øB Opening removes sharp corners This is the geometric interpretation of opening for a round structuring element and is usually called the rolling ball

Closing An closing is the set of all such that the translate of B does not intersect A for any translate of B that contains A B = { ( B) z A 0}= ( AøB) B The geometric interpretation of closing for a round structuring element involves rolling the ball on the outside of the set A to define the boundary of A B

Opening, Closing and Topology The structuring element is a small circle Erosion by this structuring element removes the narrow bridge joining the fingers (B must fit inside A to preserve topology) A subsequent dilation (forming a closing) cannot restore the bridge so a closing can remove small features. Dilation of the original image removes the notch between the left fingers. A subsequent erosion (forming an opening) cannot restore the fingers so an opening can remove small indentations.

Morphological Image Processing Remove noise in fingerprints: 1. Erode A by B to eliminate white on black noise 2. Dilate by B (completing a closing) to restore the size of the ridges 3. Dilate by B to eliminate gaps (black on white noise) in the ridges 4. Erode by B (completing an opening) to restore the size of the thickened ridges There is some remaining noise because the process (closing followed by an opening) does not maintain connectivity.

Hit or Miss Algorithm a) We want to find the location of D b) Let D be enclosed by a small background W. Define the local background W-D as shown c) Consider the complement A C of the set of all shapes, i.e., A=CUDUE d) Erode A by D. Since E is smaller than D it disappears. D eroded by D is a single point and C eroded by D is a rectangular region of all locations of D inside C. e) Now erode of A C by W-D to give the set of all translates of W-D such that the center of W-D is in A C. Note that W-D fits around D giving a single point. Since E is smaller than D there is also a set of points inside E corresponding to the translates pf W-D containing E. f) The intersection of A and A C W-D) is the location of D. This can be written as: A«B = ( A D) A C W D ( )

Morphological Image Processing Boundary extraction: 1. Erode I by an appropriate structuring element B 2. Subtract this from A to get the boundary (A) NOTE: A 3x3 structuring element will give 1-pixel boundaries; a 5x5 will give two pixel boundaries A B gives the interior of A (A)=A-(A B) gives the boundary of A

Morphological Image Processing Erode the image using a 3x3 uniform structuring element and subtract from the original to get the boundary image on the left.

Region Filling Original image A, its complement A C, and structuring element B 1. Let X o =P, an initial point inside the object 2. X 1 =(P B) A C, a dilation which stops at all pixels in the boundary this is called a conditional dilation 3. Repeat X k =(X k-1 B) A c until X k =X k-1

Region Filling White dot An application of region filling to thresholded images of ball bearings: start with white dot in indicated bearing image and use repeated conditional dilations. Filling all bearing images would require an algorithm such as morphological reconstruction to identify starting points.

Connectivity Structuring element assumes 8-connectivity Initial starting point P 1. Dilate P to give all adjacent connected points, i.e., X o =P B 2. Then X 1 =X o A gives all the 1 s in A connected to P, i.e., the elements of the object. This is a conditional dilation. 3. Repeat X k =(X k-1 B ) A until X k =X k-1. This gives all the 8- connected elements of the object in A.

Connectivity X-ray image of bones in chicken fillet Connected components found by repeated dilation and intersection with thresholded binary image Final image eroded by 5x5 structuring element of 1 s

Connectivity Structuring elements. X s indicate don t cares. Use a repetitive hit or miss algorithm to construct a convex hull by computing X 0 1 B 1 which finds the locations of B 1 and then adds them to A, i.e., X 1 1 =(X 0 1 B 1 ). Continue this process until nothing changes. Repeat for each B i. 1. X k i =(X k-1 i B i ) for i=1,2,3,, k=1,2,3,4, 2. The convex hull is then C(A)=D 1 D 2 D 3 D 4 where D i =X i converged x x x x x In this case the structuring element finds all locations with three 1 s on the left and any 1 s to the right adding an object pixel to connect to the object. This makes objects bigger. Note that the original object has grown considerably

Connectivity Original boundaries Original boundaries Bounding prevents growth of the convex hull by B 2 beyond the original dimensions of the object

Connectivity Structuring elements. X s indicate don t cares. The convex hull built objects up. We use a thinning operator based upon 8-connectivity to reduce objects to their basic structure. A B=A-(A B) =A (A B) C 1 1 1 1 1 1 Basically, if the structuring element matches we remove that pixel. In this case of 6 1 s B 1 matches so we remove the center pixel. Converted to m-connectivity