Fat Curves and Representation of Planar Figures L.M. Mestetskii Department of Information Technologies, Tver’ State University, Tver, Russia Computers.

Slides:



Advertisements
Similar presentations
Alignment Visual Recognition “Straighten your paths” Isaiah.
Advertisements

Problems in curves and surfaces M. Ramanathan Problems in curves and surfaces.
Digital Lesson on Graphs of Equations. Copyright © by Houghton Mifflin Company, Inc. All rights reserved. 2 The graph of an equation in two variables.
電腦視覺 Computer and Robot Vision I
Developable Surface Fitting to Point Clouds Martin Peternell Computer Aided Geometric Design 21(2004) Reporter: Xingwang Zhang June 19, 2005.
 Distance Problems: › Post Office Problem › Nearest Neighbors and Closest Pair › Largest Empty and Smallest Enclosing Circle  Sub graphs of Delaunay.
P. Venkataraman Mechanical Engineering P. Venkataraman Rochester Institute of Technology DETC2013 – 12269: Continuous Solution for Boundary Value Problems.
Medial axis computation of exact curves and surfaces M. Ramanathan Department of Engineering Design, IIT Madras Medial object.
Image Segmentation Image segmentation (segmentace obrazu) –division or separation of the image into segments (connected regions) of similar properties.
Handwritten Fonts Modeling Based on Fat Lines of Variable Width Stanislav Klimenko Moscow Physicotechnical Institute Moscow, Russia
Image Segmentation and Active Contour
1 Computer Graphics Chapter 7 3D Object Modeling.
Offset of curves. Alina Shaikhet (CS, Technion)
Implicit Surfaces Tom Ouyang January 29, Outline Properties of Implicit Surfaces Polygonization Ways of generating implicit surfaces Applications.
ENDS 375 Foundations of Visualization Geometric Representation 9/30/04.
1 Precise Voronoi Cell Extraction of Free-form Rational Planar Closed Curves Iddo Hanniel, Ramanathan Muthuganapathy, Gershon Elber Department of Computer.
Chapter 10: Curves and Surfaces Part 1 E. Angel and D. Shreiner: Interactive Computer Graphics 6E © Addison-Wesley Mohan Sridharan Based on Slides.
Solving Systems of Linear Equations and Circles Adapted from Walch Education.
FUNCTIONS.
Polynomials. 2 Content Evaluation Root finding Root Bracketing Interpolation Resultant.
Curve Modeling Bézier Curves
CS 450: COMPUTER GRAPHICS REVIEW: DRAWING ELLIPSES AND OTHER CURVES SPRING 2015 DR. MICHAEL J. REALE.
CS 376 Introduction to Computer Graphics 04 / 23 / 2007 Instructor: Michael Eckmann.
October 14, 2014Computer Vision Lecture 11: Image Segmentation I 1Contours How should we represent contours? A good contour representation should meet.
Digital Image Processing Lecture 20: Representation & Description
V. Space Curves Types of curves Explicit Implicit Parametric.
第1頁第1頁 Chapter 2 Analytic Function 9. Functions of a complex variable Let S be a set of complex numbers. A function defined on S is a rule that assigns.
Chapter 1-The Basics Calculus, 2ed, by Blank & Krantz, Copyright 2011 by John Wiley & Sons, Inc, All Rights Reserved.
CS 376 Introduction to Computer Graphics 04 / 20 / 2007 Instructor: Michael Eckmann.
Parametric Equations. You throw a ball from a height of 6 feet, with an initial velocity of 90 feet per second and at an angle of 40º with the horizontal.
Course 13 Curves and Surfaces. Course 13 Curves and Surface Surface Representation Representation Interpolation Approximation Surface Segmentation.
Approximation algorithms for TSP with neighborhoods in the plane R 郭秉鈞 R 林傳健.
TEL-AVIV UNIVERSITY RAYMOND AND BEVERLY SACKLER FACULTY OF EXACT SCIENCES SCHOOL OF MATHEMATICAL SCIENCES An Algorithm for the Computation of the Metric.
1 CS 430/536 Computer Graphics I Curve Drawing Algorithms Week 4, Lecture 8 David Breen, William Regli and Maxim Peysakhov Geometric and Intelligent Computing.
3D Object Representations
Artistic Surface Rendering Using Layout Of Text Tatiana Surazhsky Gershon Elber Technion, Israel Institute of Technology.
Course 8 Contours. Def: edge list ---- ordered set of edge point or fragments. Def: contour ---- an edge list or expression that is used to represent.
Implicit Hitting Set Problems Richard M. Karp Erick Moreno Centeno DIMACS 20 th Anniversary.
1 11. Polygons Polygons 2D polygons ( 다각형 ) –Polygon sides are all straight lines lying in the same plane 3D polyhedra ( 다면체 )  chap. 12 –Polyhedra.
In the name of God Computer Graphics Bastanfard. Curve Function(2) Other method is approximate it using a poly-line. Just locate a set of points along.
11/6/ :55 Graphics II Introduction to Parametric Curves and Surfaces Session 2.
Splines I – Curves and Properties based on: Michael Gleicher Curves, chapter 15 in Fundamentals of Computer Graphics, 3 rd ed. (Shirley & Marschner) Slides.
3D Object Representations 2011, Fall. Introduction What is CG?  Imaging : Representing 2D images  Modeling : Representing 3D objects  Rendering : Constructing.
CS 450: Computer Graphics PARAMETRIC SPLINES AND SURFACES
Image Segmentation Image segmentation (segmentace obrazu)
Splines Sang Il Park Sejong University. Particle Motion A curve in 3-dimensional space World coordinates.
CDS 301 Fall, 2008 Image Visualization Chap. 9 November 11, 2008 Jie Zhang Copyright ©
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.
Curves University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2013 Tamara Munzner.
Relationship between pixels Neighbors of a pixel – 4-neighbors (N,S,W,E pixels) == N 4 (p). A pixel p at coordinates (x,y) has four horizontal and vertical.
3D Object Representations. Introduction Line and circle and polygon algorithms- represented simple and smooth object. Some Natural object are neither.
3D Object Representations 2009, Fall. Introduction What is CG?  Imaging : Representing 2D images  Modeling : Representing 3D objects  Rendering : Constructing.
Definition: A plane curve is a set C of ordered pairs (f(t), g(t)), where f and g are continuous functions on an interval I. The graph of C consists of.
Modeling and Equation Solving
Lecture 5 Basic geometric objects
Image Representation and Description – Representation Schemes
Constructing Objects in Computer Graphics
Bitmap Image Vectorization using Potrace Algorithm
Copyright © Cengage Learning. All rights reserved.
Constructing Objects in Computer Graphics By Andries van Dam©
3D Object Representations
Fitting Curve Models to Edges
College Algebra Fifth Edition
Algebra 1 Section 5.3.
Chapter 2 Analytic Function
Coons Patches and Gregory Patches
Three-Dimensional Object Representation
9.5 Parametric Equations.
Further Equations and Techniques
Presentation transcript:

