Drawing lines. Naïve line drawing algorithm. drawpixel(x, round(y)); double dy = y1 - y0; double dx = x1 - x0; double m = dy / dx; double y = y0;

Size: px
Start display at page:

Download "Drawing lines. Naïve line drawing algorithm. drawpixel(x, round(y)); double dy = y1 - y0; double dx = x1 - x0; double m = dy / dx; double y = y0;"

Transcription

1 Naïve line drawing algorithm // Connet to grid points(x0,y0) and // (x1,y1) by a line. void drawline(int x0, int y0, int x1, int y1) { int x; double dy = y1 - y0; double dx = x1 - x0; double m = dy / dx; double y = y0; } for (x=x0; x<=x1; x++) { drawpixel(x, round(y)); y = y + m; //or: y = y0 + m*(x - x0); } Drawing lines Computer Graphis: Drawing lines and urves p.1/92

2 Drawing lines Computer Graphis: Drawing lines and urves p.2/92

3 Drawing lines For a line with an absolute slope greater than one, the roles of the - and the -axis should be exhanged for drawing the line. Very often, drawing an image requires drawing a large number of lines. Therefore, the line drawing algorithm should be as effiient as possible. The Bresenham or midpoint algorithm does not need any floating operations and draws lines on raster graphis using only integer arithmetis. Computer Graphis: Drawing lines and urves p.3/92

4 The midpoint algorithm In the following, drawing a line with slope between 0 and 1 is onsidered. If suh a line is drawn pixel by pixel and the last pixel whih was drawn is loated at, then there are only two hoies for the next pixel. or right of the pixel. right and above of the pixel Computer Graphis: Drawing lines and urves p.4/92

5 The midpoint algorithm Computer Graphis: Drawing lines and urves p.5/92

