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

Similar documents
Morphological Image Processing

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

Chapter 9 Morphological Image Processing

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

morphology on binary images

Biomedical Image Analysis. Mathematical Morphology

Lecture 7: Morphological Image Processing

Machine vision. Summary # 5: Morphological operations

Mathematical Morphology and Distance Transforms. Robin Strand

Morphological Image Processing

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

Morphological Image Processing

Morphological Compound Operations-Opening and CLosing

EECS490: Digital Image Processing. Lecture #17

EE 584 MACHINE VISION

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

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

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

Image Analysis. Morphological Image Analysis

Morphological Image Processing

Morphological Image Processing

Elaborazione delle Immagini Informazione multimediale - Immagini. Raffaella Lanzarotti

Morphological Image Processing

ECEN 447 Digital Image Processing

Mathematical morphology (1)

Edges and Binary Images

INF Exercise for Thursday

Morphological Image Algorithms

Edges and Binary Image Analysis April 12 th, 2018

Image Processing Toolbox Supported Functions

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

Fig. 1. Input image. Ibw=im2bw(I, 250/255); % threshold value should be between Fig. 2. Thresholded image cercuri-stele.

Previously. Edge detection. Today. Thresholding. Gradients -> edges 2/1/2011. Edges and Binary Image Analysis

Filters. Advanced and Special Topics: Filters. Filters

Mathematical Morphology a non exhaustive overview. Adrien Bousseau

EE795: Computer Vision and Intelligent Systems

Detection of Edges Using Mathematical Morphological Operators

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

10.5 Morphological Reconstruction

Image Processing. Bilkent University. CS554 Computer Vision Pinar Duygulu

Digital Image Processing COSC 6380/4393

SPEED OPTIMIZATION OF CT-BASED MICROSTRUCTURE DETERMINATION USING MATRIX DECOMPOSITION

Image Segmentation. Figure 1: Input image. Step.2. Use Morphological Opening to Estimate the Background

Morphological Image Processing GUI using MATLAB

Finger Print Analysis and Matching Daniel Novák

Erosion, dilation and related operators

Albert M. Vossepoel. Center for Image Processing

CS 5540 Spring 2013 Assignment 3, v1.0 Due: Apr. 24th 11:59PM

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

Edges and Binary Image Analysis. Thurs Jan 26 Kristen Grauman UT Austin. Today. Edge detection and matching

SECTION 5 IMAGE PROCESSING 2

Binary Shape Characterization using Morphological Boundary Class Distribution Functions

1 Background and Introduction 2. 2 Assessment 2

Lab 11. Basic Image Processing Algorithms Fall 2017

CITS 4402 Computer Vision

Fundamentals of Digital Image Processing

Digital image processing

Topic 6 Representation and Description

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

Research Article Image Segmentation Using Gray-Scale Morphology and Marker-Controlled Watershed Transformation

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

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

DEVELOPMENT OF A MATHEMATICAL MORPHOLOGY TOOL FOR EDUCATION PURPOSE

Interpolation is a basic tool used extensively in tasks such as zooming, shrinking, rotating, and geometric corrections.

Digital Image Processing Fundamentals

Keywords: Thresholding, Morphological operations, Image filtering, Adaptive histogram equalization, Ceramic tile.

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

From Pixels to Blobs

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

CSci 4968 and 6270 Computational Vision, Fall Semester, 2011 Lectures 2&3, Image Processing. Corners, boundaries, homogeneous regions, textures?

Analysis Of Distance Measurement System Of Leading Vehicle

Digital Image Processing

Morphological Image Processing

Looming Motion Segmentation in Vehicle Tracking System using Wavelet Transforms

Table 1. Different types of Defects on Tiles

Mathematical morphology for grey-scale and hyperspectral images

EC-433 Digital Image Processing

CS 490: Computer Vision Image Segmentation: Thresholding. Fall 2015 Dr. Michael J. Reale

What s New in MATLAB & Simulink. Prashant Rao Technical Manager MathWorks India

Fuzzy Soft Mathematical Morphology

CSci 4968 and 6270 Computational Vision, Fall Semester, Lectures 2&3, Image Processing

VC 10/11 T9 Region-Based Segmentation

Gesture based PTZ camera control

Application of mathematical morphology to problems related to Image Segmentation

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

Edge detection by combination of morphological operators with different edge detection operators

CLASSIFICATION OF BOUNDARY AND REGION SHAPES USING HU-MOMENT INVARIANTS

Computer and Machine Vision

Processing of binary images

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

Fixed-point Simulink Designs for Automatic HDL Generation of Binary Dilation & Erosion

Biometrics Technology: Image Processing & Pattern Recognition (by Dr. Dickson Tong)

Extracting Layers and Recognizing Features for Automatic Map Understanding. Yao-Yi Chiang

REGION & EDGE BASED SEGMENTATION

Bioimage Informatics

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

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

COMPUTER AND ROBOT VISION

Graphing Linear Inequalities in Two Variables.

Introduction to Medical Imaging (5XSA0)

Transcription:

What will we learn? What is mathematical morphology and how is it used in image processing? Lecture Slides ME 4060 Machine Vision and Vision-based Control Chapter 13 Morphological image processing By Dr. Debao Zhou 1 What are the main morphological operations and what is the effect of applying them to binary and grayscale images? What is a structuring element and how does it impact the result of a morphological operation? What are some of the most useful morphological image processing algorithms? What is mathematical morphology? Mathematical morphology is a branch of image processing which has been successfully used to provide tools for representing, describing, and analyzing shapes in images. Initially developed by Jean Serra in the early 1980s Named after the branch of biology that deals with the form and structure of animals and plants. What is mathematical morphology? Basic principle: the extraction of geometrical and topological information from an unknown set (an image) through transformations using another, well-defined, set, known as structuring element (SE). In morphological image processing, the design of SEs, their shape and size, is crucial to the success of the morphological operations that use them. Fundamental concepts and operations Basic set operations: Complement Fundamental concepts and operations Basic set operations Difference Translation Reflection 1

