COMPUTATIONAL GEOMETRY INTRODUCTION AND CONVEX HULLS ZAHRA NILFOROUSHAN ELECTRICAL & COMPUTER ENGINEERING DEPARTMENT, FACULTY OF ENGINEERING, KHARAZMI.

Slides:



Advertisements
Similar presentations
CSE 4101/5101 Prof. Andy Mirzaian Computational Geometry.
Advertisements

Efficient access to TIN Regular square grid TIN Efficient access to TIN Let q := (x, y) be a point. We want to estimate an elevation at a point q: 1. should.
Parallel Algorithms in Computational Geometry
 Distance Problems: › Post Office Problem › Nearest Neighbors and Closest Pair › Largest Empty and Smallest Enclosing Circle  Sub graphs of Delaunay.
algorithms and data structures
Convex Hull obstacle start end Convex Hull Convex Hull
CS16: Introduction to Data Structures & Algorithms
C o m p u t i n g C O N V E X H U L L S by Kok Lim Low 10 Nov 1998 COMP Presentation.
UNC Chapel Hill M. C. Lin Polygon Triangulation Chapter 3 of the Textbook Driving Applications –Guarding an Art Gallery –3D Morphing.
The Divide-and-Conquer Strategy
Convex Hulls in Two Dimensions Definitions Basic algorithms Gift Wrapping (algorithm of Jarvis ) Graham scan Divide and conquer Convex Hull for line intersections.
CS4413 Divide-and-Conquer
Ruslana Mys Delaunay Triangulation Delaunay Triangulation (DT)  Introduction  Delaunay-Voronoi based method  Algorithms to compute the convex hull 
Introduction to Algorithms Rabie A. Ramadan rabieramadan.org 6 Ack : Carola Wenk nad Dr. Thomas Ottmann tutorials.
By Groysman Maxim. Let S be a set of sites in the plane. Each point in the plane is influenced by each point of S. We would like to decompose the plane.
Computational Geometry
Convex Hull Problem Presented By Erion Lin. Outline Convex Hull Problem Voronoi Diagram Fermat Point.
1 Today’s Material Computational Geometry Problems –Closest Pair Problem –Convex Hull Jarvis’s March, Graham’s scan –Farthest Point Problem.
5/17/2015 1:32 AMConvex Hull1 obstacle start end.
What does that mean? To get the taste we will just look only at some sample problems... [Adapted from S.Suri]
DEpthLAUNAY1 DEpthLAUNAY Manuel Abellanas Alfredo de las Vegas Facultad de Informática - UPM.
1st Meeting Industrial Geometry Computational Geometry ---- Some Basic Structures 1st IG-Meeting.
Computational Geometry -- Voronoi Diagram
Convex Hulls Computational Geometry, WS 2006/07 Lecture 2 Prof. Dr. Thomas Ottmann Algorithmen & Datenstrukturen, Institut für Informatik Fakultät für.
COSC 6114 Prof. Andy Mirzaian Computational Geometry.
Vertices and Fragments I CS4395: Computer Graphics 1 Mohan Sridharan Based on slides created by Edward Angel.
Lection 1: Introduction Computational Geometry Prof.Dr.Th.Ottmann 1 History: Proof-based, algorithmic, axiomatic geometry, computational geometry today.
UMass Lowell Computer Science Advanced Algorithms Computational Geometry Prof. Karen Daniels Spring, 2004 Lecture 2 Chapter 2: Polygon Partitioning.
Randomized Planning for Short Inspection Paths Tim Danner Lydia E. Kavraki Department of Computer Science Rice University.
OBBTree: A Hierarchical Structure for Rapid Interference Detection Gottschalk, M. C. Lin and D. ManochaM. C. LinD. Manocha Department of Computer Science,
UNC Chapel Hill M. C. Lin Overview of Last Lecture About Final Course Project –presentation, demo, write-up More geometric data structures –Binary Space.
Convex Hull Computation ● Applications of Convex Hull Computation ● Definitions ● Basic Math Functions ● Algorithms Algorithm Speed Discovered By Brute.
Quadtrees and Mesh Generation Student Lecture in course MATH/CSC 870 Philipp Richter Thursday, April 19 th, 2007.
Area, buffer, description Area of a polygon, center of mass, buffer of a polygon / polygonal line, and descriptive statistics.
Lection 1: Introduction Computational Geometry Prof.Dr.Th.Ottmann 1 History: Proof-based, algorithmic, axiomatic geometry, computational geometry today.
1 What is Computational Geometry Ref: Godfried T. Toussaint.
Advanced Algorithm Design and Analysis (Lecture 9) SW5 fall 2004 Simonas Šaltenis E1-215b
CSE53111 Computational Geometry TOPICS q Preliminaries q Point in a Polygon q Polygon Construction q Convex Hulls Further Reading.
Computational Geometry Convex Hulls Robust Geometric Primitives Degeneracy and Stability Nick Pilkington.
CS 450: Computer Graphics REVIEW: OVERVIEW OF POLYGONS
ADA: 14. Intro to CG1 Objective o give a non-technical overview of Computational geometry, concentrating on its main application areas Algorithm.
Convex Hull. What is the Convex Hull? Imagine a set of points on a board with a nail hammered into each point. Now stretch a rubber band over all the.
Computational Geometry Course Summary (First Half) Spring 2008 Pay special attention to: algorithm details (able to explain correctness and carry out a.
C o m p u t i n g C O N V E X H U L L S. Presentation Outline 2D Convex Hulls –Definitions and Properties –Approaches: Brute Force Gift Wrapping QuickHull.
Fundamental Data Structures and Algorithms Klaus Sutner April 27, 2004 Computational Geometry.
Fundamental Data Structures and Algorithms Margaret Reid-Miller 27 April 2004 Computational Geometry.
Voronoi Diagram (Supplemental)
Convex Hull. University of Manchester biologists used lasers to measure the minimum amount of skin required to wrap around the skeletons of modern-day.
Institute of Information Science Academia Sinica 1 1 Introduction to Geomtric Computing D. T. Lee Institute of Information Science Academia Sinica October.
1 11. Polygons Polygons 2D polygons ( 다각형 ) –Polygon sides are all straight lines lying in the same plane 3D polyhedra ( 다면체 )  chap. 12 –Polyhedra.
Geometric Description
Lecture 7 Jianjun Hu Department of Computer Science and Engineering University of South Carolina CSCE350 Algorithms and Data Structure.
COMPUTATIONAL GEOMETRY AND MATRIX MULTIPLICATION Mohammed Zeeshan Farooqui Minhaj Uddin.
Lecture 15 Computational Geometry Geometry sweeping Geometric preliminaries Some basics geometry algorithms.
9/8/10CS 6463: AT Computational Geometry1 CS 6463: AT Computational Geometry Fall 2010 Triangulations and Guarding Art Galleries Carola Wenk.
Honors Track: Competitive Programming & Problem Solving Seminar Topics Kevin Verbeek.
3. Polygon Triangulation
Introduction to Spatial Computing CSE 555
Convex Hull R.L. Graham’s Algorithm Computer Graphics.
Convex Hull.
Convex Hull obstacle start end 11/21/2018 4:05 AM Convex Hull
Computational Geometry (35/33)
Convex Sets & Concave Sets
Computational Geometry for the Tablet PC
Convex Hull 1/1/ :28 AM Convex Hull obstacle start end.
Convex Hull obstacle start end 4/30/2019 5:21 PM Convex Hull
Introduction to Algorithms
Computational Geometry Algorithms
Computational Geometry
Algorithm Course Algorithms Lecture 3 Sorting Algorithm-1
Presentation transcript:

COMPUTATIONAL GEOMETRY INTRODUCTION AND CONVEX HULLS ZAHRA NILFOROUSHAN ELECTRICAL & COMPUTER ENGINEERING DEPARTMENT, FACULTY OF ENGINEERING, KHARAZMI UNIVERSITY, FALL 2016

COMPUTATIONAL GEOMETRY 8th Winter School On CG.,Feb , Study of algorithms, data structures and computational complexity of computational problems in geometry. 2

LANDSCAPE OF CG Applications: Computer Graphics Robotics Vision GIS CAD / manufacturing VLSI (chip layout) Pattern Recognition Optimization Transportation Architecture Statistics Molecular modelling... Algorithmic Tools: general incremental divide-&-conquer space sweep topological sweep prune and search random sampling locus approach multidimensional search dynamization... Data Structures: general interval trees range trees segment trees priority search trees K-d trees fractional cascading persistent D.S.... 8th Winter School On CG.,Feb , Implementation Issues : Degeneracy (symbolic perturbation) Robustness (inexact arithmetic)...

Polygon Triangulation (Guarding an Art Gallery) Linear Programming (Manufacturing with Molds) CG OVERVIEW 8th Winter School On CG.,Feb ,

Orthogonal Range Searching (Querying a Database) Point Location (Knowing Where You Are) CG OVERVIEW 8th Winter School On CG.,Feb ,

Voronoi Diagrams (The Post Office Problem) Arrangements and Duality (Super sampling in Ray Tracing) CG OVERVIEW 8th Winter School On CG.,Feb ,

Delaunay Triangulations (Height Interpolation) More Geometric Data Structures (Windowing) CG OVERVIEW 8th Winter School On CG.,Feb ,

Binary Space Partitions (The Painter’s Algorithm) Robot Motion Planning (Getting Where You Want to Be) CG OVERVIEW 8th Winter School On CG.,Feb ,

Quad trees (Non-Uniform Mesh Generation) Visibility Graphs (Finding the Shortest Route) CG OVERVIEW 8th Winter School On CG.,Feb ,

Hidden Surface Removal (Multi-window user systems) VLSI Design (Checking no bugs in design) D A B C E D A B C E F F CG OVERVIEW 8th Winter School On CG.,Feb ,

Digitizing 3-Dimensional Objects (Scan the objects) CG OVERVIEW 8th Winter School On CG.,Feb ,

Bio Geometry (Protein folding) CG OVERVIEW 8th Winter School On CG.,Feb ,

Medial Axis & Skeleton CG OVERVIEW 8th Winter School On CG.,Feb ,

Computational Geometry Algorithms Library C++ library of efficient data structures and algorithms for many computational geometry problems supports round off-free exact computations 8th Winter School On CG.,Feb ,

CG HISTORY 8th Winter School On CG.,Feb ,

(The Canadian Conference on Computational Geometry ) (The European Workshop on Computational Geometry) (Laboratory of Algorithms and Computational Geometry (Room 213), Department of Mathematics and Computer Science, Amirkabir University of Technology, Tehran, Iran.) USEFUL LINKS 8th Winter School On CG.,Feb ,

CONVEX HULLS BASIC NOTIONS CLASSIC ALGORITHMS APPLICATIONS 8th Winter School On CG.,Feb ,

CONVEXITY 8th Winter School On CG.,Feb ,

CONVEX HULL 8th Winter School On CG.,Feb ,

CONVEX HULL Imagine that the points are nails sticking out of the plane, take an elastic rubber band, hold it around the nails, and let it go. It will snap around the nails, minimizing its length. The area enclosed by the rubber band is the convex hull of P. 8th Winter School On CG.,Feb ,

CONVEX HULL PROBLEM 8th Winter School On CG.,Feb , The output has at least 4 and at most 2n coordinates, so it has size between O(1) and O(n) 21

8th Winter School On CG.,Feb , BRUTE FORCE ALGORITHM 22

8th Winter School On CG.,Feb , BRUTE FORCE ALGORITHM 23

INCREMENTAL ALGORITHM 8th Winter School On CG.,Feb ,

INCREMENTAL ALGORITHM 8th Winter School On CG.,Feb ,

INCREMENTAL ALGORITHM 8th Winter School On CG.,Feb ,

INCREMENTAL ALGORITHM 8th Winter School On CG.,Feb ,

INCREMENTAL ALGORITHM 8th Winter School On CG.,Feb ,

INCREMENTAL ALGORITHM 8th Winter School On CG.,Feb ,

INCREMENTAL ALGORITHM 8th Winter School On CG.,Feb ,

INCREMENTAL ALGORITHM 8th Winter School On CG.,Feb ,

INCREMENTAL ALGORITHM 8th Winter School On CG.,Feb ,

INCREMENTAL ALGORITHM 8th Winter School On CG.,Feb ,

INCREMENTAL ALGORITHM 8th Winter School On CG.,Feb ,

INCREMENTAL ALGORITHM 8th Winter School On CG.,Feb ,

INCREMENTAL ALGORITHM 8th Winter School On CG.,Feb ,

INCREMENTAL ALGORITHM 8th Winter School On CG.,Feb ,

INCREMENTAL ALGORITHM 8th Winter School On CG.,Feb ,

INCREMENTAL ALGORITHM 8th Winter School On CG.,Feb ,

GIFT-WRAPPING ALGORITHM 1.Start at lowest point 2.Rotate the line until we hit another point All other points will lie on one side of this line Look for the point that gives you the largest angle with the current line 3.Repeat 4.You’re done when you get back to the starting point 8th Winter School On CG.,Feb ,

Start with the lowest point (anchor point) 8th Winter School On CG.,Feb , GRAHAM SCAN 41

Now, form a closed simple path traversing the points by increasing angle with respect to the anchor point 8th Winter School On CG.,Feb , GRAHAM SCAN 42

GRAHAM SCAN  Remove points at concave angles (one at a time, backtracking one step when any point is removed).  Continue until you get all the way around. 8th Winter School On CG.,Feb ,

Stack S p7p6p5p4p3p2p1p7p6p5p4p3p2p1 p1p1 p2p2 p3p3 p4p4 p5p5 p6p6 p7p7 pipi pipi GRAHAM SCAN: A SNAPSHOT 8th Winter School On CG.,Feb ,

DIVIDE & CONQUER Preprocessing: sort the points by x- coordinate Divide the set of points into two sets A and B: A contains the left  n/2  points, B contains the right  n/2  points Recursively compute the convex hull of A Recursively compute the convex hull of B Merge the two convex hulls A B 8th Winter School On CG.,Feb ,

QUICK HULL ALGORITHM Form initial quadrilateral Q, with left, right, top, bottom. Discard points inside Q. 8th Winter School On CG.,Feb ,

QUICK HULL ALGORITHM For an edge ab, find the farthest outside point c. Discard points inside triangle abc. Split remaining points into “outside” points for ac and bc. 8th Winter School On CG.,Feb ,

QUICK HULL ALGORITHM 8th Winter School On CG.,Feb ,

SUMMARY 8th Winter School On CG.,Feb ,

Motion planning Find an optimal route that avoids obstacles for a robot obstacle start end 8th Winter School On CG.,Feb , SOME APPLICATIONS 50

8th Winter School On CG.,Feb , Bounding Box Obtain a closer bounding box in computer graphics Bounding boxes are used to an approximate location of an object in question and as a very simple descriptor of its shape. Convex hull can be a candidate for replacement of bounding boxes in these situations. SOME APPLICATIONS 51

8th Winter School On CG.,Feb , SOME APPLICATIONS Visual Pattern Matching pattern matching is the act of checking a given sequence of tokens for the presence of the constituents of some pattern. In contrast to pattern recognition, the match usually has to be exact. Compare two objects using their convex hulls 52

8th Winter School On CG.,Feb , SOME APPLICATIONS Diameter Computation Find the diameter of a set of points, which is the pair of points a maximum distance apart The diameter will always be the distance between two points on the convex hull pjpj pipi CH(S) 53

8th Winter School On CG.,Feb , SOME APPLICATIONS A B A B Linear Separability Separate two set of points by a line A & B are linearly separable  CH(A) & CH(B) have disjoint interiors 54

8th Winter School On CG.,Feb , SOME APPLICATIONS Smallest enclosing circle Minimax Facility Location Problem Determine location X where a facility should be located so as to minimize the distance from X to its furthest customer 55

8th Winter School On CG.,Feb , SOME APPLICATIONS Convex Layers Onion Layers of a set of points Registration and verification stages of two onions layers 56

8th Winter School On CG.,Feb , SOME APPLICATIONS Shape Morph Find “an average” between two objects Feature matching! Smoothly turn a concave shape into a convex one before blending, and then the other way around when the blend is complete. 57

8th Winter School On CG.,Feb , SOME APPLICATIONS 58

8th Winter School On CG.,Feb , SOME APPLICATIONS 59

THANKS FOR YOUR ATTENTION 8th Winter School On CG.,Feb ,