CS 450: COMPUTER GRAPHICS RASTERIZING CONICS SPRING 2016 DR. MICHAEL J. REALE

Similar documents
Output Primitives. Ellipse Drawing

CS 548: COMPUTER GRAPHICS DRAWING LINES AND CIRCLES SPRING 2015 DR. MICHAEL J. REALE

Tufts University Math 13 Department of Mathematics November 14, :00 noon to 1:20 pm

4.2. Co-terminal and Related Angles. Investigate

(a, b) x y r. For this problem, is a point in the - coordinate plane and is a positive number.

Introduction To Robotics (Kinematics, Dynamics, and Design)

Computer Graphics. Computer Graphics. Lecture 3 Line & Circle Drawing

Collision Detection with Swept Spheres and Ellipsoids

Massachusetts Institute of Technology Department of Mechanical Engineering

Image Enhancement in the Spatial Domain. Spatial Domain

Gravitational Shift for Beginners

Lecture 27: Voronoi Diagrams

Lecture # 04. Image Enhancement in Spatial Domain

CS 450: COMPUTER GRAPHICS RASTERIZING LINES SPRING 2016 DR. MICHAEL J. REALE

Fifth Wheel Modelling and Testing

Topic 4 Root Finding

9.5 Volume of Pyramids

CS335 Fall 2007 Graphics and Multimedia. 2D Drawings: Lines

17/5/2009. Introduction

5. Geometric Transformations and Projections

Chapter 3: Graphics Output Primitives. OpenGL Line Functions. OpenGL Point Functions. Line Drawing Algorithms

Approximating Euclidean Distance Transform with Simple Operations in Cellular Processor Arrays

Computer Vision - Histogram Processing. Dr. S. Das IIT Madras, CHENNAI - 36

Coordinate Systems. Ioannis Rekleitis

CALCULUS III Surface Integrals. Paul Dawkins

Segmentation of Casting Defects in X-Ray Images Based on Fractal Dimension

ESTIMATION OF INTERPOLATION ERROR IN DEMS USING STATISTICAL METHODS

Research Article. Regularization Rotational motion image Blur Restoration

A New Free-form Deformation Through the Control of Parametric Surfaces

Trinocular Stereo using Shortest Paths and the Ordering Constraint

Goal. Rendering Complex Scenes on Mobile Terminals or on the web. Rendering on Mobile Terminals. Rendering on Mobile Terminals. Walking through images

Derivation of the Nodal Forces Equivalent to Uniform Pressure for Quadratic Isoparametric Elements RAWB, Last Update: 30 September 2008

On Error Estimation in Runge-Kutta Methods

EYE DIRECTION BY STEREO IMAGE PROCESSING USING CORNEAL REFLECTION ON AN IRIS

Prof. Feng Liu. Fall /17/2016

Shortest Paths for a Two-Robot Rendez-Vous

TESSELLATIONS. This is a sample (draft) chapter from: MATHEMATICAL OUTPOURINGS. Newsletters and Musings from the St. Mark s Institute of Mathematics

Computer Graphics and Animation 3-Viewing

10/29/2010. Rendering techniques. Global Illumination. Local Illumination methods. Today : Global Illumination Modules and Methods

Shape Matching / Object Recognition

Comparisons of Transient Analytical Methods for Determining Hydraulic Conductivity Using Disc Permeameters

Complete Solution to Potential and E-Field of a sphere of radius R and a charge density ρ[r] = CC r 2 and r n

Optical Flow for Large Motion Using Gradient Technique

CSE 165: 3D User Interaction

Modelling of real kinematics situation as a method of the system approach to the algorithm development thinking

Raster Graphics Algorithms

A Description Method of Spatial Complexity in Terms of Visibility

Topic 7 Random Variables and Distribution Functions

Also available at ISSN (printed edn.), ISSN (electronic edn.) ARS MATHEMATICA CONTEMPORANEA 3 (2010)

Fault-Tolerant Metric Vector Routing

Keith Dalbey, PhD. Sandia National Labs, Dept 1441 Optimization & Uncertainty Quantification

2D Transformations. Why Transformations. Translation 4/17/2009

An Optimised Density Based Clustering Algorithm

Reader & ReaderT Monad (11A) Young Won Lim 8/20/18

Parametric Scattering Models for Bistatic Synthetic Aperture Radar

Topic -3 Image Enhancement

Elliptic Generation Systems

IP Network Design by Modified Branch Exchange Method