Fat Curves and Representation of Planar Figures L.M. Mestetskii Department of Information Technologies, Tver’ State University, Tver, Russia Computers & Graphics 24 (2000) Computer graphics in Russia

Outline Abstract Fat curves Boundaries of fat curves Implicit representation of fat curves Direct rasterization of fat curves Engraving representation Approximation of an engraving by fat Bezier curves

Abstract Fat curve Fat curve = “curve having a width”  trace left by a moving circle of variable radius Engraving Engraving  union of a finite number of fat curves Goal  Bezier representation for fat curves  2D modeling through engraving  approximation of arbitrary bitmap binary images

Problem Transforming the engraving representation into a discrete one in order to render a figures on raster display devices (Inverse Problem) Obtaining an engraving representation of figures given by their discrete or boundary representation

Method Bezier performance of greasy lines Decomposition of fat curves on parts with simple envelopes Scan-converting of fat curves based on Sturm polynomials Representation of any binary image as fat curves on the basis of its continuous skeleton

Fat Curves Set of circles in the Euclidean plane R 2 C: [a, b] → R 2 × [0, ∞ ), t ∈ [a, b] C t = {(x, y): (x−u(t)) 2 +(y−v(t)) 2 ≦ (r(t)) 2, (x,y) ∈ R 2 } Fat curve  C = ∪ t ∈ [a,b] C t  axis: P(t)  width: r(t)  end circle: C a, C b (initial and final circles)  may be considered as the trace of moving the circle C t P(u,v) r (x,y)

Example of a Fat Curve Planar Bezier curve  a set of circles on the plane: H = {H 0,H 1,…,H m }  circle H i, radius R i, Center (U i, V i ), i = 0,…,m [Bernstein polynomials]

H0H0 H1H1 H2H2 H3H3 H4H4 H6H6 H5H5 Example of a Fat Curve  axis: P(t) = (u(t), v(t)), width: r(t)  axis P(t) is an ordinary Bezier curve of degree m with the control points formed by the centers of the circles from H  control circles: H 0, H 1,…, H 6  control polygon: H 21 circles of family C t (t = 0.05j, j = 0,…,21)

Boundaries of Fat Curves A family of circles Under certain conditions, the family of circles, which is a family of smooth curves, has an envelope curve The necessary conditions for a point (x,y) ∈ R 2 to the envelope of a family of curves given by the equation F(x, y, t) = 0

Find the Envelope Curve (x 1,y 1 ) (x 2,y 2 ) Condition : the first condition is always satisfied the second condition can be violated (no envelopes)

