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

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

Biomedical Image Analysis. Mathematical Morphology

Mathematical Morphology and Distance Transforms. Robin Strand

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

Morphological Image Processing

Morphological Image Processing

Morphological Image Processing

Image Analysis. Morphological Image Analysis

Chapter 9 Morphological Image Processing

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

EECS490: Digital Image Processing. Lecture #17

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

morphology on binary images

ECEN 447 Digital Image Processing

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

Lecture 7: Morphological Image Processing

EE 584 MACHINE VISION

EE795: Computer Vision and Intelligent Systems

Bioimage Informatics

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

Mathematical morphology for grey-scale and hyperspectral images

Introduction to grayscale image processing by mathematical morphology

Processing of binary images

Lecture: Segmentation I FMAN30: Medical Image Analysis. Anders Heyden

Morphological Image Processing

Morphological Image Processing

ECG782: Multidimensional Digital Signal Processing

Topic 6 Representation and Description

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

Knowledge-driven morphological approaches for image segmentation and object detection

Binary Shape Characterization using Morphological Boundary Class Distribution Functions

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

Albert M. Vossepoel. Center for Image Processing

Finger Print Analysis and Matching Daniel Novák

ECG782: Multidimensional Digital Signal Processing

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

From Pixels to Blobs

Detection of Edges Using Mathematical Morphological Operators

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

Filters. Advanced and Special Topics: Filters. Filters

PPKE-ITK. Lecture

Digital image processing

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

Elaborazione delle Immagini Informazione multimediale - Immagini. Raffaella Lanzarotti

EECS490: Digital Image Processing. Lecture #19

EECS490: Digital Image Processing. Lecture #22

Digital Image Processing

COMPUTER AND ROBOT VISION

Image Processing. Bilkent University. CS554 Computer Vision Pinar Duygulu

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

Mathematical Morphology for plant sciences

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

Mathematical Morphology a non exhaustive overview. Adrien Bousseau

IN5520 Digital Image Analysis. Two old exams. Practical information for any written exam Exam 4300/9305, Fritz Albregtsen

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

Morphological Image Processing

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

15th Special Course on Image Processing for Industrial Applications October, 2000, Delft, The Netherlands. 1. Lab exercises: Mathematical Morphology

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

Machine vision. Summary # 5: Morphological operations

Image Analysis Image Segmentation (Basic Methods)

Segmentation

Morphological Compound Operations-Opening and CLosing

Digital Image Processing COSC 6380/4393

Multi-dimensional Image Analysis

INF Exercise for Thursday

Binary Morphological Model in Refining Local Fitting Active Contour in Segmenting Weak/Missing Edges

CITS 4402 Computer Vision

Edges and Binary Images

Image Processing Fundamentals. Nicolas Vazquez Principal Software Engineer National Instruments

Morphological Image Processing

Quantitative analysis of watershed segmentation

REGION & EDGE BASED SEGMENTATION

Fundamentals of Digital Image Processing

Segmentation

A Case Study on Mathematical Morphology Segmentation for MRI Brain Image

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

Lecture 6: Segmentation by Point Processing

Robot vision review. Martin Jagersand

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

Table 1. Different types of Defects on Tiles

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

Final Review. Image Processing CSE 166 Lecture 18

MEDICAL IMAGE SEGMENTATION BY MARKER- CONTROLLED WATERSHED AND MATHEMATICAL MORPHOLOGY

Image Segmentation. Selim Aksoy. Bilkent University

ECG782: Multidimensional Digital Signal Processing

Review for the Final

Image Segmentation. Selim Aksoy. Bilkent University

Erosion, dilation and related operators

1 Background and Introduction 2. 2 Assessment 2

Topic 4 Image Segmentation

Lecture 8 Object Descriptors

ECEN 447 Digital Image Processing

Morphological Image Processing GUI using MATLAB

UNIVERSITY OF OSLO. Faculty of Mathematics and Natural Sciences

EN1610 Image Understanding Lab # 3: Edges

Region & edge based Segmentation

Image Segmentation Based on Watershed and Edge Detection Techniques

Nuclei Segmentation of Whole Slide Images in Digital Pathology

Chapter IX : SKIZ and Watershed

Transcription:

