Copyright © 2012 Elsevier Inc. All rights reserved.. Chapter 9 Binary Shape Analysis.

Slides:



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

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.
Course Syllabus 1.Color 2.Camera models, camera calibration 3.Advanced image pre-processing Line detection Corner detection Maximally stable extremal regions.
DIGITAL IMAGE PROCESSING
Each pixel is 0 or 1, background or foreground Image processing to
Introduction to Morphological Operators
September 10, 2013Computer Vision Lecture 3: Binary Image Processing 1Thresholding Here, the right image is created from the left image by thresholding,
Chapter 5 Raster –based algorithms in CAC. 5.1 area filling algorithm 5.2 distance transformation graph and skeleton graph generation algorithm 5.3 convolution.
Query Processing in Databases Dr. M. Gavrilova.  Introduction  I/O algorithms for large databases  Complex geometric operations in graphical querying.
Morphology Structural processing of images Image Processing and Computer Vision: 33 Morphological Transformations Set theoretic methods of extracting.
Copyright © 2012 Elsevier Inc. All rights reserved.. Chapter 10 Boundary Pattern Analysis.
Thinning Algorithms Thick images Thin images Color images
Objective of Computer Vision
Course Website: Digital Image Processing Morphological Image Processing.
Objective of Computer Vision
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
E.G.M. PetrakisBinary Image Processing1 Binary Image Analysis Segmentation produces homogenous regions –each region has uniform gray-level –each region.
FEATURE EXTRACTION FOR JAVA CHARACTER RECOGNITION Rudy Adipranata, Liliana, Meiliana Indrawijaya, Gregorius Satia Budhi Informatics Department, Petra Christian.
Chapter 3 Binary Image Analysis. Types of images ► Digital image = I[r][c] is discrete for I, r, and c.  B[r][c] = binary image - range of I is in {0,1}
Chapter 9.  Mathematical morphology: ◦ A useful tool for extracting image components in the representation of region shape.  Boundaries, skeletons,
September 23, 2014Computer Vision Lecture 5: Binary Image Processing 1 Binary Images Binary images are grayscale images with only two possible levels of.
Digital Image Processing CCS331 Relationships of Pixel 1.
Morphological Image Processing
G52IVG, School of Computer Science, University of Nottingham 1 Edge Detection and Image Segmentation.
Introduction Image geometry studies rotation, translation, scaling, distortion, etc. Image topology studies, e.g., (i) the number of occurrences.
Mathematical Morphology Mathematical morphology (matematická morfologie) –A special image analysis discipline based on morphological transformations of.
CSE554SkeletonsSlide 1 CSE 554 Lecture 2: Shape Analysis (Part I) Fall 2015.
Digital Image Processing CSC331 Morphological image processing 1.
Mathematical Morphology
Low level Computer Vision 1. Thresholding 2. Convolution 3. Morphological Operations 4. Connected Component Extraction 5. Feature Extraction 1.
Nottingham Image Analysis School, 23 – 25 June NITS Image Segmentation Guoping Qiu School of Computer Science, University of Nottingham
 Mathematical morphology is a tool for extracting image components that are useful in the representation and description of region shape, such as boundaries,
Digital Image Processing Lecture 13: Image Topology - Skeletonization Prof. Charlene Tsai.
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
TOPIC 12 IMAGE SEGMENTATION & MORPHOLOGY. Image segmentation is approached from three different perspectives :. Region detection: each pixel is assigned.
Machine Vision ENT 273 Hema C.R. Binary Image Processing Lecture 3.
Digital Image Processing, 3rd ed. © 1992–2008 R. C. Gonzalez & R. E. Woods Gonzalez & Woods Chapter 11 Representation and.
Course 3 Binary Image Binary Images have only two gray levels: “1” and “0”, i.e., black / white. —— save memory —— fast processing —— many features of.
Chapter 6 Skeleton & Morphological Operation. Image Processing for Pattern Recognition Feature Extraction Acquisition Preprocessing Classification Post.
5th Intensive Course on Soil Micromorphology Naples th - 14th September Image Analysis Lecture 8 Introduction to Binary Morphology.
Morphological Image Processing (Chapter 9) CSC 446 Lecturer: Nada ALZaben.
 After an image has been segmented into regions by methods such as those discussed in image segmentation chapter, the segmented pixels usually are represented.