Find the Envelope Curve A parametric description of two envelopes Define (x 1,y 1 ) (x 2,y 2 )

Envelopes Consider in more detail the case when the condition is violated and envelopes do not exist Interval on which is found as a result of the decomposition of a fat curve

Envelopes Consider a fat curve for which envelopes exist An envelope of a family of circles can be exterior of interior (don’t belong to the boundary of the fat curve) Criterion for distinguishing interior envelops  direction of axis : (u’, v’)  direction of envelope : (x’, y’)  exterior (supporting orientation) : u’x’ + v’y’ > 0  interior (opposing orientation) : u’x’ +v’y’ < 0 interior envelope exterior envelope (x,y)r (u,v)

Envelopes An envelope can change its orientation from supporting to opposing and conversely  x’ = y’ = 0  cut a fat curve at point t ∈ [a, b] where x’=y’=0, we obtain fat curves with constantly oriented envelopes

Envelopes Two-side fat curve: both envelopes are exterior  when envelopes are self-intersecting or intersect each other, it must be decomposed into parts  to find monotonicity intervals: u’(t) = 0 or v’(t) = 0 One-side fat curve: one of the envelopes is interior u’=0 v’=0

Rules for Decomposing Fat Curves Three rules for decomposing fat curves  separate fat curves for which u’ 2 +v’ 2 >= r’ 2  separate one-side fat curves by finding singular points of envelopes, i.e., points where x’ 1 =y’ 1 =0 or x’ 2 =y’ 2 =0  Separate monotone fat curves by finding points for which u’=0 or v’=0 exterior envelope (x,y)r (u,v) u’=0 v’=0

Implicit Representation of Fat Curves Membership function of the set  point belongs to the fat curve if the following condition is satisfied for a certain

Direct Rasterization of Fat Curves The discrete tracing of contour of a domain given by its membership function consists in an inspection of the points with integer coordinates located along this contour

Engraving Representation of a Binary Image Obtain a continuous representation of a figure given by its discrete representation The solution of this problem involves 3 steps  approximate the given bitmap binary image by a polygonal figure (PF)  construct a skeletal representation of the PF  approximate the skeletal representation of the PF by fat curves

Polygonal Figure Each of the PF is a polygon of the minimum perimeter that separates the black and white pixels of the bitmap image Problem  constructing an engraving representation of the given bitmap image  construction of an engraving representation of the PF polygonal figure of the minimum perimeter

Skeletal Representation Consider the set of all circles in the plane  all their interior point are also interior of the PF  the boundary of each circle at least two boundary points of the PF  circles: inscribed empty circles  set of centers of such circles forms the skeleton of the PF  skeletal representation of a bitmap image: skeleton + inscribed empty circles

Sites & Bisector PF consists of vertices and segments: sites  every empty circle touches two or more sites The maximal connected set of the centers of the inscribed empty circle that touch these sites: bisector of a pair of sites  a segment of a line or a segment of a parabola

Sites & Bisector A skeleton is an almost complete engraving There possible combinations of the pairs of sites  segment-segment, point-segment, point-point Segment-segment

Sites & Bisector Point-segment find z, follows from that sinceand, hence,

Sites & Bisector Point-point The engraving constructed on the basis of the skeletal representation of a PF will be called the skeletal engraving

Approximation of an Engraving by Fat Bezier Curves Skeletal engravings provide a highly accurate description of bitmap binary images (too many fat curves ) Considered as a problem of the approximation of a skeletal engraving G by another engraving G’ The Hausdorff metric may be conveniently measure the distance between engravings Find an engraving G’ such that

Branch Skeleton structure  juncture vertices of degree 3 or higher  terminal vertices of degree 1  intermediate vertices of degree 2 A chain of edges that have common vertices of degree 2 will be called a branch The entire skeleton can be represented as the union of such branches

Approximation Consider a chain of n fat curves C 1,…,C n corresponding to the same branch of the skeleton  find a fat curve C in a certain class of fat curves that provides the best approximation for this sequence of circles e.g., in the class of cubic Bezier curves C ∈ B 3  in other word, we must solve the minimization problem

Fat Curve Fitting Problem Empty circles K 0,…K n located at the vertices of the branch Define

Fat Curve Fitting Problem The approximation fat curve C is sought in the form of a Bezier curve of degree m H 0,…,H m are the control circles of C(t) The problem is to find a set of control circles such that it minimizes the quadratic mean distance from the empty circles K 0,…,K n

Fat Curve Fitting Problem In the optimization problem, the objective function The optimal solution if found by solving a system of linear equations obtained from the following condition: If the fat Bezier curve with the control circles H 0,…,H m does not provide the desired accuracy  the chain of n fat curves C 0,…,C m is partitioned into two shorter chains, and the approximation problem is solved separately for each of these chains

Result