Mathematical Morphology Morphology-form and structure Sonka 13.1-13.6 Ida-Maria Sintorn Ida.sintorn@cb.uu.se mathematical framework used for: pre-processing - noise filtering, shape simplification,... enhancing object structure, describing shape - skeletonization, convex hull... segmentation Who am I? MSc Molecular Biotechnology Eng. 2000 PhD Image Analysis, CBA, 2005 Image Analyst, CSIRO, Australia, 2005-2007 Head of Image Analysis/IT, Vironova AB since 2007 Researcher/Assistant Professor at CBA since 2008 structuring element (SE) small set, B, to probe the image under study for each SE, define origo & pixels in SE shape and size must be suited for the geometric properties for the objects Research interests: segmentation, shape description, texture analysis in 2D and 3D microscopic data. SE, morphological transformations Binary MM Gray-level MM Granulometry Today s lecture Geodesic transformations Adaptive SEs applications Morphological Transformation ᴪis given by the relation of the image (point set X) and the SE (point set B). in parallel for each pixel (pixel under SE origo) in binary image: check if SE is satisfied output pixel is set to 0 or 1 depending on used operation pixels in output image if check is: SE fits 1

Five binary morphological transforms ε Erosion, shrinking duality erosion and dilation are dual with respect to complementation and reflection C C AΘB = A ˆ ( ) B δ dilation, growing γ opening, erosion + dilation A A B (A B) C ϕ closing, dilation + erosion Hit-or-Miss transform B= Bˆ origo A C A C B Erosion (shrinking) For which points does the structuring element fit the set? erosion of a set X by structuring element B, ε B (X): all x in X such that B is in X when origin of B=x X B = ε B ( X) = { x B X} x combining erosion and dilation WANTED: remove structures / fill holes without affecting remaining parts SOLUTION: combine erosion and dilation (using same SE) SE=B= Opening Closing Dilation (growing) For which points does the structuring element hit the set? dilation of a set X by structuring element B, δ B (X): all x such that the reflection of B hits X when origin of B=x X B=δ B ( X) = { x ( Bˆ) X 0} x opening erosion followed by dilation eliminates protrusions, breaks necks, smoothes contours AoB= ( AΘB) B SE= B= A A B SE=B 2

closing dilation followed by erosion, denoted Smoothes contours, fuses breaks, eliminates holes and gaps A B= ( A B) ΘB Exercise Sketch the result of A first eroded by B1 and then dilated by B2 L L. L L/3 A A B SE=B A B1 B2 opening: roll ball(=se) inside object see B as a rolling ball boundary of A B = points in B that reaches closest to A boundary when B is rolled insidea closing: roll ball(=se) outside object boundaryof A B = points in B that reachesclosest to A boundary whenb is rolled outsidea hit-or-miss transformation (,HMT) find location of one shape among a set of shapes template matching A B= ( AΘB ) ( A C Θ ) 1 B 2 composite SE: object part (B 1 ) and background part (B 2 ) does B 1 fit the objectwhile, simultaneously, B 2 misses the object, i.e., fits the background? hit-or-miss transformation (,HMT) original find location of one shape among a set of shapes SE=object part B 1, and background partb 2 A B= A B= ( AΘB ) ( A C Θ ) 1 B 2 A ˆB ( AΘB ) ( ) 1 2 B 1 O A A c SE B 2 O 3

hit-or-miss transformation (,HMT) find location of one shape among a set of shapes SE=object part B 1, and background partb 2 A B= A B= ( AΘB ) ( A C Θ ) 1 B 2 A ˆB ( AΘB ) ( ) 1 2 Top surface & umbra B 1 O A A c B 2 O 1D function f (top surface, T) Its umbra U[f] Gray-level images and SEs Same SE (flat), gray level description f(0,0)=0 f(-1,0)=0 f(1,0)=0 f(0,-1)=0 f(0,1)=0 Domain(f)={(0,0),(-1,0),(1,0),(0,-1),(0,1)} Umbra homeomorphism theorem Umbra operation is a homeomorphism from grayscale morphology to binary morphology f b=t{u[f] U[b]} Think topographically Gray-scale umbra erosion B Gray scale erosion of two functions as (binary) erosion of umbras Gray-level SE (not flat!) f(0,0)=1 f(-1,0)=0 f(1,0)=0 f(0,-1)=0 f(0,1)=0 Domain(f)={(0,0),(-1,0),(1,0),(0,-1),(0,1)} Original f and U(f) 4

Gray-scale umbra erosion Gray-scale umbra erosion Gray-scale umbra erosion X B Gray-scale Morphological erosion Gray-scale umbra erosion Gray scale erosion 5

Gray scale erosion Gray scale erosion (0) = min(2-0,4-1,6-0)=2 Gray scale erosion Example, gray-scale erosion flat SE, square 3x3 b with positive elements darker output bright details are reduced If flat SE, erosion is min of f-b (1) = min(4-0,6-1,4-0)=4 Gray scale erosion B of two functions as (binary) dilation of umbras (2) = min(6-0,4-1,6-0)=3 Original f and U(f) 6

Gray-scale morphological dilation B X 7