Fundamental concepts and operations Logical equivalents of set theory operations Intersection ~ logical AND Fundamental concepts and operations Logical equivalents of set theory operations 1 if A (x,y) andb (x,y) are both 1 C (x,y)= 0 otherwise Similarly: Complement ~ logical NOT Union ~ logical OR Difference ~ A AND (NOT B) The structuring element The structuring element (SE) is the basic neighborhood structure associated with morphological image operations. It is usually represented as a small matrix, whose shape and size impact the results of applying a certain morphological operator to an image. Although a structuring element can have any shape, its implementation requires that it be converted to a rectangular array. For each array, the shaded squares correspond to the members of the SE whereas the empty squares are used for padding, only. The structuring element Examples: square cross MATLAB functions (see Examples 13.1 and 13.2): strel getsequence The two fundamental morphological image operations. Dilation: a morphological operation whose effect is to grow or thicken objects in a binary image. The extent and direction of this thickening is controlled by the size and shape of the structuring element. Mathematically: Dilation geometrical interpretation 2

Dilation MATLAB example (13.3) a = [0 0 0 0 0; 0 1 1 0 0; 0 1 1 0 0; 0 0 1 0 0; 0 0 0 0 0] se1 = strel('square',2) b = imdilate (a,se1) se2 = strel('rectangle', [1 2]) c = imdilate (a,se2) Erosion: a morphological operation whose effect is to shrink or thin objects in a binary image. The direction and extent of this thinning is controlled by the shape and size of the structuring element. Mathematically: Erosion geometrical interpretation Erosion MATLAB example (13.4) a = [ 0 0 0 0 0 ; 0 1 1 1 0; 1 1 1 0 0; 0 1 1 1 1; 0 0 0 0 0] se1 = strel('square',2) b = imerode (a,se1) se2 = strel('rectangle', [1 2]) c = imerode (a,se2) Erosion and dilation are dual operations Erosion and dilation can be interpreted in terms of whether a SE fits or hits an image (region) Erosion: Dilation: 3

Opening: erosion followed by dilation Mathematically: Opening: example or: In MATLAB: imopen (Tutorial 13.1) Opening: geometrical interpretation Closing: dilation followed by erosion Mathematically: In MATLAB: imclose (Tutorial 13.1) Closing: geometrical interpretation Closing: example 4

Hit-or-miss (HoM) transform: a combination of morphological operations that uses two structuring elements (B 1 and B 2 ) designed in such a way that the output image will consist of all locations that match the pixels in B 1 (a hit) and that have none of the pixels in B 2 (a miss). Mathematically: HoM: example (Fig. 13.10) or: In MATLAB: bwhitmiss (Tutorial 13.1) Morphological filtering Morphological filters are Boolean filters that apply a many-to-one binary (or Boolean) function h within a window W in the binary input image f(x,y), producing at the output an image g(x,y) given by: Morphological filtering Examples of Boolean operations (h): OR: equivalent to a morphological dilation with a square SE of the same size as W. AND: equivalent to a morphological erosion with a square SE of the same size as W. MAJ (majority): the morphological equivalent to a median filter applicable to binary images. Morphological filtering Application: noise removal Morphological algorithms A cookbook approach In MATLAB: bwmorph (see also Tutorial 13.2) Example 13.6: A = imread('circles.png'); B = bwmorph(a,'skel', Inf); C = bwmorph(b,'spur',inf); D = bwmorph(a,'remove'); E = bwmorph(d,'thicken',3); F = bwmorph(e,'thin',3); 5

Morphological algorithms Morphological algorithms Operations supported by bwmorph Example 13.6: Boundary extraction Internal: pixels in A that sit at the edge of A. External: pixels outside A that sit immediately next to A. Morphological gradient: combination of internal and external boundaries. Boundary extraction Example 13.7: a = ones(5,12) a (1:2,1)=0 a (1:2,9)=0 a (4:5,5)=0 b = bwperim(a,8) In MATLAB: bwperim Region filling Region filling In MATLAB: imfill 6

Extraction and labeling of connected components Extraction and labeling of connected components Iterative procedure, similar to region filling In MATLAB: bwlabel, bwselect, label2rgb Grayscale morphology Many morphological operations originally developed for binary images can be extended to grayscale images. The mathematical formulation of grayscale morphology uses an input image f(x,y) and a structuring element (SE) b(x,y). Structuring elements in grayscale morphology come in two categories: nonflat and flat. In MATLAB: strel Nonflat SEs can be created with the same function used to create flat SEs, but we must also pass a second matrix (containing the height values) as a parameter. Grayscale morphology Dilation The dilation of an image f(x,y) by a flat SE b(x,y) is defined as: where D b is called the domain of b. For a nonflat SE, b N (x,y): Grayscale morphology Erosion The erosion of an image f(x,y) by a flat SE b(x,y) is defined as: Grayscale erosion and dilation Example 13.8 where D b is called the domain of b. For a nonflat SE, b N (x,y): 7

Grayscale morphology Opening The opening of an image f(x,y) by SE b(x,y) is given by: Grayscale opening and closing Example 13.9 Closing The closing of an image f(x,y) by SE b(x,y) is given by: Grayscale morphology Top-hat transformation Top-hat and bottom-hat Example 13.10 Bottom-hat transformation In MATLAB: imtophat and imbothat Hands-on Tutorial 13.1: Binary morphological image processing (page 325) Tutorial 13.2: Basic morphological algorithms (page 330) 8