Computer Graphics Lecture 08 Taqdees A. Siddiqi Computer Graphics Filled Area Primitives I Lecture 08 Taqdees A. Siddiqi
Sheng-Fang Huang Chapter 11 part I.  After the image is segmented into regions, how to represent and describe these regions? ◦ In terms of its external.
April 21, 2016Introduction to Artificial Intelligence Lecture 22: Computer Vision II 1 Canny Edge Detector The Canny edge detector is a good approximation.
COMP 9517 Computer Vision Binary Image Analysis 4/15/2018
CSE 554 Lecture 2: Shape Analysis (Part I)
Image Representation and Description – Representation Schemes
HIT and MISS.
Fill Area Algorithms Jan
Introduction to Morphological Operators
Computer Vision Lecture 5: Binary Image Processing
Computer Vision Lecture 9: Edge Detection II
Binary Image processing بهمن 92
Computer and Robot Vision I
Copyright © 2012, Elsevier Inc. All rights Reserved.
Chapter 6 Neighborhood Operators
Copyright © 2013 Elsevier Inc. All rights reserved.
Copyright © 2012, Elsevier Inc. All rights Reserved.
Copyright © 2012, Elsevier Inc. All rights Reserved.
Copyright © 2013 Elsevier Inc. All rights reserved.
Computer and Robot Vision I
Computer and Robot Vision I
Modeling Functionality with Use Cases
Copyright © 2012, Elsevier Inc. All rights Reserved.
Copyright © 2012, Elsevier Inc. All rights Reserved.
Copyright © 2013 Elsevier Inc. All rights reserved.
Copyright © 2012, Elsevier Inc. All rights Reserved.
Presentation transcript:

Copyright © 2012 Elsevier Inc. All rights reserved.. Chapter 9 Binary Shape Analysis

9.1 Introduction Fundamentally, 2-D shape has been important because it uniquely characterizes many types of object, from keys to characters, from fingerprints to chromosomes, while in addition it can be represented by patterns in simple binary images. Copyright © 2012 Elsevier Inc. All rights reserved.. 2

9.2 Connectedness in Binary Images This section begins with the assumption that objects have been segmented by thresholding or other procedures, into sets of 1’s in a background of 0’s. Consider a dumbell-shaped object where diagonally adjacent 1’s are regarded as being connected (see p.231). Usually, the foreground is 8-connected and the background is 4-connected. Copyright © 2012 Elsevier Inc. All rights reserved.. 3

9.3 Object Labeling and Counting Labeling can be achieved by scanning the image sequentially until a 1 is encountered on the first object; a note is then made of the scanning position, and a propagation routine is initiated to label the whole of the object with a 1. Next, the scan is resumed, ignoring all points already labeled, until another object is found; this is labeled with a 2 in the separate image space. Copyright © 2012 Elsevier Inc. All rights reserved.. 4

Copyright © 2012 Elsevier Inc. All rights reserved.. FIGURE 9.1

Copyright © 2012 Elsevier Inc. All rights reserved.. Table 9.1

Copyright © 2012 Elsevier Inc. All rights reserved.. FIGURE 9.2

Copyright © 2012 Elsevier Inc. All rights reserved.. Table 9.2

Copyright © 2012 Elsevier Inc. All rights reserved.. FIGURE 9.3

Copyright © 2012 Elsevier Inc. All rights reserved.. Table 9.3

Copyright © 2012 Elsevier Inc. All rights reserved.. Table 9.4

Copyright © 2012 Elsevier Inc. All rights reserved.. Table 9.5

Copyright © 2012 Elsevier Inc. All rights reserved.. Table 9.6

Copyright © 2012 Elsevier Inc. All rights reserved.. Table 9.7

9.4 Size Filtering Distance Measure: Simple size filtering operations can be carried out using local (3x3) operations (Morphology Opening). The basic idea is that small objects may be eliminated by applying a series of shrink operations. Copyright © 2012 Elsevier Inc. All rights reserved.. 15

In fact, N shrink operations will eliminate an object that are 2N or fewer pixels across their narrowest dimension. In principle, a subsequent N expand operations will restore the larger object to their former size. However, in many cases the larger objects will be distorted or fragmented by these operations (Fig. 9.4). To recover the larger objects in their original form, a propagation growing from a “seed” is applied. Copyright © 2012 Elsevier Inc. All rights reserved.. 16

Copyright © 2012 Elsevier Inc. All rights reserved.. FIGURE 9.4 The effect of a simple size filtering procedure. When size filtering is attempted by a set of N shrink and N expand operations, larger objects are restored approximately to their original size but their shapes frequently become distorted or even fragmented. In this example, (b) shows the effect of applying two shrink and then two expand operations to the image in (a).

