else end while End References

Similar documents
Minimum congestion spanning trees in bipartite and random graphs

Quadrilaterals. Learning Objectives. Pre-Activity

Universität Augsburg. Institut für Informatik. Approximating Optimal Visual Sensor Placement. E. Hörster, R. Lienhart.

Drawing Lines in 2 Dimensions

MAT 155: Describing, Exploring, and Comparing Data Page 1 of NotesCh2-3.doc

Lecture 14: Minimum Spanning Tree I

A SIMPLE IMPERATIVE LANGUAGE THE STORE FUNCTION NON-TERMINATING COMMANDS

Delaunay Triangulation: Incremental Construction

Lecture Outline. Global flow analysis. Global Optimization. Global constant propagation. Liveness analysis. Local Optimization. Global Optimization

CERIAS Tech Report EFFICIENT PARALLEL ALGORITHMS FOR PLANAR st-graphs. by Mikhail J. Atallah, Danny Z. Chen, and Ovidiu Daescu

Karen L. Collins. Wesleyan University. Middletown, CT and. Mark Hovey MIT. Cambridge, MA Abstract

Topics. Lecture 37: Global Optimization. Issues. A Simple Example: Copy Propagation X := 3 B > 0 Y := 0 X := 4 Y := Z + W A := 2 * 3X

Planning of scooping position and approach path for loading operation by wheel loader

Generic Traverse. CS 362, Lecture 19. DFS and BFS. Today s Outline

Laboratory Exercise 6

The Association of System Performance Professionals

Advanced Encryption Standard and Modes of Operation

Trainable Context Model for Multiscale Segmentation

On successive packing approach to multidimensional (M-D) interleaving

Shortest Paths Problem. CS 362, Lecture 20. Today s Outline. Negative Weights

xy-monotone path existence queries in a rectilinear environment

arxiv: v3 [cs.cg] 1 Oct 2018

CS 467/567: Divide and Conquer on the PRAM

Today s Outline. CS 561, Lecture 23. Negative Weights. Shortest Paths Problem. The presence of a negative cycle might mean that there is

Laboratory Exercise 6

Routing Definition 4.1

A note on degenerate and spectrally degenerate graphs

An Intro to LP and the Simplex Algorithm. Primal Simplex

Chapter 13 Non Sampling Errors

Cutting Stock by Iterated Matching. Andreas Fritsch, Oliver Vornberger. University of Osnabruck. D Osnabruck.

Areas of Regular Polygons. To find the area of a regular polygon. The Solve It involves the area of a polygon.

Edits in Xylia Validity Preserving Editing of XML Documents

Exploring Simple Grid Polygons

Operational Semantics Class notes for a lecture given by Mooly Sagiv Tel Aviv University 24/5/2007 By Roy Ganor and Uri Juhasz

Algorithmic Discrete Mathematics 4. Exercise Sheet

Exercise 4: Markov Processes, Cellular Automata and Fuzzy Logic

KS3 Maths Assessment Objectives

CENTER-POINT MODEL OF DEFORMABLE SURFACE

ANALYSIS OF THE FIRST LAYER IN WEIGHTLESS NEURAL NETWORKS FOR 3_DIMENSIONAL PATTERN RECOGNITION

Analyzing Hydra Historical Statistics Part 2

Shortest Paths with Single-Point Visibility Constraint

UC Berkeley International Conference on GIScience Short Paper Proceedings

Key Terms - MinMin, MaxMin, Sufferage, Task Scheduling, Standard Deviation, Load Balancing.

/06/$ IEEE 364

1 The secretary problem

Modeling of underwater vehicle s dynamics

Laboratory Exercise 6

See chapter 8 in the textbook. Dr Muhammad Al Salamah, Industrial Engineering, KFUPM

A PROBABILISTIC NOTION OF CAMERA GEOMETRY: CALIBRATED VS. UNCALIBRATED

arxiv: v1 [cs.ds] 27 Feb 2018

Touring a Sequence of Polygons

Representations and Transformations. Objectives

Performance of a Robust Filter-based Approach for Contour Detection in Wireless Sensor Networks

Distributed Packet Processing Architecture with Reconfigurable Hardware Accelerators for 100Gbps Forwarding Performance on Virtualized Edge Router

The Split Domination and Irredundant Number of a Graph

Laboratory Exercise 6

