Efficient Parallel and Distributed Algorithms for GIS Polygon Overlay Processing

Total Page:16

File Type:pdf, Size:1020Kb

Efficient Parallel and Distributed Algorithms for GIS Polygon Overlay Processing Georgia State University ScholarWorks @ Georgia State University Computer Science Dissertations Department of Computer Science 8-11-2015 Efficient Parallel and Distributed Algorithms for GIS Polygon Overlay Processing Satish Puri Georgia State University Follow this and additional works at: https://scholarworks.gsu.edu/cs_diss Recommended Citation Puri, Satish, "Efficientar P allel and Distributed Algorithms for GIS Polygon Overlay Processing." Dissertation, Georgia State University, 2015. https://scholarworks.gsu.edu/cs_diss/98 This Dissertation is brought to you for free and open access by the Department of Computer Science at ScholarWorks @ Georgia State University. It has been accepted for inclusion in Computer Science Dissertations by an authorized administrator of ScholarWorks @ Georgia State University. For more information, please contact [email protected]. TITLE: EFFICIENT PARALLEL AND DISTRIBUTED ALGORITHMS FOR GIS POLYGON OVERLAY PROCESSING by SATISH PURI Under the Direction of Sushil K. Prasad, PhD ABSTRACT Polygon clipping is one of the complex operations in computational geometry. It is used in Geographic Information Systems (GIS), Computer Graphics, and VLSI CAD. For two polygons with n and m vertices, the number of intersections can be O(nm). In this disser- tation, we present the first output-sensitive CREW PRAM algorithm, which can perform polygon clipping in O(logn) time using O(n + k + k0) processors, where n is the number of vertices, k is the number of intersections, and k0 is the additional temporary vertices introduced due to the partitioning of polygons. The current best algorithm by Karinthi, Srinivas, and Almasi does not handle self-intersecting polygons, is not output-sensitive and must employ O(n2) processors to achieve O(logn) time. The second parallel algorithm is an output-sensitive PRAM algorithm based on Greiner-Hormann algorithm with O(logn) time complexity using O(n + k) processors. This is cost-optimal when compared to the time com- plexity of the best-known sequential plane-sweep based algorithm for polygon clipping. For self-intersecting polygons, the time complexity is O(((n+k)lognloglogn)=p) using p ≤ (n+k) processors. In addition to these parallel algorithms, the other main contributions in this dissertation are 1) multi-core and many-core implementation for clipping a pair of polygons and 2) MPI- GIS and Hadoop Topology Suite for distributed polygon overlay using a cluster of nodes. Nvidia GPU and CUDA are used for the many-core implementation. The MPI based system achieves 44X speedup while processing about 600K polygons in two real-world GIS shapefiles 1) USA Detailed Water Bodies and 2) USA Block Group Boundaries) within 20 seconds on a 32-node (8 cores each) IBM iDataPlex cluster interconnected by InfiniBand technology. INDEX WORDS: Polygon Clipping, Polygon Overlay, Parallel Algorithms, MPI, MapRe- duce, GIS. TITLE: EFFICIENT PARALLEL AND DISTRIBUTED ALGORITHMS FOR GIS POLYGON OVERLAY PROCESSING by SATISH PURI A Dissertation Submitted in Partial Fulfillment of the Requirements for the Degree of Doctor of Philosophy in the College of Arts and Sciences Georgia State University 2015 Copyright by Satish Puri 2015 TITLE: EFFICIENT PARALLEL AND DISTRIBUTED ALGORITHMS FOR GIS POLYGON OVERLAY PROCESSING by SATISH PURI Committee Chair: Sushil K. Prasad Committee: Ying Zhu Rafal Angryk Shamkant Navathe Electronic Version Approved: Office of Graduate Studies College of Arts and Sciences Georgia State University August 2015 iv DEDICATION This dissertation is dedicated to my loving and supportive wife, Priti Giri, who has been proud and supportive of my work and who has shared the many uncertainties, challenges, and sacrifices for completing this dissertation. I am truly thankful for having you in my life. This dissertation is also dedicated to my always encouraging parents, Kishor Puri and Piu Kumari Puri. Thank you for all the unconditional love, guidance, and support that you have always given me. v ACKNOWLEDGEMENTS This thesis is the result of research carried out over a period of many years. During this period, many people supported my work and helped me to bring it to a successful conclusion, and here I would like to express my gratitude. This dissertation work would not have been possible without the support of many people. I want to express my gratitude to my advisor Dr. Sushil K. Prasad for his support and invaluable guidance throughout my study. His knowledge, perceptiveness, and innovative ideas have guided me throughout my graduate study. I also present my words of gratitude to the other members of my thesis committee, Dr. Ying Zhu, Dr. Rafal Angryk, and Dr. Shamkant Navathe for their advice and their valuable time spent in reviewing the material. I also would like to extend my appreciation to my colleagues in DiMoS research group for all the support and ideas and to everyone who offered me academic advice and moral support throughout my graduate studies. vi TABLE OF CONTENTS ACKNOWLEDGEMENTS ::::::::::::::::: v LIST OF TABLES :::::::::::::::::::: x LIST OF FIGURES :::::::::::::::::::: xi LIST OF ABBREVIATIONS :::::::::::::::: xvi PART 1 INTRODUCTION ::::::::::::::: 1 1.1 Polygon Overlay Processing ....................... 1 1.2 Motivation .................................. 2 1.3 Proposed Research and Development Agenda ............ 3 1.3.1 Goals . 4 1.3.2 Overview of Main Results . 4 PART 2 A SURVEY ON PARALLEL SPATIAL OVERLAY AND JOIN OVER CLOUD AND GPU-ACCELERATED HY- BRID PLATFORMS :::::::::::::: 8 2.1 Definitions .................................. 8 2.2 Historical Background .......................... 8 2.3 Scientific Fundamentals .......................... 10 2.3.1 Cloud computing . 10 2.3.2 Windows Azure Platform . 11 2.3.3 Hadoop MapReduce . 11 2.4 Key Applications .............................. 12 2.4.1 Polygon Overlay Processing using Windows Azure . 12 2.4.2 Spatial Overlay and Join using Hadoop . 13 vii 2.4.3 Spatial Overlay and Join using GPUs . 15 2.4.4 Accelerated Hadoop for Spatial Join . 17 2.5 Future Directions ............................. 17 PART 3 OUTPUT-SENSITIVE PARALLEL ALGORITHM FOR POLY- GON CLIPPING ::::::::::::::: 18 3.1 Introduction ................................. 18 3.2 Background and Literature ....................... 21 3.2.1 The Computational Model . 21 3.2.2 Polygon clipping . 21 3.2.3 Segment Tree . 22 3.3 Algorithm for clipping two polygons . 23 3.3.1 Terminology . 23 3.3.2 Vatti's Polygon Clipping Algorithm . 23 3.3.3 Problem Definition . 25 3.3.4 Multi-Way Divide and Conquer Algorithm . 25 3.3.5 Complexity Analysis . 35 3.4 Multi-threaded Multiway Divide and Conquer Algorithm . 37 3.5 Experimental Setup and Implementation Results . 39 3.5.1 Synthetic Data . 39 3.5.2 Real Data . 42 PART 4 PARALLEL GREINER-HORMANN BASED POLYGON CLIPPING ALGORITHM WITH IMPROVED BOUNDS 44 4.1 Introduction ................................. 44 4.2 Background Concepts and Related Work . 47 4.2.1 NVIDIA Graphics Processing Unit . 47 4.2.2 Sequential Polygon Clipping of Arbitrary Polygons . 48 4.2.3 Differences between GH and Vatti's algorithm . 48 viii 4.2.4 Time Complexity . 49 4.3 Parallel Greiner-Hormann Polygon Clipping Algorithm and Imple- mentations .................................. 49 4.3.1 Terminology . 49 4.3.2 PRAM Polygon Clipping Algorithm . 53 4.3.3 Multi-threaded implementation design . 56 4.4 Experiment and Evaluation ....................... 57 4.4.1 Multi-threaded Parallel Greiner-Hormann Clipping Algorithm Evalu- ation . 58 PART 5 MPI-GIS : GIS POLYGONAL OVERLAY PROCESSING USING MPI ::::::::::::::::: 64 5.1 Introduction ................................. 64 5.2 Background and Literature ....................... 66 5.2.1 Data Types in GIS . 66 5.2.2 R-Tree . 66 5.2.3 Crayons system on Azure cloud . 67 5.2.4 Clipper Library . 67 5.3 Master-Slave architecture based system design . 68 5.3.1 Architecture with dynamic load balancing using R-tree . 68 5.3.2 Architecture with dynamic load balancing using sorting-based algo- rithm . 70 5.3.3 Our system with Static Load Balancing . 71 5.3.4 MPI related Issues . 72 5.3.5 Clipper Library Related Issues . 72 5.3.6 Timing Characteristics and Experiments . 73 5.4 Optimizations based on file and space partitioning . 77 5.4.1 Input Data Processing and Organization . 78 5.4.2 Spatial Partitioning . 79 ix 5.4.3 MPI Communication . 81 5.4.4 MPI-GIS Overlay Processing System Evaluation . 82 5.4.5 Comparison with earlier work . 84 PART 6 MAPREDUCE ALGORITHMS FOR GIS POLYGONAL OVERLAY PROCESSING :::::::::::: 86 6.1 Introduction ................................. 86 6.2 Background and Literature ....................... 88 6.2.1 Map Overlay . 88 6.2.2 R-tree Data Structure . 89 6.2.3 MapReduce Framework . 90 6.2.4 Overlay and Miscellaneous Approaches . 91 6.3 Map Reduce Algorithms ......................... 92 6.3.1 Problem Definition . 92 6.3.2 Algorithm With Map and Reduce Phases . 93 6.3.3 Overlay Algorithm with Chained Map Reduce Phases . 95 6.3.4 Overlay Algorithm with Map Phase Only using DistributedCache 96 6.3.5 Grid-based Overlay Algorithm with a single Map and Reduce phase 99 6.4 Experimental Setup ............................ 100 PART 7 CONCLUSIONS :::::::::::::::: 107 REFERENCES ::::::::::::::::::::: 109 x LIST OF TABLES Table 3.1 Example shows the merging of sublists Al and Ar in an internal node of Cole's mergesort tree in a time-stepped fashion. Al = f5,6,7,9g and Ar = f1,2,3,4g. Also note the inversions marked for reporting by our extended Cole's merging algorithm. 30 Table 3.2 Scanbeam table showing the edges and labeled vertices of output poly- gons after processing intersections, start/end points for all scanbeams. 32 Table 3.3 Description of real-world datasets. 41 Table 4.1 Execution timings in ms for Parallel GH using simulated datasets with varying number of vertices (n) in S. C has 10 vertices (m). There are O(nm) intersections. ......................... 59 Table 4.2 Execution timing in ms for GPC, CUDA-GH and Parallel GH using 8 CPU cores. For Classic+Ocean, to measure GPC time, two threads are used. First thread clips Classic and second thread clips Ocean.
Recommended publications
  • 3 Polygons in Architectural Design
    ARTS IMPACT LESSON PLAN Vis ual Arts and Math Infused Lesson Lesson Three: Polygons in Architectural Design Author: Meredith Essex Grade Level: Fifth Enduring Understanding Polygons are classified according to properties and can be combined in architectural designs. Lesson Description (Use for family communication and displaying student art) Students praCtiCe drawing a variety of geometriC figures using math/arChitectural drawing tools. Students then observe, name, and Classify polygons seen in urban photos and arChitectural plans. Students design a bridge, tower, or building combining three different kinds of triangles and three different kinds of quadrilaterals. Pencil drawings are traced in pen, and arChiteCtural details/ patterns are added. Last, students reflect on and Classify 2-dimensional figures seen in their arChiteCtural designs. Learning Targets and Assessment Criteria Target: Classifies 2-dimensional figures. Criteria: Identifies and desCribes polygon figures, and properties of their sides, and angles seen in art. Target: Combines polygons in an arChiteCtural design. Criteria: Designs a structure made of straight sided shapes that include three kinds of triangles and three kinds of quadrilaterals. Target: Refines design. Criteria: TraCes over drawing in pen, adds arChiteCtural details and patterns. Target: Uses Craftsmanship. Criteria: Uses grid, rulers, and templates in drawing design. Vocabulary Materials Learning Standards Arts Infused: Museum Artworks or Performance: WA Arts State Grade Level Expectations GeometriC shape
    [Show full text]
  • Geometry Honors Mid-Year Exam Terms and Definitions Blue Class 1
    Geometry Honors Mid-Year Exam Terms and Definitions Blue Class 1. Acute angle: Angle whose measure is greater than 0° and less than 90°. 2. Adjacent angles: Two angles that have a common side and a common vertex. 3. Alternate interior angles: A pair of angles in the interior of a figure formed by two lines and a transversal, lying on alternate sides of the transversal and having different vertices. 4. Altitude: Perpendicular segment from a vertex of a triangle to the opposite side or the line containing the opposite side. 5. Angle: A figure formed by two rays with a common endpoint. 6. Angle bisector: Ray that divides an angle into two congruent angles and bisects the angle. 7. Base Angles: Two angles not included in the legs of an isosceles triangle. 8. Bisect: To divide a segment or an angle into two congruent parts. 9. Coincide: To lie on top of the other. A line can coincide another line. 10. Collinear: Lying on the same line. 11. Complimentary: Two angle’s whose sum is 90°. 12. Concave Polygon: Polygon in which at least one interior angle measures more than 180° (at least one segment connecting two vertices is outside the polygon). 13. Conclusion: A result of summary of all the work that has been completed. The part of a conditional statement that occurs after the word “then”. 14. Congruent parts: Two or more parts that only have the same measure. In CPCTC, the parts of the congruent triangles are congruent. 15. Congruent triangles: Two triangles are congruent if and only if all of their corresponding parts are congruent.
    [Show full text]
  • Chapter 6: Things to Know
    MAT 222 Chapter 6: Things To Know Section 6.1 Polygons Objectives Vocabulary 1. Define and Name Polygons. • polygon 2. Find the Sum of the Measures of the Interior • vertex Angles of a Quadrilateral. • n-gon • concave polygon • convex polygon • quadrilateral • regular polygon • diagonal • equilateral polygon • equiangular polygon Polygon Definition A figure is a polygon if it meets the following three conditions: 1. 2. 3. The endpoints of the sides of a polygon are called the ________________________ (Singular form: _______________ ). Polygons must be named by listing all of the vertices in order. Write two different ways of naming the polygon to the right below: _______________________ , _______________________ Example Identifying Polygons Identify the polygons. If not a polygon, state why. a. b. c. d. e. MAT 222 Chapter 6 Things To Know Number of Sides Name of Polygon 3 4 5 6 7 8 9 10 12 n Definitions In general, a polygon with n sides is called an __________________________. A polygon is __________________________ if no line containing a side contains a point within the interior of the polygon. Otherwise, a polygon is _________________________________. Example Identifying Convex and Concave Polygons. Identify the polygons. If not a polygon, state why. a. b. c. Definition An ________________________________________ is a polygon with all sides congruent. An ________________________________________ is a polygon with all angles congruent. A _________________________________________ is a polygon that is both equilateral and equiangular. MAT 222 Chapter 6 Things To Know Example Identifying Regular Polygons Determine if each polygon is regular or not. Explain your reasoning. a. b. c. Definition A segment joining to nonconsecutive vertices of a convex polygon is called a _______________________________ of the polygon.
    [Show full text]
  • The Graphics Gems Series a Collection of Practical Techniques for the Computer Graphics Programmer
    GRAPHICS GEMS IV This is a volume in The Graphics Gems Series A Collection of Practical Techniques for the Computer Graphics Programmer Series Editor Andrew Glassner Xerox Palo Alto Research Center Palo Alto, California GRAPHICS GEMS IV Edited by Paul S. Heckbert Computer Science Department Carnegie Mellon University Pittsburgh, Pennsylvania AP PROFESSIONAL Boston San Diego New York London Sydney Tokyo Toronto This book is printed on acid-free paper © Copyright © 1994 by Academic Press, Inc. All rights reserved No part of this publication may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopy, recording, or any information storage and retrieval system, without permission in writing from the publisher. AP PROFESSIONAL 955 Massachusetts Avenue, Cambridge, MA 02139 An imprint of ACADEMIC PRESS, INC. A Division of HARCOURT BRACE & COMPANY United Kingdom Edition published by ACADEMIC PRESS LIMITED 24-28 Oval Road, London NW1 7DX Library of Congress Cataloging-in-Publication Data Graphics gems IV / edited by Paul S. Heckbert. p. cm. - (The Graphics gems series) Includes bibliographical references and index. ISBN 0-12-336156-7 (with Macintosh disk). —ISBN 0-12-336155-9 (with IBM disk) 1. Computer graphics. I. Heckbert, Paul S., 1958— II. Title: Graphics gems 4. III. Title: Graphics gems four. IV. Series. T385.G6974 1994 006.6'6-dc20 93-46995 CIP Printed in the United States of America 94 95 96 97 MV 9 8 7 6 5 4 3 2 1 Contents Author Index ix Foreword by Andrew Glassner xi Preface xv About the Cover xvii I. Polygons and Polyhedra 1 1.1.
    [Show full text]
  • Classifying Polygons
    Elementary Classifying Polygons Common Core: Understand that attributes belonging to a category of two-dimensional figures also belong to all subcategories of that category. (5.G.B.3) Classify two-dimensional figures in a hierarchy based on properties. (5.G.B.4) Objectives: 1) Students will learn vocabulary related to polygons. 2) Students will use that vocabulary to classify polygons. Materials: Classifying Polygons worksheet Internet access (for looking up definitions) Procedure: 1) Students search the Internet for the definitions and record them on the Classifying Polygons worksheet. 2) Students share and compare their definitions since they may find alternative definitions. 3) Introduce or review prefixes and suffixes. 4) Students fill in the Prefixes section, and share answers. 5) Students classify the polygons found on page 2 of the worksheet. 6) With time remaining, have students explore some extension questions: *Can a polygon be regular and concave? Show or explain your reasoning. *Can a triangle be concave? Show or explain your reasoning. *Could we simplify the definition of regular to just… All sides congruent? or All angles congruent? Show or explain your reasoning. *Can you construct a pentagon with 5 congruent angles but is not considered regular? Show or explain your reasoning. *Can you construct a pentagon with 5 congruent sides but is not considered regular? Show or explain your reasoning. Notes to Teacher: I have my students search for these answers and definitions online, however I am sure that some math textbook glossaries
    [Show full text]
  • PESIT Bangalore South Campus Hosur Road, 1Km Before Electronic City, Bengaluru -100 Department of Computer Science and Engineering
    USN 1 P E PESIT Bangalore South Campus Hosur road, 1km before Electronic City, Bengaluru -100 Department of Computer Science and Engineering INTERNAL ASSESSMENT TEST – 2 Solution Date : 03-04-18 Max Marks: 40 Subject & Code : Computer Graphics and Visualization (15CS62) Section: VI CSE A,B,C Name of faculty: Dr.Sarasvathi V / Ms. Evlin Time: 08.30 - 10.00AM Note: Answer FIVE full Questions 1 Explain the scan line polygon fill algorithm with necessary diagram. 8 Determine the intersection positions of the boundaries. For each scanline that crosses the polygon, edge-intersection are sorted from left to right, then pixel positions, b/w including each intersection pair is filled. Solving pair of simultaneous linear equations. Whenever a scan line passes through a vertex, it intersects two polygon edges at that point. Scan line y’- even number of edges – two pair correctly identify interior pixels Scanline y- five edges. Here we must count vertex intersection as one point. For scanline y, the two edges sharing an intersection vertex are on opposite sides of the scan line.For scan line y’, the two intersecting edges are both above the scan line. vertex that has adjoining edges on opposite sides of an intersecting scan line should be counted as just one. Trace around clockwise or counter clockwise and observing the relative changes in y values. VI CSE A, B &C USN 1 P E PESIT Bangalore South Campus Hosur road, 1km before Electronic City, Bengaluru -100 Department of Computer Science and Engineering Adjustment to vertex intersection count shorten some polygon edges to split those vertices that should be counted as one intersection.
    [Show full text]
  • Unit 8 – Geometry QUADRILATERALS
    Unit 8 – Geometry QUADRILATERALS NAME _____________________________ Period ____________ 1 Geometry Chapter 8 – Quadrilaterals ***In order to get full credit for your assignments they must me done on time and you must SHOW ALL WORK. *** 1.____ (8-1) Angles of Polygons – Day 1- Pages 407-408 13-16, 20-22, 27-32, 35-43 odd 2. ____ (8-2) Parallelograms – Day 1- Pages 415 16-31, 37-39 3. ____ (8-3) Test for Parallelograms – Day 1- Pages 421-422 13-23 odd, 25 -31 odd 4. ____ (8-4) Rectangles – Day 1- Pages 428-429 10, 11, 13, 16-26, 30-32, 36 5. ____ (8-5) Rhombi and Squares – Day 1 – Pages 434-435 12-19, 20, 22, 26 - 31 6.____ (8-6) Trapezoids – Day 1– Pages 10, 13-19, 22-25 7. _____ Chapter 8 Review 2 (Reminder!) A little background… Polygon is the generic term for _____________________________________________. Depending on the number, the first part of the word - “Poly” - is replaced by a prefix. The prefix used is from Greek. The Greek term for 5 is Penta, so a 5-sided figure is called a _____________. We can draw figures with as many sides as we want, but most of us don’t remember all that Greek, so when the number is over 12, or if we are talking about a general polygon, many mathematicians call the figure an “n-gon.” So a figure with 46 sides would be called a “46-gon.” Vocabulary – Types of Polygons Regular - ______________________________________________________________ _____________________________________________________________________ Irregular – _____________________________________________________________ _____________________________________________________________________ Equiangular - ___________________________________________________________ Equilateral - ____________________________________________________________ Convex - a straight line drawn through a convex polygon crosses at most two sides .
    [Show full text]
  • GPU Rasterization for Real-Time Spatial Aggregation Over Arbitrary Polygons
    GPU Rasterization for Real-Time Spatial Aggregation over Arbitrary Polygons Eleni Tzirita Zacharatou∗‡, Harish Doraiswamy∗†, Anastasia Ailamakiz, Claudio´ T. Silvay, Juliana Freirey z Ecole´ Polytechnique Fed´ erale´ de Lausanne y New York University feleni.tziritazacharatou, anastasia.ailamakig@epfl.ch fharishd, csilva, [email protected] ABSTRACT Not surprisingly, the problem of providing efficient support for Visual exploration of spatial data relies heavily on spatial aggre- visualization tools and interactive queries over large data has at- gation queries that slice and summarize the data over different re- tracted substantial attention recently, predominantly for relational gions. These queries comprise computationally-intensive point-in- data [1, 6, 27, 30, 31, 33, 35, 56, 66]. While methods have also been polygon tests that associate data points to polygonal regions, chal- proposed for speeding up selection queries over spatio-temporal lenging the responsiveness of visualization tools. This challenge is data [17, 70], these do not support interactive rates for aggregate compounded by the sheer amounts of data, requiring a large num- queries, that slice and summarize the data in different ways, as re- ber of such tests to be performed. Traditional pre-aggregation ap- quired by visual analytics systems [4, 20, 44, 51, 58, 67]. proaches are unsuitable in this setting since they fix the query con- Motivating Application: Visual Exploration of Urban Data Sets. straints and support only rectangular regions. On the other hand, In an effort to enable urban planners and architects to make data- query constraints are defined interactively in visual analytics sys- driven decisions, we developed Urbane, a visualization framework tems, and polygons can be of arbitrary shapes.
    [Show full text]
  • Representing Whole Slide Cancer Image Features with Hilbert Curves Authors
    Representing Whole Slide Cancer Image Features with Hilbert Curves Authors: Erich Bremer, Jonas Almeida, and Joel Saltz Erich Bremer (corresponding author) [email protected] Stony Brook University Biomedical Informatics Jonas Almeida [email protected] National Cancer Institute Division of Cancer Epidemiology & Genetics Joel Saltz [email protected] Stony Brook University Biomedical Informatics Abstract Regions of Interest (ROI) contain morphological features in pathology whole slide images (WSI) are [1] delimited with polygons .​ These polygons are often represented in either a textual notation (with the ​ array of edges) or in a binary mask form. Textual notations have an advantage of human readability and portability, whereas, binary mask representations are more useful as the input and output of feature-extraction pipelines that employ deep learning methodologies. For any given whole slide image, more than a million cellular features can be segmented generating a corresponding number of polygons. The corpus of these segmentations for all processed whole slide images creates various challenges for filtering specific areas of data for use in interactive real-time and multi-scale displays and analysis. Simple range queries of image locations do not scale and, instead, spatial indexing schemes are required. In this paper we propose using Hilbert Curves simultaneously for spatial indexing and as a polygonal ROI [2] representation. This is achieved by using a series of Hilbert Curves ​ creating an efficient and inherently ​ spatially-indexed machine-usable form. The distinctive property of Hilbert curves that enables both mask and polygon delimitation of ROIs is that the elements of the vector extracted ro describe morphological features maintain their relative positions for different scales of the same image.
    [Show full text]
  • Solutions Key 6 Polygons and Quadrilaterals ARE YOU READY? PAGE 377 19
    CHAPTER Solutions Key 6 Polygons and Quadrilaterals ARE YOU READY? PAGE 377 19. F (counterexample: with side lengths 5, 6, 10); if a triangle is an acute triangle, then it is a scalene 1. F 2. B triangle; F (counterexample: any equilateral 3. A 4. D triangle). 5. E 6-1 PROPERTIES AND ATTRIBUTES OF 6. Use Sum Thm. POLYGONS, PAGES 382–388 x ° + 42° + 32° = 180° x ° = 180° - 42° - 32° CHECK IT OUT! x ° = 106° 1a. not a polygon b. polygon, nonagon 7. Use Sum Thm. x ° + 53° + 90° = 180° c. not a polygon x ° = 180° - 53° - 90° 2a. regular, convex b. irregular, concave x ° = 37° 3a. Think: Use Polygon ∠ Sum Thm. 8. Use Sum Thm. (n - 2)180° x ° + x ° + 32° = 180° (15 - 2)180° 2 x ° = 180° - 34° 2340° 2 x ° = 146° b. (10 - 2)180° = 1440° x ° = 73° m∠1 + m∠2 + … + m∠10 = 1440° 9. Use Sum Thm. 10m∠1 = 1440° 2 x ° + x ° + 57° = 180° m∠1 = 144° 3 x ° = 180° - 57° 4a. Think: Use Polygon Ext. ∠ Sum Thm. 3 x ° = 123° m∠1 + m∠2 + … + m∠12 = 360° x ° = 41° 12m∠1 = 360° 10. By Lin. Pair Thm., 11. By Alt. Ext. Thm., m∠1 = 30° m∠1 + 56 = 180 m∠2 = 101° b. 4r + 7r + 5r + 8r = 360 m∠1 = 124° By Lin. Pair Thm., 24r = 360 By Vert. Thm., m∠1 + m∠2 = 180 r = 15 m∠2 = 56° m∠1 + 101 = 180 By Corr. Post., m∠1 = 79° 5. By Polygon Ext. ∠ Sum Thm., sum of ext. ∠ m∠3 = m∠1 = 124° Since ⊥ m, m n measures is 360°.
    [Show full text]
  • Angles of Polygons
    5.3 Angles of Polygons How can you fi nd a formula for the sum of STATES the angle measures of any polygon? STANDARDS MA.8.G.2.3 1 ACTIVITY: The Sum of the Angle Measures of a Polygon Work with a partner. Find the sum of the angle measures of each polygon with n sides. a. Sample: Quadrilateral: n = 4 A Draw a line that divides the quadrilateral into two triangles. B Because the sum of the angle F measures of each triangle is 180°, the sum of the angle measures of the quadrilateral is 360°. C D E (A + B + C ) + (D + E + F ) = 180° + 180° = 360° b. Pentagon: n = 5 c. Hexagon: n = 6 d. Heptagon: n = 7 e. Octagon: n = 8 196 Chapter 5 Angles and Similarity 2 ACTIVITY: The Sum of the Angle Measures of a Polygon Work with a partner. a. Use the table to organize your results from Activity 1. Sides, n 345678 Angle Sum, S b. Plot the points in the table in a S coordinate plane. 1080 900 c. Write a linear equation that relates S to n. 720 d. What is the domain of the function? 540 Explain your reasoning. 360 180 e. Use the function to fi nd the sum of 1 2 3 4 5 6 7 8 n the angle measures of a polygon −180 with 10 sides. −360 3 ACTIVITY: The Sum of the Angle Measures of a Polygon Work with a partner. A polygon is convex if the line segment connecting any two vertices lies entirely inside Convex the polygon.
    [Show full text]
  • Efficient Clipping of Arbitrary Polygons
    Efficient clipping of arbitrary polygons Günther Greiner Kai Hormann · Abstract Citation Info Clipping 2D polygons is one of the basic routines in computer graphics. In rendering Journal complex 3D images it has to be done several thousand times. Efficient algorithms are ACM Transactions on Graphics therefore very important. We present such an efficient algorithm for clipping arbitrary Volume 2D polygons. The algorithm can handle arbitrary closed polygons, specifically where 17(2), April 1998 the clip and subject polygons may self-intersect. The algorithm is simple and faster Pages than Vatti’s algorithm [11], which was designed for the general case as well. Simple 71–83 modifications allow determination of union and set-theoretic difference of two arbitrary polygons. 1 Introduction Clipping 2D polygons is a fundamental operation in image synthesis. For example, it can be used to render 3D images through hidden surface removal [10], or to distribute the objects of a scene to appropriate processors in a multiprocessor ray tracing system. Several very efficient algorithms are available for special cases: Sutherland and Hodgeman’s algorithm [10] is limited to convex clip polygons. That of Liang and Barsky [5] require that the clip polygon be rectangular. More general algorithms were presented in [1, 6, 8, 9, 13]. They allow concave polygons with holes, but they do not permit self-intersections, which may occur, e.g., by projecting warped quadrilaterals into the plane. For the general case of arbitrary polygons (i.e., neither the clip nor the subject polygon is convex, both polygons may have self-intersections), little is known. To our knowledge, only the Weiler algorithm [12] and Vatti’s algorithm [11] can handle the general case in reasonable time.
    [Show full text]