The expand operations followed by shrink operations may be useful for joining nearby objects, filling in holes, and so on (see Fig. 9.5). Numerous refinements and additions to these simple techniques are possible. Copyright © 2012 Elsevier Inc. All rights reserved.. 18

Copyright © 2012 Elsevier Inc. All rights reserved.. FIGURE 9.5

9.5 Distance Functions and Their Uses The distance function is a very simple and useful concept in shape analysis. Essentially, each pixel in the object is numbered according to its distance from the background. As usual, background pixels are taken as 0’s; then edge pixels are counted as 1’s; object pixels next to 1’s become 2’s; next to those are 3’s; and so on throughout all the object pixels (Fig. 9.6) O(n) and faster algorithm design can be found in the literature. Copyright © 2012 Elsevier Inc. All rights reserved.. 20

Copyright © 2012 Elsevier Inc. All rights reserved.. FIGURE 9.6

9.5.1 Local Maxima and Data Compression An interesting application of distance function is data compression. To achieve this, operations are carried out to locate the local maxima pixels of the distance functions (Fig. 9.7), since storing these pixel values and positions permits the original image to be regenerated by the process of downward propagation. Note that the compression data are stored as a list of points rather than in the original picture format. Copyright © 2012 Elsevier Inc. All rights reserved.. 22

Copyright © 2012 Elsevier Inc. All rights reserved.. FIGURE 9.7

Copyright © 2012 Elsevier Inc. All rights reserved.. FORMULA: locate the local maxima and transfer to a single image space

Copyright © 2012 Elsevier Inc. All rights reserved.. Table 9.10

Copyright © 2012 Elsevier Inc. All rights reserved.. FORMULA: simple recovering algorithm

9.6 Skeletons and Thinning The skeleton is a powerful analog concept that may be employed for the analysis and description of shapes in binary images. The basic idea of the skeleton is that of eliminating redundant information while retaining only the topological information concerning the shape and structure of the object that can help with recognition. In the case of hand-drawn characters, the thickness of the limbs is taken to be irrelevant. Copyright © 2012 Elsevier Inc. All rights reserved.. 27

Copyright © 2012 Elsevier Inc. All rights reserved.. 28

Copyright © 2012 Elsevier Inc. All rights reserved.. Thinning is perhaps the simplest approach to skeletonization. It may be defined as the process of systematically stripping away the outermost layers of a figure until only a connected unit- width skeleton remains (see Fig. 9.9).

Copyright © 2012 Elsevier Inc. All rights reserved Crossing Number The exact mechanism for examining points to determine whether they can be removed in a thinning algorithm may be decided by the crossing number X. Χ is defined as the total number of 0-to-1 and 1- to-0 transitions on going once around the outside of the neighborhood (Fig. 9.10)

Copyright © 2012 Elsevier Inc. All rights reserved.. FORMULA

The rule for removing points: points may be removed if X is 2. When X is greater than 2, the point must be retained, as it forms a vital connected point between two or more parts of the object. When it is 0, it must be retained since removing it would create a hole. There is one more condition that must be fulfilled before a point can be removed – that the sum of the eight neighbors must not be equal to 1 to prevent line ends. Copyright © 2012 Elsevier Inc. All rights reserved.. 32

Copyright © 2012 Elsevier Inc. All rights reserved Parallel and Sequential Implementations of Thinning

To produce a skeleton that is unbiased, giving a set of truly medial lines, it is necessary to remove points that are as evenly as possible around the object boundary. Reference: Beun 1973 Guided Thinning – Fig. 9.11, Davies and Plummer, 1981 Copyright © 2012 Elsevier Inc. All rights reserved.. 34

Copyright © 2012 Elsevier Inc. All rights reserved.. FORMULA

Copyright © 2012 Elsevier Inc. All rights reserved.. FIGURE 9.11

9.7 Measures for Shape Recognition There are many simple tests of shape that can be made to confirm the identity of objects or to check for items such as defects, including measurement of area and perimeter, length of maximum dimension, number and area of holes, number of sharp corners, number of intersections with a check circle and angles between intersections (Fig. 9.12) and numbers and types of skeleton nodes (Sec ). Copyright © 2012 Elsevier Inc. All rights reserved.. 37

Copyright © 2012 Elsevier Inc. All rights reserved.. FIGURE 9.12