Interface Tracking in Eulerian and MMALE Calculations

3D MODELLING WITH LINEAR APPROACHES USING GEOMETRIC PRIMITIVES

Shortest Path Routing in Arbitrary Networks

Hassan Ghaziri AUB, OSB Beirut, Lebanon Key words Competitive self-organizing maps, Meta-heuristics, Vehicle routing problem,

Computer Arithmetic Homework Solutions. 1 An adder for graphics. 2 Partitioned adder. 3 HDL implementation of a partitioned adder

Course Project: Adders, Subtractors, and Multipliers a

CS201: Data Structures and Algorithms. Assignment 2. Version 1d

Testing Structural Properties in Textual Data: Beyond Document Grammars

3D SMAP Algorithm. April 11, 2012

Numerical Modeling of Material Discontinuity Using Mixed MLPG Collocation Method

Lemma 1. A 3-connected maximal generalized outerplanar graph is a wheel.

A NEW APPROACH IN MEASURING OF THE ROUGHNESS FOR SURFACE CONSTITUTED WITH MACHINING PROCESS BY MATERIAL REMOVAL

Polygon Side Lengths NAME DATE TIME

Maneuverable Relays to Improve Energy Efficiency in Sensor Networks

(12) Patent Application Publication (10) Pub. No.: US 2003/ A1

Motion Control (wheeled robots)

Modeling the Effect of Mobile Handoffs on TCP and TFRC Throughput

CORRECTNESS ISSUES AND LOOP INVARIANTS

IMPLEMENTATION OF CHORD LENGTH SAMPLING FOR TRANSPORT THROUGH A BINARY STOCHASTIC MIXTURE

A METHOD OF REAL-TIME NURBS INTERPOLATION WITH CONFINED CHORD ERROR FOR CNC SYSTEMS

A Boyer-Moore Approach for. Two-Dimensional Matching. Jorma Tarhio. University of California. Berkeley, CA Abstract

Computing C-space Entropy for View Planning

AUTOMATIC TEST CASE GENERATION USING UML MODELS

SIMIT 7. Component Type Editor (CTE) User manual. Siemens Industrial

Aalborg Universitet. Published in: Proceedings of the Working Conference on Advanced Visual Interfaces

Today s Outline. CS 362, Lecture 19. DFS and BFS. Generic Traverse. BFS and DFS Wrapup Shortest Paths. Jared Saia University of New Mexico

A Sparse Shared-Memory Multifrontal Solver in SCAD Software

Nearly Constant Approximation for Data Aggregation Scheduling in Wireless Sensor Networks

Temporal Abstract Interpretation. To have a continuum of program analysis techniques ranging from model-checking to static analysis.

Building a Compact On-line MRF Recognizer for Large Character Set using Structured Dictionary Representation and Vector Quantization Technique

Mid-term review ECE 161C Electrical and Computer Engineering University of California San Diego

AVL Tree. The height of the BST be as small as possible

A Linear Interpolation-Based Algorithm for Path Planning and Replanning on Girds *

Analysis of the results of analytical and simulation With the network model and dynamic priority Unchecked Buffer

Shortest-Path Routing in Arbitrary Networks

Touring a Sequence of Polygons

Chapter S:II (continued)

A New Approach to Pipeline FFT Processor

ADAM - A PROBLEM-ORIENTED SYMBOL PROCESSOR

The norm Package. November 15, Title Analysis of multivariate normal datasets with missing values

Lecture 8: More Pipelining

LinkGuide: Towards a Better Collection of Hyperlinks in a Website Homepage

Parameters, UVM, Coverage & Emulation Take Two and Call Me in the Morning

CSE 250B Assignment 4 Report

Transcription:

621-630. [RM89] [SK76] Roenfeld, A. and Melter, R. A., Digital geometry, The Mathematical Intelligencer, vol. 11, No. 3, 1989, pp. 69-72. Sklanky, J. and Kibler, D. F., A theory of nonuniformly digitized binary picture, IEEE Tranaction Sytem, Man & Cybernetic, vol. SMC-6, Sept.,1976, pp.637-647. - 16 -