6 The midpoint algorithm Considering the loation of the line w.r.t. the midpoint provides the orret deision whih of the two andidate pixels should be drawn next. If the midpoint lies below the line, the upper ( pixel should be drawn. If the midpoint lies above the line, the lower ( pixel should be drawn. Computer Graphis: Drawing lines and urves p.6/92

7 The midpoint algorithm Computer Graphis: Drawing lines and urves p.7/92 Equation for the line: Impliit form: or

8 The midpoint algorithm lies on the line. lies above the line. lies below the line. the oordinates of the midpoint Choosing for yields: should be drawn. The pixel should be drawn. The pixel In the ase one an hoose or. (But the deision should be the same eah time, for instane always the upper pixel.) Computer Graphis: Drawing lines and urves p.8/92

9 and The midpoint algorithm. with pixel Draw a line onneting pixel Equation for the line:. where Computer Graphis: Drawing lines and urves p.9/92

10 The midpoint algorithm Computer Graphis: Drawing lines and urves p.10/92 impliit form: or where

11 The midpoint algorithm with integer value Inserting the midpoint and requires floating operations. with integer value Multipliation by the fator 2: Computer Graphis: Drawing lines and urves p.11/92

12 The midpoint algorithm with Inserting the midpoint are integer values yields where Only integer operations are needed! Computer Graphis: Drawing lines and urves p.12/92

13 The midpoint algorithm The midpoint algorithm used in omputer graphis is further improved by. inremental omputation of the values In the loop for drawing, only integer additions, no multipliations are needed. Computer Graphis: Drawing lines and urves p.13/92

14 The midpoint algorithm Inremental omputation of the deision variable: hange? How does Computer Graphis: Drawing lines and urves p.14/92

15 The midpoint algorithm new old new Computer Graphis: Drawing lines and urves p.15/92 Two ases: old

16 The midpoint algorithm is the pixel. Case 1:, i.e. drawn after : Midpoint to be onsidered for the next pixel new Computer Graphis: Drawing lines and urves p.16/92

17 The midpoint algorithm new old old new Computer Graphis: Drawing lines and urves p.17/92

18 The midpoint algorithm is the. Case 2:, i.e. pixel drawn after Midpoint to be onsidered for the next pixel: new Computer Graphis: Drawing lines and urves p.18/92

19 The midpoint algorithm old new old Computer Graphis: Drawing lines and urves p.19/92 new

20 The midpoint algorithm was hosen, was hosen. if if i.e. old old if if is always an integer number. Therefore, the deision variable an only hange by integer values. Computer Graphis: Drawing lines and urves p.20/92

21 The midpoint algorithm : Starting pixel: Initialisation of First midpoint to be onsidered: init Computer Graphis: Drawing lines and urves p.21/92

22 The midpoint algorithm is neessarily an integer number. init onsider the Instead of the deision variable deision variable : is always an integer number. Computer Graphis: Drawing lines and urves p.22/92

23 The midpoint algorithm init where new old if old if old Computer Graphis: Drawing lines and urves p.23/92

24 The midpoint algorithm Example: A line from (2,3) to (10,6): Computer Graphis: Drawing lines and urves p.24/92

25 The midpoint algorithm init Computer Graphis: Drawing lines and urves p.25/92

26 The midpoint algorithm init Computer Graphis: Drawing lines and urves p.26/92

27 The midpoint algorithm init init Computer Graphis: Drawing lines and urves p.27/92

28 The midpoint algorithm init init Computer Graphis: Drawing lines and urves p.28/92

29 The midpoint algorithm init init Computer Graphis: Drawing lines and urves p.29/92

30 The midpoint algorithm init init Computer Graphis: Drawing lines and urves p.30/92

31 The midpoint algorithm init init Computer Graphis: Drawing lines and urves p.31/92

32 The midpoint algorithm init init Computer Graphis: Drawing lines and urves p.32/92

33 The midpoint algorithm init init Computer Graphis: Drawing lines and urves p.33/

34 The midpoint algorithm Lines with an absolute slope greater than 1: Change the roles of the - and algorithm. -axis in the Lines with negative slope (between and Carry out similar derivations as in the ase of lines with positive slope. Instead of northeastern pixel, the t southeastern must be onsidered. ): Line segments whose starting and endpoint are not integer-valued: Roundoff the oordinates of the starting and endpoint and onnet the orresponding pixels by a line. Computer Graphis: Drawing lines and urves p.34/92

35 Strutural algorithms When drawing a line, repeated pixel patterns usually our, for instane,,,, Computer Graphis: Drawing lines and urves p.35/92

36 Strutural algorithms Let denote a diagonal ( pixel) and a horizontal step ( pixel). Then the line an be deribed by a (repeated) pattern of and steps. Strutural algorithms determine suh patterns for drawing lines. integer operations The midpoint algorithm needs to draw a line of pixels. Strutural algorithm only have logarithmi omplexity (however, with more ompliated operations). Computer Graphis: Drawing lines and urves p.36/92

37 and Strutural algorithms Priniple: (of Given: A start and endpoint and a line segment with slope between 0 and 1). Compute Apart from the starting pixel, pixels must be drawn. This will invoke diagonal and horizontal steps. as a first Choose the sequene approximation. Permutate this sequene in a suitable way to obtain the orret sequene. Computer Graphis: Drawing lines and urves p.37/92

38 Brons algorithm If and (and therefore also ) have a ommon divisor greater than one, i.e., gd, then the pixel line an be drawn by repetitions of a sequene of length. Therefore, it an be assumed without loss of generality that and have no ommon divisor. be two words (sequenes) over the. Let and alphabet From a starting sequene with frequenies and having no ommon divisor and assuming without loss of generality, the integer division Computer Graphis: Drawing lines and urves p.38/92

39 Brons algorithm leads to the permutated sequene if if Apply the same proedure in a reursive manner to the subsequenes of length and, respetively, until or holds. Computer Graphis: Drawing lines and urves p.39/92

40 Example,,, gd Therefore,,. Computer Graphis: Drawing lines and urves p.40/92

41 Pixel densities Computer Graphis: Drawing lines and urves p.41/92

42 Pixel densities where and A line onneting the points. Length of the line Pixel density Computer Graphis: Drawing lines and urves p.42/92

43 Line styles and bitmasks solid dashed dotted self defined Computer Graphis: Drawing lines and urves p.43/92

44 Line styles and bitmasks Different dash lengths for the same bitmask. Computer Graphis: Drawing lines and urves p.44/92

45 Line styles in Java 2D Line thikness: BasiStroke bsthikline = new BasiStroke(3.0f); g2d.setstroke(bsthikline); Dash patterns: BasiStroke bsdash = new BasiStroke(thikness, BasiStroke.CAP_BUTT, BasiStroke.JOIN_BEVEL, 2.0f, dashpattern,dashphase); Computer Graphis: Drawing lines and urves p.45/92

46 Line styles in Java 2D thikness: The thikness of the line. BasiStroke.CAP BUTT, BasiStroke.JOIN BEVEL, 2.0f determine how the endings of lines should look and how joins in polylines should be drawn. dashpattern: Array that defines the desired dash pattern, f.e. float[] dashpattern = new float[]{20,10}; dashphase: Position in the dash pattern where drawing should begin. Computer Graphis: Drawing lines and urves p.46/92

47 StrokingExample.java dashpattern dashphase 4,5,8,5,12,5,16,5,20,5 0 20, , ,10 0 Computer Graphis: Drawing lines and urves p.47/92

48 Clipping The task of deiding whether objets belong to the sene to be displayed or whether they an be negleted for the speifi sene is alled lipping. Computer Graphis: Drawing lines and urves p.48/92

49 Line lipping Simple, but omputationally ineffiient method for line lipping: Compute the intersetion points of the line to be drawn with the four edges of the lipping retangle. Representation of a line segment with starting point and endpoint as onvex ombinations of these two points.. where Computer Graphis: Drawing lines and urves p.49/92

50 Line lipping Compute the intersetion points of the line with the retangle defined by the points min min and : max max Determine the intersetion point with the lower edge: max min min min Yields solutions for and. (If no or no unique solution exists, the lines are parallel.) Computer Graphis: Drawing lines and urves p.50/92

51 Line lipping : The intersetion point lies not and between the endpoints of the line segment and lies before min. and : The line segment intersets the extension of the lower edge before min. : The intersetion point lies not and between the endpoints of the line segment and lies before min. and : The intersetion point of the line with the lower edge lies before. and : The line segment intersets the lower edge. Computer Graphis: Drawing lines and urves p.51/92

52 Line lipping and : The intersetion point of the line with the lower edge lies behind. : The intersetion point lies not and between the endpoints of the line segment and lies behind max. and : The line segment intersets the extension of the lower edge behind max. : The intersetion point lies not and between the endpoints of the line segment and lies behind max. The same onsiderations must be arried out for the other edges of the retangle. Computer Graphis: Drawing lines and urves p.52/92

53 Cohen-Sutherland lipping Aim: Try to avoid the omputation of intersetion points. Partition the 2D-world into nine areas desribed by a 4-bit ode: The bit ode is assigned to the point aording to the following rules. min max min max Computer Graphis: Drawing lines and urves p.53/92

54 Cohen-Sutherland lipping max max min min Computer Graphis: Drawing lines and urves p.54/92

55 Cohen-Sutherland lipping. and ending at A line starting at point. (ready) Draw the line No drawing required. (ready) must hold. Without loss of. Compute the or generality, assume intersetion point of the line for the edge or one of the two edges responsible for the one(s) in by this intersetion point. Replae and start the algorithm again with the shortened line. Computer Graphis: Drawing lines and urves p.55/92

56 Cohen-Sutherland lipping Computer Graphis: Drawing lines and urves p.56/92

57 Cyrus-Bek lipping with a point on the line from A vetor onneting to an be written as Computer Graphis: Drawing lines and urves p.57/92

58 Cyrus-Bek lipping The intersetion point of the line with the orresponding edge of the lipping retangle must satisfy : No intersetion point with the edge within the line segment. Computer Graphis: Drawing lines and urves p.58/92

59 Cyrus-Bek lipping ) are The remaining intersetion points ( potential points where the line enters or leaves the lipping retangle. These points are marked as possible entering (PE) and possible leaving points (PL). 1 P PL PL PE PE 0 P Computer Graphis: Drawing lines and urves p.59/92

60 Cyrus-Bek lipping The angle between the line and the normal vetor of the orresponding edge of the lipping retangle determines whether a point should be marked PE or PL., the intersetion point If the angle is larger than should be marked PE., the intersetion point If the angle is less than should be marked PL. For this, it is suffiient to determine the sign of the dot produt Computer Graphis: Drawing lines and urves p.60/92

61 Cyrus-Bek lipping Determining the part of the line inside the lipping retangle: Determine the largest value for a PE point and the smallest value belonging to a PL point. holds, the part of the line between the points and must be drawn. If Otherwise the line lies outside the lipping retangle. Computer Graphis: Drawing lines and urves p.61/92

62 Line lipping Problems to determine the orret starting pixel: left lower lower lower - 1 Computer Graphis: Drawing lines and urves p.62/92

63 Midpoint algorithm for irles Draw a irle with radius around the entre. Given that is a pixel, i.e., it is suffiient to find an effiient algorithm for drawing a irle with entre and to use as an offset. Symmetry of the irle (an eighth of the irle is suffiient): (x,y) (y,x) (y,-x) (x,-y) (-x,-y) (-y,-x) (-y,x) (-x,y) Computer Graphis: Drawing lines and urves p.63/92

64 Midpoint algorithm for irles in impliit form: Equation for the irle lies on the irle. lies outside the irle. lies inside the irle. If the pixel has been drawn in one step, the next pixel an only be the pixel with oordinates or with oordinates. Computer Graphis: Drawing lines and urves p.64/92

65 Midpoint algorithm for irles (x p,y p ) E M M E SE M SE Computer Graphis: Drawing lines and urves p.65/92

66 Midpoint algorithm for irles Analogously to lines: Impliit equation for the irle as a deision variable. into the equation leads to the Inserting the midpoint following deisions. must be drawn. holds, then If must be drawn. holds, then If hange in eah step? How muh does Computer Graphis: Drawing lines and urves p.66/92

67 Midpoint algorithm for irles is the pixel. Case 1:, i.e. drawn after : Midpoint to be onsidered for the next pixel new Computer Graphis: Drawing lines and urves p.67/92

68 Midpoint algorithm for irles old new old new Computer Graphis: Drawing lines and urves p.68/92

69 Midpoint algorithm for irles is the. Case 2:, d.h. pixel drawn after : Midpoint to be onsidered for the next pixel new Computer Graphis: Drawing lines and urves p.69/92

70 Midpoint algorithm for irles new old new old Computer Graphis: Drawing lines and urves p.70/92

71 Midpoint algorithm for irles was hosen, was hosen. if if i.e. old old if if is always an integer number. Therefore, the deision variable an only hange by integer values. Computer Graphis: Drawing lines and urves p.71/92

72 Midpoint algorithm for irles : Initialisation of. where The first pixel to be drawn is. First midpoint to be onsidered: : Initialisation of Computer Graphis: Drawing lines and urves p.72/92

73 Midpoint algorithm for irles old old Summary: init new old if if Computer Graphis: Drawing lines and urves p.73/92

74 Midpoint algorithm for irles Exept for the value at the initialisation, only integer numbers and operations our.. by Replae holds, it holds. Theoretially, instead of testing whether would now be neessary to test whether But sine starts with an integer value and hanges only by integer values, it is suffiient to test for. Computer Graphis: Drawing lines and urves p.74/92

75 Midpoint algorithm for irles init new old if old if old Computer Graphis: Drawing lines and urves p.75/92

76 Midpoint algorithm for irles A irle with noninteger, rational radius: Apply the same strategy as above to the impliit form Computer Graphis: Drawing lines and urves p.76/92

77 Priniple of the midpoint algorithm to be drawn in the interval Given: A urve. Neessary ondition: Either or is valid for the omplete interval. in a suitable impliit form and use as deision variable. Write Compute the hange of depending on the previously drawn pixel ( or, respetively). Computer Graphis: Drawing lines and urves p.77/92

78 Priniple of the midpoint algorithm Neessary ondition: is an integer value or at least rational. If is a (proper) rational number, onsider the deision variable instead of where is hosen suh that is always an integer number. Compute the initial value init by inserting the first midpoint (after ). If init is not an integer number, the digits after the deimal point an be ignored if hanges only by integer values. Computer Graphis: Drawing lines and urves p.78/92

79 Drawing of arbitrary urves The midpoint or Bresenham algorithm annot be applied to arbitrary urves aording to the restritions required for the slope of the funtion. In addition, the omputational sheme must be alulated individually for eah type of funtion. Therefore, arbitrary urves are drawn in the following way. Given: A urve (where to be drawn in the interval ). Computer Graphis: Drawing lines and urves p.79/92

80 Drawing of arbitrary urves int yround1, yround2; yround1 = round(f(x0)); for (int x=x0; x<x1; x++) { yround2 = round(f(x+1)); drawline(x,yround1,x+1,yround2); yround1 = yround2; } Computer Graphis: Drawing lines and urves p.80/92

81 Drawing of arbitrary urves Computer Graphis: Drawing lines and urves p.81/92

82 Antialiasing Aliasing effets our when a ontinuous signal is sampled in a disrete manner with a onstant rate. Drawing lines and urves (sampling of a ontinuous urve by a disrete pixel raster) an ause aliasing effets (jaggies, stairasing). Antialiasing tries to amend these effets by the use of different grey levels or olour intensities. Pixels are not simply drawn blak or white, but with different intensities, depending how far they lie from the ideal line to be drawn or how muh they are overed by the thikened line. Computer Graphis: Drawing lines and urves p.82/92

83 Unweighted Area Sampling A line is onsidered as (narrow, long) retangle. Eah pixel is assoiated with a small square. The intensity of the pixel is hosen proportionally to the area of the pixel s square that is overed by the retangle that represents the line. Computer Graphis: Drawing lines and urves p.83/92

84 Unweighted Area Sampling Simple heuristi strategy to estimate the proportion of the pixel s square that is overed by the line retangle: The pixel s square is overed by an imaginary refined pixel grid. The proportion of refined pixels in the square that also lie in the line retangle gives a good estimation for the desired intensity of the pixel. Intensity: 11/25 Computer Graphis: Drawing lines and urves p.84/92

85 Weighted Area Sampling Weighted Area Sampling: Use a weighting funtion : Intensity for pixel P Computer Graphis: Drawing lines and urves p.85/92

86 Gupta-Sproull antialiasing For suitable weighting funtions, the a pixel s intensity depends only on its distane the line. The number of displayable intensity values is usually limited, for omputer sreens by 256. Antialiasing normally uses muh less intensity vales. Sanning the pixels in a suitable order, omputing the disretised intensities is similar to drawing a line on a pixel raster. Sanning the pixels orresponds to stepping through the -values for drawing the line. Determining the (disretised/rounded) intensity orresponds to omputing the rounded -value for drawing the line. Computer Graphis: Drawing lines and urves p.86/92

87 Gupta-Sproull antialiasing The Gupta-Sproull antialiasing algorithm uses a suitable weighting funtion and limited number of intensity levels, so that the midpoint algorithm an be used for omputing the intensity for antialiasing. No integrals need to be solved, not even floating arithmeti is required. Antialiasing in Java 2D: g2d.setrenderinghint( RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); Computer Graphis: Drawing lines and urves p.87/92

88 Drawing thik lines For devies even with today s standard resolution, lines rendered with only one pixel as their width our extremely thin. Pixel repliation moving pen tehnique Alternative: Consider lines as filled polygons or retangles. Computer Graphis: Drawing lines and urves p.88/92

89 Thik polylines How should line endings of thik lines look like? Computer Graphis: Drawing lines and urves p.89/92

90 Java 2D: Drawing thik lines new BasiStroke(thikness,ending,join); Values for ending: BasiStroke.CAP BUTT: The endings are ut off straight, orthogonal to the diretion of the line. BasiStroke.CAP ROUND: A half irle is attahed to eah line ending. BasiStroke.CAP SQUARE: A retangle is appended to the line ending, so that the line is prolongated by half of its thikness. Computer Graphis: Drawing lines and urves p.90/92

91 Java 2D: Drawing thik lines Values for join: BasiStroke.JOIN MITER: The outer edges of the line retangles are prolonged until they meet, leading to a join with a sharp tip. For aute angles of the lines, the tip an be extremely long. To avoid this effet, another float-value an be speified, defining the maximum length of the tip. If the tip exeeds this length, then the following join mode is used. Computer Graphis: Drawing lines and urves p.91/92

92 Java 2D: Drawing thik lines BasiStroke.JOIN BEVEL: The join is a straight ut-off, orthogonal to the middle line between the two lines to be onneted. BasiStroke.JOIN ROUND: The line endings are ut off at the join and a irle segment similar to the style BasiStroke.JOIN BEVEL for line endings is attahed to the join. The angle of the irle segment is hosen suh that the lines form the tangents at the irle segment. Computer Graphis: Drawing lines and urves p.92/92

Orientation of the coordinate system

Orientation of the coordinate system Orientation of the oordinate system Right-handed oordinate system: -axis by a positive, around the -axis. The -axis is mapped to the i.e., antilokwise, rotation of The -axis is mapped to the -axis by a

More information

Rendering. A simple X program to illustrate rendering

Rendering. A simple X program to illustrate rendering Rendering A simple X program to illustrate rendering The programs in this directory provide a simple x based application for us to develop some graphics routines. Please notice the following: All points

More information

Chapter 8: Implementation- Clipping and Rasterization

Chapter 8: Implementation- Clipping and Rasterization Chapter 8: Implementation- Clipping and Rasterization Clipping Fundamentals Cohen-Sutherland Parametric Polygons Circles and Curves Text Basic Concepts: The purpose of clipping is to remove objects or

More information

Chapter - 2: Geometry and Line Generations

Chapter - 2: Geometry and Line Generations Chapter - 2: Geometry and Line Generations In Computer graphics, various application ranges in different areas like entertainment to scientific image processing. In defining this all application mathematics

More information

Computer Graphics. - Rasterization - Philipp Slusallek

Computer Graphics. - Rasterization - Philipp Slusallek Computer Graphics - Rasterization - Philipp Slusallek Rasterization Definition Given some geometry (point, 2D line, circle, triangle, polygon, ), specify which pixels of a raster display each primitive

More information

UNIT -8 IMPLEMENTATION

UNIT -8 IMPLEMENTATION UNIT -8 IMPLEMENTATION 1. Discuss the Bresenham s rasterization algorithm. How is it advantageous when compared to other existing methods? Describe. (Jun2012) 10M Ans: Consider drawing a line on a raster

More information

Rasterization: Geometric Primitives

Rasterization: Geometric Primitives Rasterization: Geometric Primitives Outline Rasterizing lines Rasterizing polygons 1 Rasterization: What is it? How to go from real numbers of geometric primitives vertices to integer coordinates of pixels

More information

Scan Conversion. Drawing Lines Drawing Circles

Scan Conversion. Drawing Lines Drawing Circles Scan Conversion Drawing Lines Drawing Circles 1 How to Draw This? 2 Start From Simple How to draw a line: y(x) = mx + b? 3 Scan Conversion, a.k.a. Rasterization Ideal Picture Raster Representation Scan

More information

Gray Codes for Reflectable Languages

Gray Codes for Reflectable Languages Gray Codes for Refletable Languages Yue Li Joe Sawada Marh 8, 2008 Abstrat We lassify a type of language alled a refletable language. We then develop a generi algorithm that an be used to list all strings

More information

Introduction to Seismology Spring 2008

Introduction to Seismology Spring 2008 MIT OpenCourseWare http://ow.mit.edu 1.510 Introdution to Seismology Spring 008 For information about iting these materials or our Terms of Use, visit: http://ow.mit.edu/terms. 1.510 Leture Notes 3.3.007

More information

And, the (low-pass) Butterworth filter of order m is given in the frequency domain by

And, the (low-pass) Butterworth filter of order m is given in the frequency domain by Problem Set no.3.a) The ideal low-pass filter is given in the frequeny domain by B ideal ( f ), f f; =, f > f. () And, the (low-pass) Butterworth filter of order m is given in the frequeny domain by B

More information

Dynamic Programming. Lecture #8 of Algorithms, Data structures and Complexity. Joost-Pieter Katoen Formal Methods and Tools Group

Dynamic Programming. Lecture #8 of Algorithms, Data structures and Complexity. Joost-Pieter Katoen Formal Methods and Tools Group Dynami Programming Leture #8 of Algorithms, Data strutures and Complexity Joost-Pieter Katoen Formal Methods and Tools Group E-mail: katoen@s.utwente.nl Otober 29, 2002 JPK #8: Dynami Programming ADC (214020)

More information

Year 11 GCSE Revision - Re-visit work

Year 11 GCSE Revision - Re-visit work Week beginning 6 th 13 th 20 th HALF TERM 27th Topis for revision Fators, multiples and primes Indies Frations, Perentages, Deimals Rounding 6 th Marh Ratio Year 11 GCSE Revision - Re-visit work Understand

More information

Rasterization, or What is glbegin(gl_lines) really doing?

Rasterization, or What is glbegin(gl_lines) really doing? Rasterization, or What is glbegin(gl_lines) really doing? Course web page: http://goo.gl/eb3aa February 23, 2012 Lecture 4 Outline Rasterizing lines DDA/parametric algorithm Midpoint/Bresenham s algorithm

More information

An Alternative Approach to the Fuzzifier in Fuzzy Clustering to Obtain Better Clustering Results

An Alternative Approach to the Fuzzifier in Fuzzy Clustering to Obtain Better Clustering Results An Alternative Approah to the Fuzziier in Fuzzy Clustering to Obtain Better Clustering Results Frank Klawonn Department o Computer Siene University o Applied Sienes BS/WF Salzdahlumer Str. 46/48 D-38302

More information

Dynamic Algorithms Multiple Choice Test

Dynamic Algorithms Multiple Choice Test 3226 Dynami Algorithms Multiple Choie Test Sample test: only 8 questions 32 minutes (Real test has 30 questions 120 minutes) Årskort Name Eah of the following 8 questions has 4 possible answers of whih

More information

We P9 16 Eigenray Tracing in 3D Heterogeneous Media

We P9 16 Eigenray Tracing in 3D Heterogeneous Media We P9 Eigenray Traing in 3D Heterogeneous Media Z. Koren* (Emerson), I. Ravve (Emerson) Summary Conventional two-point ray traing in a general 3D heterogeneous medium is normally performed by a shooting

More information

The Happy Ending Problem

The Happy Ending Problem The Happy Ending Problem Neeldhara Misra STATUTORY WARNING This doument is a draft version 1 Introdution The Happy Ending problem first manifested itself on a typial wintery evening in 1933 These evenings

More information

COMP371 COMPUTER GRAPHICS

COMP371 COMPUTER GRAPHICS COMP371 COMPUTER GRAPHICS LECTURE 14 RASTERIZATION 1 Lecture Overview Review of last class Line Scan conversion Polygon Scan conversion Antialiasing 2 Rasterization The raster display is a matrix of picture

More information

Vertex Unfoldings of Orthogonal Polyhedra: Positive, Negative, and Inconclusive Results

Vertex Unfoldings of Orthogonal Polyhedra: Positive, Negative, and Inconclusive Results CCCG 2018, Winnipeg, Canada, August 8 10, 2018 Vertex Unfoldings of Orthogonal Polyhedra: Positive, Negative, and Inonlusive Results Luis A. Garia Andres Gutierrrez Isaa Ruiz Andrew Winslow Abstrat We

More information

Abstract. Key Words: Image Filters, Fuzzy Filters, Order Statistics Filters, Rank Ordered Mean Filters, Channel Noise. 1.

Abstract. Key Words: Image Filters, Fuzzy Filters, Order Statistics Filters, Rank Ordered Mean Filters, Channel Noise. 1. Fuzzy Weighted Rank Ordered Mean (FWROM) Filters for Mixed Noise Suppression from Images S. Meher, G. Panda, B. Majhi 3, M.R. Meher 4,,4 Department of Eletronis and I.E., National Institute of Tehnology,

More information

OpenGL Graphics System. 2D Graphics Primitives. Drawing 2D Graphics Primitives. 2D Graphics Primitives. Mathematical 2D Primitives.

OpenGL Graphics System. 2D Graphics Primitives. Drawing 2D Graphics Primitives. 2D Graphics Primitives. Mathematical 2D Primitives. D Graphics Primitives Eye sees Displays - CRT/LCD Frame buffer - Addressable pixel array (D) Graphics processor s main function is to map application model (D) by projection on to D primitives: points,

More information

Outline: Software Design

Outline: Software Design Outline: Software Design. Goals History of software design ideas Design priniples Design methods Life belt or leg iron? (Budgen) Copyright Nany Leveson, Sept. 1999 A Little History... At first, struggling

More information

Renderer Implementation: Basics and Clipping. Overview. Preliminaries. David Carr Virtual Environments, Fundamentals Spring 2005

Renderer Implementation: Basics and Clipping. Overview. Preliminaries. David Carr Virtual Environments, Fundamentals Spring 2005 INSTITUTIONEN FÖR SYSTEMTEKNIK LULEÅ TEKNISKA UNIVERSITET Renderer Implementation: Basics and Clipping David Carr Virtual Environments, Fundamentals Spring 2005 Feb-28-05 SMM009, Basics and Clipping 1

More information

Einführung in Visual Computing

Einführung in Visual Computing Einführung in Visual Computing 186.822 Rasterization Werner Purgathofer Rasterization in the Rendering Pipeline scene objects in object space transformed vertices in clip space scene in normalized device

More information

Graphics (Output) Primitives. Chapters 3 & 4

Graphics (Output) Primitives. Chapters 3 & 4 Graphics (Output) Primitives Chapters 3 & 4 Graphic Output and Input Pipeline Scan conversion converts primitives such as lines, circles, etc. into pixel values geometric description a finite scene area

More information

Rasteriza2on and Clipping

Rasteriza2on and Clipping Overview Scan conversion Computer Graphics Rasterizaon and Clipping Polygon filling Clipping in D Aleksandra Pizurica Raster Display PIEL (picture element) RASTER (a rectangular array of points or dots)

More information

CPSC / Scan Conversion

CPSC / Scan Conversion CPSC 599.64 / 601.64 Computer Screens: Raster Displays pixel rasters (usually) square pixels in rectangular raster evenly cover the image problem no such things such as lines, circles, etc. scan conversion

More information

CS 4731: Computer Graphics Lecture 21: Raster Graphics: Drawing Lines. Emmanuel Agu

CS 4731: Computer Graphics Lecture 21: Raster Graphics: Drawing Lines. Emmanuel Agu CS 4731: Computer Graphics Lecture 21: Raster Graphics: Drawing Lines Emmanuel Agu 2D Graphics Pipeline Clipping Object World Coordinates Applying world window Object subset window to viewport mapping

More information

Directed Rectangle-Visibility Graphs have. Abstract. Visibility representations of graphs map vertices to sets in Euclidean space and

Directed Rectangle-Visibility Graphs have. Abstract. Visibility representations of graphs map vertices to sets in Euclidean space and Direted Retangle-Visibility Graphs have Unbounded Dimension Kathleen Romanik DIMACS Center for Disrete Mathematis and Theoretial Computer Siene Rutgers, The State University of New Jersey P.O. Box 1179,

More information

特集 Road Border Recognition Using FIR Images and LIDAR Signal Processing

特集 Road Border Recognition Using FIR Images and LIDAR Signal Processing デンソーテクニカルレビュー Vol. 15 2010 特集 Road Border Reognition Using FIR Images and LIDAR Signal Proessing 高木聖和 バーゼル ファルディ Kiyokazu TAKAGI Basel Fardi ヘンドリック ヴァイゲル Hendrik Weigel ゲルド ヴァニーリック Gerd Wanielik This paper

More information

Analysis of input and output configurations for use in four-valued CCD programmable logic arrays

Analysis of input and output configurations for use in four-valued CCD programmable logic arrays nalysis of input and output onfigurations for use in four-valued D programmable logi arrays J.T. utler H.G. Kerkhoff ndexing terms: Logi, iruit theory and design, harge-oupled devies bstrat: s in binary,

More information

Solution Notes. COMP 151: Terms Test

Solution Notes. COMP 151: Terms Test Family Name:.............................. Other Names:............................. ID Number:............................... Signature.................................. Solution Notes COMP 151: Terms

More information

Unit 2 Output Primitives and their Attributes

Unit 2 Output Primitives and their Attributes Unit 2 Output Primitives and their Attributes Shapes and colors of the objects can be described internally with pixel arrays or with sets of basic geometric structures, such as straight line segments and

More information

Detection and Recognition of Non-Occluded Objects using Signature Map

Detection and Recognition of Non-Occluded Objects using Signature Map 6th WSEAS International Conferene on CIRCUITS, SYSTEMS, ELECTRONICS,CONTROL & SIGNAL PROCESSING, Cairo, Egypt, De 9-31, 007 65 Detetion and Reognition of Non-Oluded Objets using Signature Map Sangbum Park,

More information

Multi-Piece Mold Design Based on Linear Mixed-Integer Program Toward Guaranteed Optimality

Multi-Piece Mold Design Based on Linear Mixed-Integer Program Toward Guaranteed Optimality INTERNATIONAL CONFERENCE ON MANUFACTURING AUTOMATION (ICMA200) Multi-Piee Mold Design Based on Linear Mixed-Integer Program Toward Guaranteed Optimality Stephen Stoyan, Yong Chen* Epstein Department of

More information

From Ver(ces to Fragments: Rasteriza(on

From Ver(ces to Fragments: Rasteriza(on From Ver(ces to Fragments: Rasteriza(on From Ver(ces to Fragments 3D vertices vertex shader rasterizer fragment shader final pixels 2D screen fragments l determine fragments to be covered l interpolate

More information

Computer Graphics. Lecture 2. Doç. Dr. Mehmet Gokturk

Computer Graphics. Lecture 2. Doç. Dr. Mehmet Gokturk Computer Graphics Lecture 2 Doç. Dr. Mehmet Gokturk Mathematical Foundations l Hearn and Baker (A1 A4) appendix gives good review l Some of the mathematical tools l Trigonometry l Vector spaces l Points,

More information

Rendering. A simple X program to illustrate rendering

Rendering. A simple X program to illustrate rendering Rendering A simple X program to illustrate rendering The programs in this directory provide a simple x based application for us to develop some graphics routines. Please notice the following: All points

More information

A DYNAMIC ACCESS CONTROL WITH BINARY KEY-PAIR

A DYNAMIC ACCESS CONTROL WITH BINARY KEY-PAIR Malaysian Journal of Computer Siene, Vol 10 No 1, June 1997, pp 36-41 A DYNAMIC ACCESS CONTROL WITH BINARY KEY-PAIR Md Rafiqul Islam, Harihodin Selamat and Mohd Noor Md Sap Faulty of Computer Siene and

More information

Scan Converting Lines

Scan Converting Lines Scan Conversion 1 Scan Converting Lines Line Drawing Draw a line on a raster screen between two points What s wrong with the statement of the problem? it doesn t say anything about which points are allowed

More information

Line Drawing. Foundations of Computer Graphics Torsten Möller

Line Drawing. Foundations of Computer Graphics Torsten Möller Line Drawing Foundations of Computer Graphics Torsten Möller Rendering Pipeline Hardware Modelling Transform Visibility Illumination + Shading Perception, Interaction Color Texture/ Realism Reading Angel

More information

Display Technologies: CRTs Raster Displays

Display Technologies: CRTs Raster Displays Rasterization Display Technologies: CRTs Raster Displays Raster: A rectangular array of points or dots Pixel: One dot or picture element of the raster Scanline: A row of pixels Rasterize: find the set

More information

Announcements. Midterms graded back at the end of class Help session on Assignment 3 for last ~20 minutes of class. Computer Graphics

Announcements. Midterms graded back at the end of class Help session on Assignment 3 for last ~20 minutes of class. Computer Graphics Announcements Midterms graded back at the end of class Help session on Assignment 3 for last ~20 minutes of class 1 Scan Conversion Overview of Rendering Scan Conversion Drawing Lines Drawing Polygons

More information

From Vertices to Fragments: Rasterization. Reading Assignment: Chapter 7. Special memory where pixel colors are stored.

From Vertices to Fragments: Rasterization. Reading Assignment: Chapter 7. Special memory where pixel colors are stored. From Vertices to Fragments: Rasterization Reading Assignment: Chapter 7 Frame Buffer Special memory where pixel colors are stored. System Bus CPU Main Memory Graphics Card -- Graphics Processing Unit (GPU)

More information

CS123 INTRODUCTION TO COMPUTER GRAPHICS. Clipping. Concepts, Algorithms for line clipping. 1 of 16. Andries van Dam. Clipping - 10/12/17

CS123 INTRODUCTION TO COMPUTER GRAPHICS. Clipping. Concepts, Algorithms for line clipping. 1 of 16. Andries van Dam. Clipping - 10/12/17 Clipping Concepts, Algorithms for line clipping 1 of 16 Line Clipping in 2D Clipping endpoints If x min x x max and y min y y max, the point is inside the clip rectangle. Endpoint analysis for lines: if

More information

Chapter 2: Introduction to Maple V

Chapter 2: Introduction to Maple V Chapter 2: Introdution to Maple V 2-1 Working with Maple Worksheets Try It! (p. 15) Start a Maple session with an empty worksheet. The name of the worksheet should be Untitled (1). Use one of the standard

More information

Incremental Mining of Partial Periodic Patterns in Time-series Databases

Incremental Mining of Partial Periodic Patterns in Time-series Databases CERIAS Teh Report 2000-03 Inremental Mining of Partial Periodi Patterns in Time-series Dataases Mohamed G. Elfeky Center for Eduation and Researh in Information Assurane and Seurity Purdue University,

More information

CleanUp: Improving Quadrilateral Finite Element Meshes

CleanUp: Improving Quadrilateral Finite Element Meshes CleanUp: Improving Quadrilateral Finite Element Meshes Paul Kinney MD-10 ECC P.O. Box 203 Ford Motor Company Dearborn, MI. 8121 (313) 28-1228 pkinney@ford.om Abstrat: Unless an all quadrilateral (quad)

More information

Grade 6. Mathematics. Student Booklet SPRING 2009 RELEASED ASSESSMENT QUESTIONS. Assessment of Reading, Writing and Mathematics, Junior Division

Grade 6. Mathematics. Student Booklet SPRING 2009 RELEASED ASSESSMENT QUESTIONS. Assessment of Reading, Writing and Mathematics, Junior Division Grade 6 Assessment of Reading, Writing and Mathematis, Junior Division Student Booklet Mathematis SPRING 2009 RELEASED ASSESSMENT QUESTIONS Please note: The format of these booklets is slightly different

More information

13.1 Numerical Evaluation of Integrals Over One Dimension

13.1 Numerical Evaluation of Integrals Over One Dimension 13.1 Numerial Evaluation of Integrals Over One Dimension A. Purpose This olletion of subprograms estimates the value of the integral b a f(x) dx where the integrand f(x) and the limits a and b are supplied

More information

ICCGLU. A Fortran IV subroutine to solve large sparse general systems of linear equations. J.J. Dongarra, G.K. Leaf and M. Minkoff.

ICCGLU. A Fortran IV subroutine to solve large sparse general systems of linear equations. J.J. Dongarra, G.K. Leaf and M. Minkoff. http://www.netlib.org/linalg/ig-do 1 of 8 12/7/2009 11:14 AM ICCGLU A Fortran IV subroutine to solve large sparse general systems of linear equations. J.J. Dongarra, G.K. Leaf and M. Minkoff July, 1982

More information

1 Some easy lines (2, 17) (10, 17) (18, 2) (18, 14) (1, 5) (8, 12) Check with a ruler. Are your lines straight?

1 Some easy lines (2, 17) (10, 17) (18, 2) (18, 14) (1, 5) (8, 12) Check with a ruler. Are your lines straight? 1 Some easy lines Computers draw images using pixels. Pixels are the tiny squares that make up the image you see on computer monitors. If you look carefully at a computer screen with a magnifying glass,

More information

This fact makes it difficult to evaluate the cost function to be minimized

This fact makes it difficult to evaluate the cost function to be minimized RSOURC LLOCTION N SSINMNT In the resoure alloation step the amount of resoures required to exeute the different types of proesses is determined. We will refer to the time interval during whih a proess

More information

Realtime 3D Computer Graphics Virtual Reality

Realtime 3D Computer Graphics Virtual Reality Realtime 3D Computer Graphics Virtual Reality From Vertices to Fragments Overview Overall goal recapitulation: Input: World description, e.g., set of vertices and states for objects, attributes, camera,

More information

8 : Learning Fully Observed Undirected Graphical Models

8 : Learning Fully Observed Undirected Graphical Models 10-708: Probabilisti Graphial Models 10-708, Spring 2018 8 : Learning Fully Observed Undireted Graphial Models Leturer: Kayhan Batmanghelih Sribes: Chenghui Zhou, Cheng Ran (Harvey) Zhang When learning

More information

Learning Convention Propagation in BeerAdvocate Reviews from a etwork Perspective. Abstract

Learning Convention Propagation in BeerAdvocate Reviews from a etwork Perspective. Abstract CS 9 Projet Final Report: Learning Convention Propagation in BeerAdvoate Reviews from a etwork Perspetive Abstrat We look at the way onventions propagate between reviews on the BeerAdvoate dataset, and

More information

Solutions to Tutorial 2 (Week 9)

Solutions to Tutorial 2 (Week 9) The University of Syney Shool of Mathematis an Statistis Solutions to Tutorial (Week 9) MATH09/99: Disrete Mathematis an Graph Theory Semester, 0. Determine whether eah of the following sequenes is the

More information

On - Line Path Delay Fault Testing of Omega MINs M. Bellos 1, E. Kalligeros 1, D. Nikolos 1,2 & H. T. Vergos 1,2

On - Line Path Delay Fault Testing of Omega MINs M. Bellos 1, E. Kalligeros 1, D. Nikolos 1,2 & H. T. Vergos 1,2 On - Line Path Delay Fault Testing of Omega MINs M. Bellos, E. Kalligeros, D. Nikolos,2 & H. T. Vergos,2 Dept. of Computer Engineering and Informatis 2 Computer Tehnology Institute University of Patras,

More information

Algorithms, Mechanisms and Procedures for the Computer-aided Project Generation System

Algorithms, Mechanisms and Procedures for the Computer-aided Project Generation System Algorithms, Mehanisms and Proedures for the Computer-aided Projet Generation System Anton O. Butko 1*, Aleksandr P. Briukhovetskii 2, Dmitry E. Grigoriev 2# and Konstantin S. Kalashnikov 3 1 Department

More information

Computer Graphics D Graphics Algorithms

Computer Graphics D Graphics Algorithms ! Computer Graphics 2014! 2. 2D Graphics Algorithms Hongxin Zhang State Key Lab of CAD&CG, Zhejiang University 2014-09-26! Screen Nikon D40 Sensors 3 Rasterization - The task of displaying a world modeled

More information

(Refer Slide Time: 00:03:51)

(Refer Slide Time: 00:03:51) Computer Graphics Prof. Sukhendu Das Dept. of Computer Science and Engineering Indian Institute of Technology, Madras Lecture 17 Scan Converting Lines, Circles and Ellipses Hello and welcome everybody

More information

CS-184: Computer Graphics. Today

CS-184: Computer Graphics. Today CS-184: Computer Graphics Lecture #2: Scan Conversion Prof. James O Brien University of California, Berkeley V2005-02-1.3 Today 2D Scan Conversion Drawing Lines Drawing Curves Filling Algorithms 2 Basically,

More information

A Novel Validity Index for Determination of the Optimal Number of Clusters

A Novel Validity Index for Determination of the Optimal Number of Clusters IEICE TRANS. INF. & SYST., VOL.E84 D, NO.2 FEBRUARY 2001 281 LETTER A Novel Validity Index for Determination of the Optimal Number of Clusters Do-Jong KIM, Yong-Woon PARK, and Dong-Jo PARK, Nonmembers

More information

Adaptive Implicit Surface Polygonization using Marching Triangles

Adaptive Implicit Surface Polygonization using Marching Triangles Volume 20 (2001), Number 2 pp. 67 80 Adaptive Impliit Surfae Polygonization using Marhing Triangles Samir Akkouhe Eri Galin L.I.G.I.M L.I.G.I.M Eole Centrale de Lyon Université Claude Bernard Lyon 1 B.P.

More information

Colouring contact graphs of squares and rectilinear polygons de Berg, M.T.; Markovic, A.; Woeginger, G.

Colouring contact graphs of squares and rectilinear polygons de Berg, M.T.; Markovic, A.; Woeginger, G. Colouring ontat graphs of squares and retilinear polygons de Berg, M.T.; Markovi, A.; Woeginger, G. Published in: nd European Workshop on Computational Geometry (EuroCG 06), 0 Marh - April, Lugano, Switzerland

More information

Type of document: Usebility Checklist

Type of document: Usebility Checklist Projet: JEGraph Type of doument: Usebility Cheklist Author: Max Bryan Version: 1.30 2011 Envidate GmbH Type of Doumet Developer guidelines User guidelines Dutybook Speifiation Programming and testing Test

More information

Smooth Trajectory Planning Along Bezier Curve for Mobile Robots with Velocity Constraints

Smooth Trajectory Planning Along Bezier Curve for Mobile Robots with Velocity Constraints Smooth Trajetory Planning Along Bezier Curve for Mobile Robots with Veloity Constraints Gil Jin Yang and Byoung Wook Choi Department of Eletrial and Information Engineering Seoul National University of

More information

Tópicos de Computação Gráfica Topics in Computer Graphics 10509: Doutoramento em Engenharia Informática. Chap. 2 Rasterization.

Tópicos de Computação Gráfica Topics in Computer Graphics 10509: Doutoramento em Engenharia Informática. Chap. 2 Rasterization. Tópicos de Computação Gráfica Topics in Computer Graphics 10509: Doutoramento em Engenharia Informática Chap. 2 Rasterization Rasterization Outline : Raster display technology. Basic concepts: pixel, resolution,

More information

Two-Dimensional Viewing. Chapter 6

Two-Dimensional Viewing. Chapter 6 Two-Dimensional Viewing Chapter 6 Viewing Pipeline Two-Dimensional Viewing Two dimensional viewing transformation From world coordinate scene description to device (screen) coordinates Normalization and

More information

From Vertices To Fragments-1

From Vertices To Fragments-1 From Vertices To Fragments-1 1 Objectives Clipping Line-segment clipping polygon clipping 2 Overview At end of the geometric pipeline, vertices have been assembled into primitives Must clip out primitives

More information

1. The collection of the vowels in the word probability. 2. The collection of real numbers that satisfy the equation x 9 = 0.

1. The collection of the vowels in the word probability. 2. The collection of real numbers that satisfy the equation x 9 = 0. C HPTER 1 SETS I. DEFINITION OF SET We begin our study of probability with the disussion of the basi onept of set. We assume that there is a ommon understanding of what is meant by the notion of a olletion

More information

1. Inversions. A geometric construction relating points O, A and B looks as follows.

1. Inversions. A geometric construction relating points O, A and B looks as follows. 1. Inversions. 1.1. Definitions of inversion. Inversion is a kind of symmetry about a irle. It is defined as follows. he inversion of degree R 2 entered at a point maps a point to the point on the ray

More information

Output Primitives. Dr. S.M. Malaek. Assistant: M. Younesi

Output Primitives. Dr. S.M. Malaek. Assistant: M. Younesi Output Primitives Dr. S.M. Malaek Assistant: M. Younesi Output Primitives Output Primitives: Basic geometric structures (points, straight line segment, circles and other conic sections, quadric surfaces,

More information

CS 4300 Computer Graphics. Prof. Harriet Fell Fall 2012 Lecture 5 September 13, 2012

CS 4300 Computer Graphics. Prof. Harriet Fell Fall 2012 Lecture 5 September 13, 2012 CS 4300 Computer Graphics Prof. Harriet Fell Fall 2012 Lecture 5 September 13, 2012 1 Today s Topics Vectors review Shirley et al. 2.4 Rasters Shirley et al. 3.0-3.2.1 Rasterizing Lines Shirley et al.

More information

Computer Graphics: Graphics Output Primitives Line Drawing Algorithms

Computer Graphics: Graphics Output Primitives Line Drawing Algorithms Computer Graphics: Graphics Output Primitives Line Drawing Algorithms By: A. H. Abdul Hafez Abdul.hafez@hku.edu.tr, 1 Outlines 1. Basic concept of lines in OpenGL 2. Line Equation 3. DDA Algorithm 4. DDA

More information

Line Drawing. Introduction to Computer Graphics Torsten Möller / Mike Phillips. Machiraju/Zhang/Möller

Line Drawing. Introduction to Computer Graphics Torsten Möller / Mike Phillips. Machiraju/Zhang/Möller Line Drawing Introduction to Computer Graphics Torsten Möller / Mike Phillips Rendering Pipeline Hardware Modelling Transform Visibility Illumination + Shading Perception, Color Interaction Texture/ Realism

More information

PHYS 3437: Computational Methods in Physics, Assignment 2

PHYS 3437: Computational Methods in Physics, Assignment 2 PHYS 3437: Computational Methods in Physis, Assignment 2 Set January 27th due Feb 26th NOTE: This assignment is potentially quite lengthy if you are urrently developing your programming skills. If so,

More information

Overview of Computer Graphics

Overview of Computer Graphics Application of Computer Graphics UNIT- 1 Overview of Computer Graphics Computer-Aided Design for engineering and architectural systems etc. Objects maybe displayed in a wireframe outline form. Multi-window

More information

2D rendering takes a photo of the 2D scene with a virtual camera that selects an axis aligned rectangle from the scene. The photograph is placed into

2D rendering takes a photo of the 2D scene with a virtual camera that selects an axis aligned rectangle from the scene. The photograph is placed into 2D rendering takes a photo of the 2D scene with a virtual camera that selects an axis aligned rectangle from the scene. The photograph is placed into the viewport of the current application window. A pixel

More information

FROM VERTICES TO FRAGMENTS. Lecture 5 Comp3080 Computer Graphics HKBU

FROM VERTICES TO FRAGMENTS. Lecture 5 Comp3080 Computer Graphics HKBU FROM VERTICES TO FRAGMENTS Lecture 5 Comp3080 Computer Graphics HKBU OBJECTIVES Introduce basic implementation strategies Clipping Scan conversion OCTOBER 9, 2011 2 OVERVIEW At end of the geometric pipeline,

More information

Cracked Hole Finite Element Modeling

Cracked Hole Finite Element Modeling Craked Hole Finite Element Modeling (E-20-F72) Researh Report Submitted to: Lokheed Martin, Program Manager: Dr. Stephen P. Engelstad Prinipal Investigator: Dr. Rami M. Haj-Ali Shool of Civil and Environmental

More information

(Refer Slide Time: 00:02:02)

(Refer Slide Time: 00:02:02) Computer Graphics Prof. Sukhendu Das Dept. of Computer Science and Engineering Indian Institute of Technology, Madras Lecture - 20 Clipping: Lines and Polygons Hello and welcome everybody to the lecture

More information

Approximate logic synthesis for error tolerant applications

Approximate logic synthesis for error tolerant applications Approximate logi synthesis for error tolerant appliations Doohul Shin and Sandeep K. Gupta Eletrial Engineering Department, University of Southern California, Los Angeles, CA 989 {doohuls, sandeep}@us.edu

More information

Scan Conversion. Lines and Circles

Scan Conversion. Lines and Circles Scan Conversion Lines and Circles (Chapter 3 in Foley & Van Dam) 2D Line Implicit representation: αx + βy + γ = 0 Explicit representation: y y = mx+ B m= x Parametric representation: x P= y P = t y P +

More information

Lazy Updates: An Efficient Technique to Continuously Monitoring Reverse knn

Lazy Updates: An Efficient Technique to Continuously Monitoring Reverse knn Lazy Updates: An Effiient Tehniue to Continuously onitoring Reverse k uhammad Aamir Cheema, Xuemin Lin, Ying Zhang, Wei Wang, Wenjie Zhang The University of ew South Wales, Australia ICTA, Australia {maheema,

More information

The Alpha Torque and Quantum Physics

The Alpha Torque and Quantum Physics The Alpha Torque and Quantum Physis Zhiliang Cao, Henry Cao williamao15000@yahoo.om, henry.gu.ao@gmail.om July 18, 010 Abstrat In the enter of the unierse, there isn t a super massie blak hole or any speifi

More information

arxiv: v1 [cs.db] 13 Sep 2017

arxiv: v1 [cs.db] 13 Sep 2017 An effiient lustering algorithm from the measure of loal Gaussian distribution Yuan-Yen Tai (Dated: May 27, 2018) In this paper, I will introdue a fast and novel lustering algorithm based on Gaussian distribution

More information

Fitting conics to paracatadioptric projections of lines

Fitting conics to paracatadioptric projections of lines Computer Vision and Image Understanding 11 (6) 11 16 www.elsevier.om/loate/viu Fitting onis to paraatadioptri projetions of lines João P. Barreto *, Helder Araujo Institute for Systems and Robotis, Department

More information

MATH STUDENT BOOK. 12th Grade Unit 6

MATH STUDENT BOOK. 12th Grade Unit 6 MATH STUDENT BOOK 12th Grade Unit 6 Unit 6 TRIGONOMETRIC APPLICATIONS MATH 1206 TRIGONOMETRIC APPLICATIONS INTRODUCTION 3 1. TRIGONOMETRY OF OBLIQUE TRIANGLES 5 LAW OF SINES 5 AMBIGUITY AND AREA OF A TRIANGLE

More information

COMP30019 Graphics and Interaction Scan Converting Polygons and Lines

COMP30019 Graphics and Interaction Scan Converting Polygons and Lines COMP30019 Graphics and Interaction Scan Converting Polygons and Lines Department of Computer Science and Software Engineering The Lecture outline Introduction Scan conversion Scan-line algorithm Edge coherence

More information

Sparse Certificates for 2-Connectivity in Directed Graphs

Sparse Certificates for 2-Connectivity in Directed Graphs Sparse Certifiates for 2-Connetivity in Direted Graphs Loukas Georgiadis Giuseppe F. Italiano Aikaterini Karanasiou Charis Papadopoulos Nikos Parotsidis Abstrat Motivated by the emergene of large-sale

More information

HIGHER ORDER full-wave three-dimensional (3-D) large-domain techniques in

HIGHER ORDER full-wave three-dimensional (3-D) large-domain techniques in FACTA UNIVERSITATIS (NIŠ) SER.: ELEC. ENERG. vol. 21, no. 2, August 2008, 209-220 Comparison of Higher Order FEM and MoM/SIE Approahes in Analyses of Closed- and Open-Region Eletromagneti Problems Milan

More information

Sequential Incremental-Value Auctions

Sequential Incremental-Value Auctions Sequential Inremental-Value Autions Xiaoming Zheng and Sven Koenig Department of Computer Siene University of Southern California Los Angeles, CA 90089-0781 {xiaominz,skoenig}@us.edu Abstrat We study the

More information

Algorithms for External Memory Lecture 6 Graph Algorithms - Weighted List Ranking

Algorithms for External Memory Lecture 6 Graph Algorithms - Weighted List Ranking Algorithms for External Memory Leture 6 Graph Algorithms - Weighted List Ranking Leturer: Nodari Sithinava Sribe: Andi Hellmund, Simon Ohsenreither 1 Introdution & Motivation After talking about I/O-effiient

More information

An Event Display for ATLAS H8 Pixel Test Beam Data

An Event Display for ATLAS H8 Pixel Test Beam Data An Event Display for ATLAS H8 Pixel Test Beam Data George Gollin Centre de Physique des Partiules de Marseille and University of Illinois April 17, 1999 g-gollin@uiu.edu An event display program is now

More information

Graph-Based vs Depth-Based Data Representation for Multiview Images

Graph-Based vs Depth-Based Data Representation for Multiview Images Graph-Based vs Depth-Based Data Representation for Multiview Images Thomas Maugey, Antonio Ortega, Pasal Frossard Signal Proessing Laboratory (LTS), Eole Polytehnique Fédérale de Lausanne (EPFL) Email:

More information

INTERPOLATED AND WARPED 2-D DIGITAL WAVEGUIDE MESH ALGORITHMS

INTERPOLATED AND WARPED 2-D DIGITAL WAVEGUIDE MESH ALGORITHMS Proeedings of the COST G-6 Conferene on Digital Audio Effets (DAFX-), Verona, Italy, Deember 7-9, INTERPOLATED AND WARPED -D DIGITAL WAVEGUIDE MESH ALGORITHMS Vesa Välimäki Lab. of Aoustis and Audio Signal

More information

Extracting Partition Statistics from Semistructured Data

Extracting Partition Statistics from Semistructured Data Extrating Partition Statistis from Semistrutured Data John N. Wilson Rihard Gourlay Robert Japp Mathias Neumüller Department of Computer and Information Sienes University of Strathlyde, Glasgow, UK {jnw,rsg,rpj,mathias}@is.strath.a.uk

More information

Multiple Assignments

Multiple Assignments Two Outputs Conneted Together Multiple Assignments Two Outputs Conneted Together if (En1) Q

More information