EE 584 MACHINE VISION

Similar documents
Topic 6 Representation and Description

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

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

Morphological Image Processing

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

Processing of binary images

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

Image Processing. Bilkent University. CS554 Computer Vision Pinar Duygulu

Morphological Image Processing

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

Chapter 11 Representation & Description

morphology on binary images

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

Mathematical Morphology and Distance Transforms. Robin Strand

Edges and Binary Image Analysis April 12 th, 2018

CITS 4402 Computer Vision

Machine vision. Summary # 6: Shape descriptors

Lecture 8 Object Descriptors

EE795: Computer Vision and Intelligent Systems

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

Morphological Image Processing

EECS490: Digital Image Processing. Lecture #17

Edges and Binary Images

Digital Image Processing Chapter 11: Image Description and Representation

From Pixels to Blobs

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

Practical Image and Video Processing Using MATLAB

Digital Image Processing Fundamentals

Morphological Image Processing

OBJECT DESCRIPTION - FEATURE EXTRACTION

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

Lecture 7: Morphological Image Processing

Biomedical Image Analysis. Mathematical Morphology

Albert M. Vossepoel. Center for Image Processing

- Low-level image processing Image enhancement, restoration, transformation

EECS490: Digital Image Processing. Lecture #23

Digital Image Processing

Analysis of Binary Images

COMPUTER AND ROBOT VISION

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

CoE4TN4 Image Processing

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

Connected components - 1

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

Ulrik Söderström 21 Feb Representation and description

CSE 152 Lecture 7. Intro Computer Vision

Lecture 6: Multimedia Information Retrieval Dr. Jian Zhang

Chapter 11 Representation & Description

EE368 Project Report CD Cover Recognition Using Modified SIFT Algorithm

Anno accademico 2006/2007. Davide Migliore

9 length of contour = no. of horizontal and vertical components + ( 2 no. of diagonal components) diameter of boundary B

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

1 Background and Introduction 2. 2 Assessment 2

Color Matching Functions. The principle of trichromacy. CIE xyy (Chromaticity Space) Color spaces. Intro Computer Vision. CSE 152 Lecture 7`

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

Digital Image Processing COSC 6380/4393

ECG782: Multidimensional Digital Signal Processing

CSE 152 Lecture 7` Intro Computer Vision

A Computer Vision System for Graphical Pattern Recognition and Semantic Object Detection

ECG782: Multidimensional Digital Signal Processing

Announcements. Binary Image Processing. Binary System Summary. Histogram-based Segmentation. How do we select a Threshold?

Announcements. Analysis of Binary Images. Color Reflectance

Lecture 10: Image Descriptors and Representation

Robot vision review. Martin Jagersand

CSE152a Computer Vision Assignment 2 WI14 Instructor: Prof. David Kriegman. Revision 1

Chapter 9 Morphological Image Processing

Image Segmentation. Selim Aksoy. Bilkent University

Morphological Image Processing

Image Segmentation. Selim Aksoy. Bilkent University

Normalized cuts and image segmentation

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

Requirements for region detection

CS4733 Class Notes, Computer Vision

Detection of Edges Using Mathematical Morphological Operators

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

Image Analysis. Morphological Image Analysis

Lecture 9: Hough Transform and Thresholding base Segmentation

Lecture 14 Shape. ch. 9, sec. 1-8, of Machine Vision by Wesley E. Snyder & Hairong Qi. Spring (CMU RI) : BioE 2630 (Pitt)

Filters. Advanced and Special Topics: Filters. Filters

Development of an Automated Fingerprint Verification System

ECEN 447 Digital Image Processing

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

Digital Image Processing

Binary Shape Characterization using Morphological Boundary Class Distribution Functions

Introduction to Medical Imaging (5XSA0)

ECEN 447 Digital Image Processing

Edge and local feature detection - 2. Importance of edge detection in computer vision

Finger Print Analysis and Matching Daniel Novák

EE 701 ROBOT VISION. Segmentation

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

Image representation. 1. Introduction

CLASSIFICATION OF BOUNDARY AND REGION SHAPES USING HU-MOMENT INVARIANTS

EXAM SOLUTIONS. Image Processing and Computer Vision Course 2D1421 Monday, 13 th of March 2006,