Survey of Various Image Enhancement Techniques in Spatial Domain Using MATLAB

A Texture Feature Extraction Based On Two Fractal Dimensions for Content_based Image Retrieval

ART GALLERIES WITH INTERIOR WALLS. March 1998

Modelling, calibration and correction of nonlinear illumination-dependent fixed pattern noise in logarithmic CMOS image sensors

GRAPHICS OUTPUT PRIMITIVES

GARBAGE COLLECTION METHODS. Hanan Samet

Derivatives 3: The Derivative as a Function

9.3 Volume of Spheres

CS-184: Computer Graphics. Today. Lecture #5: 3D Transformations and Rotations. Transformations in 3D Rotations

2. PROPELLER GEOMETRY

Finding point-pairs. Find Closest Point from Dense Cloud

SURVEY OF VARIOUS IMAGE ENHANCEMENT TECHNIQUES IN SPATIAL DOMAIN USING MATLAB

A Memory Efficient Array Architecture for Real-Time Motion Estimation

On a piece of graph paper, draw a circle that has a radius of 5 and center at ( 0, 0 ).

5 4 THE BERNOULLI EQUATION

Topological Characteristic of Wireless Network

n If S is in convex position, then thee ae exactly k convex k-gons detemined by subsets of S. In geneal, howeve, S may detemine fa fewe convex k-gons.

Conservation Law of Centrifugal Force and Mechanism of Energy Transfer Caused in Turbomachinery

Statistics of Images. Ioannis Rekleitis

Augmented Reality. Integrating Computer Graphics with Computer Vision Mihran Tuceryan. August 16, 1998 ICPR 98 1

Defining and Implementing Dynamic Semantics of Object Oriented High Level Petri Nets

A Mathematical Implementation of a Global Human Walking Model with Real-Time Kinematic Personification by Boulic, Thalmann and Thalmann.

Journal of World s Electrical Engineering and Technology J. World. Elect. Eng. Tech. 1(1): 12-16, 2012

Analysis of uniform illumination system with imperfect Lambertian LEDs

CS 450: COMPUTER GRAPHICS 2D TRANSFORMATIONS SPRING 2016 DR. MICHAEL J. REALE

GTOC 9, Multiple Space Debris Rendezvous Trajectory Design in the J2 environment

3D Reconstruction from 360 x 360 Mosaics 1

dc - Linux Command Dc may be invoked with the following command-line options: -V --version Print out the version of dc

Toward Computing an Optimal Trajectory for an Environment-Oriented Unmanned Aerial Vehicle (UAV) under Uncertainty

Extended Perspective Shadow Maps (XPSM) Vladislav Gusev, ,

Electric Field of charged hollow and solid Spheres

CS 548: COMPUTER GRAPHICS QUATERNIONS SPRING 2015 DR. MICHAEL J. REALE

^2 PMAC NC FOR MILL APPLICATION

A Shape-preserving Affine Takagi-Sugeno Model Based on a Piecewise Constant Nonuniform Fuzzification Transform

Title. Author(s)NOMURA, K.; MOROOKA, S. Issue Date Doc URL. Type. Note. File Information

MAT 1275: Introduction to Mathematical Analysis

Color Interpolation for Single CCD Color Camera

UCLA Papers. Title. Permalink. Authors. Publication Date. Localized Edge Detection in Sensor Fields.

EE 168 Handout #32 Introduction to Digital Image Processing March 7, 2012 HOMEWORK 7 SOLUTIONS

Generalized Grey Target Decision Method Based on Decision Makers Indifference Attribute Value Preferences

ISyE 4256 Industrial Robotic Applications

EQUATIONS can at times be tedious to understand

Transcription:

CS 45: COMPUTER GRAPHICS RASTERIZING CONICS SPRING 6 DR. MICHAEL J. REALE

RASTERIZING CURVES OTHER THAN LINES When dealing with othe inds of cuves, we can daw it in one of the following was: Use elicit fom i.e., = f)) o a aametic fom i.e., = fs) and = gs)) aoimate cuve with line segments Paametic fom bette fo this eas to get evenl-saced oints along cuve ath Can connect oints OR use best-fitting line linea egession o least squaes aoach) Use imlicit fom i.e., f,) = ) and deive incemental midoint method In the net few slides, we ll loo at how to asteize: Cicles Ais-aligned) Ellises using incemental midoint methods

MIDPOINT CIRCLE ALGORITHM