which p=b wa entered); ele advance the current pixel p to the next clockwie pixel in M(b). end while End While the Moore-neighborhood contour tracing algorithm will work correctly on the example of Fig. 5 whether the pixel marked S i black or not, it i not guaranteed to work correctly on all 8-connected pattern. It i left a an exercie for the reader to find uitable counter-example. However, performance can again be improved by waiting to encounter the tarting pixel for a third time. Thee algorithm are ueful neverthele, particularly in mot practical ituation where the thickne of the pattern i much greater than one pixel. In uch ituation counter-example are much harder to find. A more eriou drawback i that if the pattern P ha hole the contour tracing algorithm decribed above only deliver the outer boundary of P and not the boundarie of the hole. Such would be the cae for example for pattern uch a the letter O, P, B, Q, D and R. In order to make precie tatement about the ituation in which thee algorithm are guaranteed to compute the entire boundary of connected et care mut be taken in defining the connectivity of the background and the hole [RM89], [Ro79]. A pecial cae of interet i the that when not only the pattern i 4-connected but the background (et of white pixel) i alo 4-connected. It i left a an exercie for the reader to determine if the Moore-neighborhood contour tracing algorithm will work correctly on uch image. Finally we mention that the contour tracing algorithm decribed above are inherently equential and a mitake made early in the game tay or amplifie the problem later on. One can attribute the weaknee of thee algorithm to their equential nature although their weaknee may be overcome by additional equential procedure. However, we hall ee in later chapter that with parallel algorithm we can avoid uch problem in a impler and more elegant manner. 4. Reference [De72] [De70] [FT83] [GS87] [Po40] [Ro79] Deutch, E. S., Thinning algorithm on rectangular, hexagonal, and triangular array, Communication of the ACM, vol. 15, No. 9, Sept. 1972, pp. 827-837. Deutch, E. S., On parallel operation on hexagonal array, IEEE Tran. Computer, vol. C-19, Oct. 1970, pp. 982-983. Feje Toth, New reult in the theory of packing and covering, in Convexity and It Application, P. M. Gruber and J. M. Will, ed., Birkhauer, Bael, 1983, pp. 318-359. Grunbaum, B. and Shephard, G. C., Tiling and Pattern, W. H. Freeman and Co., 1987. Polachek, H., The tructure of the honeycomb, Scripta Mathematica, vol. 7, 1940, pp. 87-98. Roenfeld, A., Digital topology, American Mathematical Monthly, vol. 86, 1979, pp. - 15 -