DD2429 Computational Photography :00-19:00

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

Digital image processing

Basic relations between pixels (Chapter 2)

Corner Detection. GV12/3072 Image Processing.

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

Transcription:

EE 584 MACHINE VISION Binary Images Analysis Geometrical & Topological Properties Connectedness Binary Algorithms Morphology Binary Images Binary (two-valued; black/white) images gives better efficiency in acquiring, storage, processing and transmission. simplified description in terms of shape Obtained by thresholding or segmentation of a graylevel image One can compute some geometrical (e.g. area, orientation) and topological (connectedness) properties using binary images Remember that all we have is a silhouette, but good recognition by humans is encouraging 1

Binarization Effect of different thresholds T on the image histogram T=00 T=18 T=18 T=50 3 Binary Images : Geometrical Properties (1/4) Assume continuous binary image, b(x, (background 0, foreground 1) Area : Position : A = b( x, dxdy x = y = xb( x, dxdy b( x, dxdy yb( x, dxdy b( x, dxdy Center of mass (1 st moment along one of the axis) 4

Binary Images : Geometrical Properties (/4) For discrete images, We denote the set of pixels in a region by R Assuming square pixels, we obtain Area: A = 1 ( x, R Centroid: x = y = x 1 A ( x, R y 1 A ( x, R Source: Shapiro & Stockman 5 Binary Images : Geometrical Properties (3/4) Orientation : Find the line for which the integral of the square of the distance to the object points is a minimum E = r b( x, dxdy r is a perpendicular distance from (x, to orientation line The line passes thru center of mass with an angle given by : [See the derivations on the distributed notes] b tan Θ = a c a = b = c = ( ( x ) ( x y ) b( x, y ) dx dy y ) b( x, y ) dx dy b( x, y ) dx dy y Θ x 6 3

Binary Images : Geometrical Properties (4/4) Another technique to calculate the axis of the second least moment Axis for which the squared distance to D object points is minimized (maximized). Compute the eigenvectors of nd moment matrix µ µ 0 11 µ 11 = VDV µ 0 T v = v 11 v v 1 λ1 0 0 v λ v 11 1 v v 1 T 7 Binary Images : Topological Properties In case of more than one object is in the field of view: Area, center of mass or orientation produce an average value Different components should be separated by defining the meaning of connectedness between two binary cells Two points on an image are connected, if a path can be found along which b(x, is constant A connected component is the maximal set of connected points connected components + holes + 1 background 8 4

Topological Properties: Discrete Connectedness Neighbors : pixels having boundaries 4-neighbors : only edge-adjacent pixels 8- neighbors : edge- & corner-adjacent pixel B C B C H C B C B 4-connected C C C C H C C C C 8-connected Path : a sequence of neighboring pixels 9 Topological Properties : Connected Components Dividing a binary image into connected components: Connected component labeling (CCL) Two approaches for CCL Recursive Sequential (-pass) 10 5

Sequential Connected Components (1/) 11 Sequential Connected Components (/) Process the image from left to right, top to bottom: 1.) If the next pixel to process is 1 i.) If only one of its neighbors (top or left) is 1, copy its label. ii.) If both are 1 and have the same label, copy it. iii.) If they have different labels Copy the label from the left. Update the equivalence table. iv.) Otherwise, assign a new label. Re-label with the smallest of equivalent labels 1 6

Binary Properties: Some properties obtained using connected components analysis Area : Usually used in size filters Perimeter : Boundary following algorithms Compactness : (Perimeter) /Area circle : the most compact line : the least compact Circularity: 13 Circularity Measure the deviation from a perfect circle ( x, Circularity: µ C = R σ R where µ R and σ R are the mean and variance of the distance from the centroid of the shape to the boundary pixels (x k,y k ). Mean radial distance: µ R = K 1 1 K ( xk, yk ) ( x, k = 0 Variance of radial distance: σ R = K 1 1 K k= 0 [ ( x, y ) ( x, µ ] k k R 14 7

Invariant Descriptors S is a subset of pixels (region). Central (j,k) th moment defined as: µ jk = ( x, S ( x x) j ( y k µ jk is invariant to translation of S. Interpretation: µ 00 : 0 th central moment: area µ 0,0 : nd central moment: variance µ 03,30 : 3 rd central moment: skewness µ 04,40 : 4 th central moment: kurtosis 15 Moment Invariants Normalized central moments µ pq p + q η pq =, γ γ = + 1 µ 00 A set of invariant moments can be defined for object description: φ = η + 1 0 η0 = η0 η0) 4 φ ( + η φ 11 3 = ( η30 3η 1) + (3η 1 η03) 4 = ( η30 + η1) + ( η1 η03) φ + (Additional invariant moments φ 5, φ 6, φ 7 can be found in the literature). Invariant to rotation, scaling & translation (RST) 16 8

Binary Algorithms : Distance Transform A measure is necessary to find the distance between two pixels on a binary image, b(i,j) City-block, chessboard Euclidean Distance Transform, D(i,j) : Minimum distance between an object and all background points City-block distance transform computation: Minimum of N&W (S&E) neighbor + 1 and merge passes Points that give the locally maximum (ridges) of such distances are called medial axis (skeleton) 17 Binary Algorithms : Morphological Operations Mathematical morphology is a set-theoretical approach to image analysis, based on shape. Signals are locally compared with structuring elements S of arbitrary shape with a reference point R Aim : Transforming signals into simpler ones by removing irrelevant information Usually used for binary images, but gray-level extensions also exist 18 9

Morphological Operators Basic idea Scan the image with a structuring element Perform set operations (intersection, union) of image content with structuring element Two basic operations Dilation Erosion Matlab: >> help strel Several important combinations Opening Closing Boundary extraction Image Source: R.C. Gonzales & R.E. Woods. Dilation Definition The dilation of A by B is the set of all displacements z, such that ( B) ˆ z and A overlap by at least one element. (( B) ˆ z is the mirrored version of B, shifted by z) A B 1 A B 1 Effects If current pixel z is foreground, set all pixels under (B) z to foreground. Expand connected components Grow features Fill holes B A B Image Source: R.C. Gonzales & R.E. Woods 10

Erosion Definition The erosion of A by B is the set of all displacements z, such that (B) z is entirely contained in A. Effects A B 1 1 If not every pixel under (B) z is foreground, set the current pixel z to background. Erode connected components Shrink features Remove bridges, branches, noise B Image Source: R.C. Gonzales & R.E. Woods Effects of Dilation and Erosion Dilation with circular SE structuring element Original image Image Erosion with circular SE structuring element Image Source: http://homepages.inf.ed.ac.uk/rbf/hipr/ 11

Definition Opening Sequence of Erosion and Dilation Effect is defined by the points that are reached if B is rolled around inside A. Remove small objects, keep original shape. Image Source: R.C. Gonzales & R.E. Woods Effect of Opening Feature selection through size of structuring element Opening with with smaller small SE structuring element Original image Thresholded Image Source: http://homepages.inf.ed.ac.uk/rbf/hipr/ Opening with larger SE structuring element 1

Effect of Opening Feature selection through shape of structuring element (SE) Input Image Opening with circular Opening structuring after circular elementse Image Source: http://homepages.inf.ed.ac.uk/rbf/hipr/ Definition Closing Sequence of Dilation and Erosion Effect is defined by the points that are reached if B is rolled around on the outside of A. Fill holes, keep original shape. Image Source: R.C. Gonzales & R.E. Woods 13

Effect of Closing Fill holes in thresholded image (e.g. due to specularities) Original image Thresholded Closing with circular structuring element Size Size of of structuring elements determines determines which structures which are structures selectively are filled. selectively filled Image Source: http://homepages.inf.ed.ac.uk/rbf/hipr/ Binary Algorithms : Morphological Operations 14

Example Application: Opening + Closing Original image Opening Closing Structuring Structuring element element Eroded image Dilated image Source: R.C. Gonzales & R.E. Woods Morphological Boundary Extraction Definition First erode A by B, then subtract the result from the original A. β ( A) = A ( A B) Effects If a 3 3 structuring element is used, this results in a boundary that is exactly 1 pixel thick. Source: R.C. Gonzales & R.E. Woods 15

Morphology Operators on Grayscale Images Dilation and erosion typically performed on binary images. If image is grayscale: for dilation take the neighborhood max, for erosion take the min. Original Dilated Eroded Slide credit: Kristen Grauman 16