(0) = max(2+0,0+1,0+0)=2 Example, gray-scale dilation flat SE, square 3x3 SE with positive elements brighter output dark details are reduced or eliminated If flat SE, dilation is max of f+b (1) = max(4+0,2+1,0+0)=4 B Morphological opening f γ B (f) (2) = max(6+0,4+1,2+0)=6 8

Example, gray-scale opening, flat SE, square 3x3 remove small bright details leave overall gray-levels leave larger bright features geometrical 1D interpretation Gray-level opening and closing (from GW) opening closing Morphological closing B f ϕ B (f) Which operation (erosion, dilation, opening, closing) is applied to the image above? SE circle, radius=4 Example, gray-scale closing, flat SE, square 3x3 remove dark details Leave overall gray-levels leave bright features Morphological gradient (X B \X B) dilated image eroded image Other ways? 9

Morphological smoothing removal or attenuation of bright & dark artifacts/noise Gray scale hit-or-miss (X B) B Opening followed by closing where B FG is the SE for the object (foreground) and B BG is the SE for the background. Basically an erosion minus a dilation. Top hat transformation X \(X o B) original image opened image Highlight/segment features of certain size & shape, correct for uneven background Use SE slightly larger than objects you want to highlight 2D example Gray scale hit-or-miss Problem: Find vessels in the 2D mip image. (The 3D image is acquired by MR.) SE 1 SE 2 SE3 SE4 Light gray: B FG Electron microscopy image of bacterium with gold markers attached to fimbriae Dark gray: B BG Top hat for background correction Fluorescence microscopy image with stained cell nuclei Gray scale hit-or-miss Result with SE1 SE2 SE3 SE4 Circular filter with r=20 Sum of results: 10

3D example Gray scale hit-or-miss Problem: Find vessels in the 3D MR image. Original image, openings of discs with radii 19,22,25,29 Result SEs: Rotations of this SE. Granulometry Measurement of grain sizes of sedimentary rock Measuring particle size distribution indirectly Shape information without segmentation separated particles Apply morphological openings of increasing size Compute the sum of all pixel values in the opening of the image Geodesic transformations Geodesic dilation Input: marker imagefand mask image g. Dilate the marker image f with the unit ball. Output the minimum value of the dilation of fand the mask image g sumpixels=zeros(1,maxsize+1); for k=0:maxsize se=strel('disk',k); fo=imopen(f,se); sumpixels(k+1)=sum(fo(:)); end Example, coin image The peaks correspond to the size of the elements! Geodesic transformations Geodesic dilation example Sum of pixelvalues Difference in surface area Marker mask marker dilated dilated and mask result SE, radius SE, radius 11

Geodesic transformations Geodesic erosion Input: marker imagefand mask image g. Erode the marker image f with the unit ball. Output the maximum value of the erosion of fand the mask image g Morphological reconstruction by dilation Flat SE Morpological reconstruction X is set of connected components X 1,...,X n. Y is markers in X. Reconstruction by erosion: Minima imposition Mask image g Marker image f Reconstruction by dilation: Geodesic dilations until stability. Reconstruction by erosion: Geodesic erosions until stability. Minima imposition: Reconstruction by erosion. Morpological reconstruction Reconstruction by dilation: Geodesic dilations until stability. Reconstruction by erosion: Minima imposition First iteration: Erode marker image with elementary SE. Pointwise max of and Reconstruction by erosion: Geodesic erosions until stability. = 12

Reconstruction by erosion: Minima imposition Second iteration: Erode result from first iteration with elementary SE. Seeds Seeded watershed by Minima imposition Pointwise max of and = Watershed on the minima imposition Minima imposition using the seeds as markers Reconstruction by erosion: Minima imposition When stability is reached: Application - Image compositing Two images should be merged. Decide where the seam should be. All local minima except for the marked minimum are removed! This can be used for seeded watershed! Application - Seeded watershed by Minima imposition Image compositing Compute gradient. Do seeded watershed with minima imposition. (Seeds on the border of the image.) Input image Watershed on edge image. Oversegmentation! Edge image by morphological gradient - 13

Result Image compositing GAN amoeba SASE ellipse Adaptive SE The appropriate shape and size of a structuring element strongly depends on the image data and objects of interest original GAN amoeba Letthe SE adapttothe local surroundings Research from CBA: Vladimir Curic, Cris Luengo SASE ellipse Adaptive SE G(eneral)A(daptive)N(eighbourhood): based only on intensity range = connected component Amoebas: Pathbased -combines distance and intensity (grow until or on the edge) S(alience)A(daptive)SE: Pathbased -uses an attribute (e.g., grad mag.) -weigthed distance transform from segmented objects (e.g., edges). No spatial weight. Only intensity sum Ellipse: based on structure tensor (local intensity direction) 14