INTRODUCTION A cicle can be defined b its imlicit fom: c, c ) cente of cicle = adius Since a cicle is smmetic in all 8 octants just comute one octant and elicate in othes ) ) ), f c c

DECISION VARIABLE Assume the cicle is centeed at,) We e going to stat b: Incementing b Choose whethe to go down o not in To detemine ou net choice, we will loo at ou decision vaiable based on the midoint +, - ½): If < midoint inside cicle choose If > midoint outside cicle choose - f, )

UPDATING THE DECISION VARIABLE If ou wo though the math simila to the wa we deived ou line midoint algoithm), we also find two diffeent udate conditions HOWEVER, because the sloe along cicle is changing udate values deend on cuent and! If < add + ) + If > add + ) + ) We can mae this moe efficient is we udate +) and -) incementall: ) )

INITIAL VALUES We will stat at,) Initial decision vaiable value: Howeve, if ou adius is an intege, we can ound to =, since all incements ae integes f 4 5 4 ),

MIDPOINT CIRCLE ALGORITHM SUMMARIZED. Inut adius and cicle cente c, c ); fist oint =, ) =,). Calculate initial decision vaiable value: 3. At each, test : If < net oint is +, ) and: Othewise net oint is +, - ) and: Whee: 4. Fo each calculated osition,), lot + c, + c ) 5. Plot coesonding smmetic oints in othe seven octants 6. Reeat stes 3 though 5 UNTIL >= Effectivel etending we ae centeed on,) 5 4

MIDPOINT ELLIPSE ALGORITHM

MIDPOINT ELLIPSE ALGORITHM We e going to assume the following about ou ellise: Ais aligned Centeed at,) won t affect the iels we choose Ellises smmetic in each QUADRANT So, we just need one quadant s iels and then eeat fo the othe thee HOWEVER, when the abssloe) =. should switch fom incementing in X to decementing in Y! Means we will have two egions to wo about

ELLIPSE FORMULA AND SLOPE We assume the ellise iscenteed at,) Also, we will multil ou oiginal ellise fomula b and to get: We will also need to chec the sloe do imlicit diffeentiation to get d/d: ), f d d

TESTING THE SLOPE When the sloe = -. at bounda of R and R), then: When the sloe < -. enteing R): d d

DECISION VARIABLE: REGION Ou decision vaiable fo egion is going to be based on whee +, ½) is elative to the tue ellise: Simila to the midoint cicle algoithm: If < inside ellise choose Othewise outside ellise choose Initial value: ), f 4, f

INCREMENTING THE DECISION VARIBLE: REGION If < chose + = Othewise chose + = - ) ) )

WHEN DO WE SWITCH TO REGION? We have to chec when this eession becomes tue: At the stating oint, ), these values ae: So, eve iteation: Add to s If we choose ), subtact fom s s s

DECISION VARIABLE: REGION Decementing in If > outside choose incement : Othewise inside choose + ) incement :, f ) ) )

INITIAL DECISION VARIBLE: REGION We ll use the last oint we had befoe switching to egion : An altenative would be to stat at, ) and go counteclocwise; we would then INCREMENT and choose between and ), f

MIDPOINT ELLIPSE ALGORITHM: REGION. Inut,, and ellise cente c, c ); get fist oint fo ellise centeed on oigin:. Get initial decision vaiable fo egion : 3. While < ) If < choose +, ) Othewise choose +, ) ), ), 4 ) ) )

MIDPOINT ELLIPSE ALGORITHM: REGION 4. Get initial value of decision vaiable fo egion fom last osition, ) calculated in egion : 5. While!= ) If > choose, ) Othewise choose +, ) 6. Fo both egions, define smmet oints:,), -,),,-), and -,-) 7. Fo each osition,), lot: ) ) ) c c

NONSTANDARD ELLIPSES We have two was to deal with non-standad ellises i.e., ellises that do not line u with the coodinate aes): ) Adat fomulas to wo ove ENTIRE ellise ath ) Get the iels fo the standad ellise, but then tansfom the oints i.e., otation mati)

RASTERIZING CONIC SECTIONS SUMMARY

DRAWING CONIC SECTIONS SUMMARY Figue out whee the cuve is smmetical Cicles smmetical acoss 8 octants Ellises/Hebolas smmetical acoss 4 quadants Paabolas smmetical acoss vetical ais Comute decision vaiable fomulas fo aeas whee sloe is less than. and geate than. Go though midoint algoithm, checing when to switch because of sloe