S S Fig. 6 Searching for the next black contour pixel in Moore-neighborhood contour tracing. Fig. 5 Square tracing an 8-connected pattern. rent pixel p i black, the Moore neighborhood of p i examined in a clockwie manner tarting with the pixel from which p wa entered and advancing pixel by pixel until a new black pixel in P i encountered a illutrated in Fig. 6. The algorithm i decribed more preciely below. ALGORITHM Moore-Neighborhood-Tracing Input: A quare teellation T containing a connected component P of black cell. Output: A equence B (b 1, b 2,..., b k ) of boundary pixel. Begin {Initialization: find a pixel in P, initialize B, define M(p) to be the Moore neighborhood of the current pixel p} 1. Set B to be empty. 2. From bottom to top and left to right can the cell of T until a pixel of P i found (until the current pixel p= i a black pixel of P), inert in B. Let b denote the current boundary point, i.e., b=. 3. Backtrack (move the current pixel to the pixel from which wa entered) and advance the current pixel p being examined to the next clockwie pixel in M(b). while p i not equal to do if p i black, inert p in B, et b=p and backtrack (move the current pixel to the pixel from - 14 -

p Fig. 4 A pixel in a quare teellation and it eight-neighbor. Update p. ele turn right (viit the right adjacent pixel of p); Update p. end while End Note: The notion of left and right in the above algorithm i not to be interpreted with repect to the page or the reader but rather with repect to the direction of entering the current pixel during the execution of the can. Fig. 5 how an example of how the quare tracing algorithm tarting at the pixel marked S produce a equence of boundary pixel in the cae P i 8-connected. It would be nice to be able to prove that Algorithm Square-Tracing alway work correctly, i.e., that for all connected pattern it extract the entire et of boundary pixel a defined above. Unfortunately thi i not the cae. Note that in Fig. 5 the 8-connected pattern conit of two eparate 4-connected component, i.e., two 4-connected component that are not 4-connected to each other. If the black pixel marked S were marked white intead then the algorithm would only trace one of the 4-connected component of P. Since there are imple procedure for converting 8-connected pattern to 4-connected one without appreciably changing their hape it would be nice to be able to prove that the quare tracing algorithm alway work correctly at leat for 4-connected pattern. It i left a an exercie for the reader to provide an example of a 4-connected pattern that i not completely contour traced either by the quare tracing algorithm. However, there are way of modifying the algorithm to obtain an increae in the chance that the algorithm will terminate correctly in practice. For example one may try to make the algorithm continue executing when S i encountered for the econd time to determine if an un-explored portion of P i dicovered and terminate only after S i encountered again for the third time. More popular modification of Algorithm Square-Tracing to handle 8-connected pattern dicard the left-turn-right-turn rule altogether. One uch procedure i known a Moore-neighborhood tracing. The eight neighbor of a pixel hown in Fig. 4 are alo referred to in the literature a the Moore neighborhood of a pixel. In the Moore neighborhood tracing algorithm, when the cur- - 13 -

p Fig. 3 A pixel in a hexagonal teellation and it ix neighbor. ueful definition of border point which are intimately related to the boundary. We ay that a black pixel of P i a 4-border point if at leat one of it 4-neighbor i white. We ay that a black pixel of P i an 8-border point if at leat one of it 8-neighbor i white. One particularly imple procedure for contour tracing connected component of binary picture i called quare-tracing and i decribed below. The idea i to imagine you are a bug crawling along the black and white boundary pixel and making 90 degree turn to the left or right with repect to the direction in which you are pointing at any one given moment depending on what the color of the pixel you are tanding i. ALGORITHM Square-Tracing Input: A quare teellation T containing a connected component P of black cell. Output: A equence B (b 1, b 2,..., b k ) of boundary pixel. Begin {find a pixel in P and initialize B} 1. Set B to be empty. 2. From bottom to top and left to right can the cell of T until a pixel of P i found (until the current pixel p being examined i the black tarting pixel of P). Inert in B. Turn left (viit the left adjacent pixel of p). Update p. while p not equal to do if the current pixel p i black inert p in B and turn left (viit the left adjacent pixel of p); - 12 -

f f p f each type of teellation T we can define an object or pattern in T a a connected component of black pixel. Thu one of the firt tage in a pattern recognition ytem i to actually find all the object in the digitized field of view T. Conider for example an hexagonal teellation T and let P denote the et of pixel in T that are black. We ay that two pixel in T are neighbor if they hare an edge in common. We ay that P i connected (or a connected component) if for every pair of pixel p i, p j in P there exit a equence of pixel p i,..., p j uch that (1) it i contained in P and (2) every pair of pixel adjacent in the equence are neighbor of each other. We can obtain analogou definition of connectivity for quare array. However, becaue we now have two different type of neighbor we obtain two different type of connectivity. Accordingly let P be a et of black pixel in a quare teellation T. We ay that P i 4-connected (or a 4-connected component) if for every pair of pixel p i, p j in P there exit a equence of pixel p i,..., p j uch that (1) it i contained in P and (2) every pair of pixel adjacent in the equence are 4-neighbor of each other. Similarly, We ay that P i 8-connected (or an 8-connected component) if for every pair of pixel p i, p j in P there exit a equence of pixel p i,..., p j uch that (1) it i contained in P and (2) every pair of pixel adjacent in the equence are 8-neighbor of each other. Obviouly a 4-connected pattern i an 8- connected pattern but not vice-vera. 3. Contour Tracing Fig. 2 A pixel in a triangular teellation and it three type of neighbor. One method of finding and analyzing the connected component of T i to can T in ome manner until a border pixel of a component P i found and ubequently to trace the boundary of P until the entire boundary i obtained. The boundary thu obtained can be tored a a doublylinked circular lit of pixel or a a polygon of the boundary of the pixel in quetion. Such procedure are generally termed contour tracing. There i frequently no tandard formal definition given of the boundary of a connected pattern. In practice the boundary i what eem appropriate a the boundary to human and algorithm are judged in accordance to how well they agree with human perception. However in order to make more precie tatement about our algorithm there are two - 11 -

Triangular Hexagonal Square view the reulting grid a a graph, all the node in thi graph have degree ix wherea the degree are four and three in quare and hexagonal teellation, repectively. More importantly however are the neighborhood propertie of a ingle pixel. Conider the pixel marked black in Fig. 2 and call it p. The neighborhood of p i defined a the et of pixel that interect p. We ee that p ha 12 neighbor and thee can be claified into three group: thoe that have an edge in common with p (hown haded in Fig. 2), and thoe that only have a point in common. Of the latter we can ditinguih between thoe that are facing a vertex of p (marked f) and thoe that are kewed with a vertex of p (marked ). The complicated nature of thi ituation and it complicating effect on the reulting image proceing algorithm deigned to work on uch teellation make thi type of teellation un-attractive although much reearch wa done on all three type of teellation during the early day of pattern recognition [De72]. 1.2 Hexagonal Teellation From the point of view of the neighborhood propertie of a ingle pixel, the hexagonal teellation i the mot elegant a can be een from Fig. 3 where a black pixel p i hown urrounded by it ix neighbor. All the ix neighbor belong to the ame equivalence cla in the ene that they hare one edge with p. Beide their ue in image proceing hexagonal array are notoriouly preent in nature ingularly evident in the honeycomb of the bee. A a reult many facinating mathematical propertie of thee teellation and their 3-dimenional relative have been the ubject of invetigation for two thouand year [Po40]. 1.3 Square Teellation Square teellation are the mot widely ued in practice. Fig. 4 illutrate a black pixel p and it neighborhood. We ee that p ha 8 neighbor and thee can be claified into two group: thoe that have an edge in common with p (hown haded in Fig. 4), and thoe that only have a point in common. The haded group are called the 4-neighbor of p wherea the totality of neighbor i called the 8-neighborhood of p. Thu a 4-neighbor i an 8-neighbor but not vice-vera. 2. Connectivity Fig. 1 Illutrating the three type of regular teellation. One of the mot important concept in image proceing i the notion of connectivity, In - 10 -

CHAPTER 2 GRIDS, CONNECTIVITY AND CONTOUR TRACING Godfried Touaint ABSTRACT Thi chapter introduce the three baic type of grid ued to repreent a digital pattern: triangular, hexagonal and quare. The notion of 4-connectedne and 8-connectedne are defined and their impact on tracing the boundary of a digital pattern i analyzed. 1. Teellation A teellation of the plane i eentially a partitioning of the plane into region. Typical example of bounded region that form teellation are a quilted bedpread and a tiled bathroom floor. There exit coniderable variation in the terminology of teellation. In the mathematical literature the word tiling and moaic are often ued and one alo encounter the word paving and parqueting [GS87]. More formally we ay that a planar teellation T i a countable family of cloed et T = {T 1, T 2,...} which cover the plane without gap or overlap. A in a well contructed bathroom floor we would not want ome tile to be miing (gap) or to be lying on top of other (overlap). More preciely, the union of all the et T 1, T 2,... (alo referred to a cell) contitute the entire plane and the interection of the interior of every pair of cell i empty. It i ueful to define two related notion here. A packing i a family of et which ha no overlapping. A covering i a family of et that ha no gap. Clearly, a teellation i both a packing and a covering. Furthermore, when the object of interet i not the entire plane but a ubet of it a for example a imple polygon then the term teellation i replaced by partition. Covering and packing of the plane are of interet to mathematician and a good urvey on recent reult in thi area can be found in [FT83]. Partition and other covering of polygon, on the other hand, are very ueful in computer cience and will be of interet when we tudy feature extraction and the meaurement of hape. Here we are intereted in teellation a model for the repreentation of digital image and therefore it i convenient to let all the cell (pixel in thi context) be the ame hape and ize. Such teellation are termed monohedral. Thi mean that every pixel in T i congruent either directly or reflectively to one fixed hape T called the prototile or protocell. Thi i of coure not a neceary condition for obtaining effective computer viion ytem. The teellation induced by the ditribution of rod and cone in the retina of our eye are certainly not monohedral. Some reearch ha alo been done on image proceing algorithm on non-monohedral teellation [SK76]. However, our primary concern i with a retricted verion of monohedral teellation. If we alo init that each cell be a regular polygon, i.e., a polygon with all it ide and angle equal, then we obtain the o-called regular teellation. It turn out that there exit only three different type of uch teellation: triangular, hexagonal and quare a illutrated in Fig. 1. 1.1 Triangular Teellation Triangular teellation are the mot complicated of the three in ome ene. For one, if we - 9 -