Graphics (Output) Primitives. Chapters 3 & 4
|
|
- Brianna Cobb
- 5 years ago
- Views:
Transcription
1 Graphics (Output) Primitives Chapters 3 & 4
2 Graphic Output ad Iput Pipelie Sca coversio coverts primitives such as lies, circles, etc. ito pixel values geometric descriptio Þ a fiite scee area Clippig the process of determiig the portio of a primitive lyig withi a regio called clip regio
3 Graphic Output Pipelie applicatio model : descriptios of objects applicatio program : geerates a sequece of fuctios to display a model graphics package : clippig, sca coversio, shadig, etc. display H/W
4 Graphic Iput Pipelie user iteractio (e.g., mouse click) graphic package (by samplig or evet-drive iput fuctios) applicatio program modify the model or the image o the scree
5 Output Pipelie i Software Whe sca coversio ad clippig happe? Clippig before sca coversio for lies, rectagles, ad polygos clippig before sca covertig each primitive (scissorig) Clippig after sca covertig the etire collectio of primitives ito a temporary cavas for text
6 Sca Covertig Lies A lie from (x 1,y 1 ) to (x 2,y 2 ) Þ a series of pixels [Criteria] Straight lies should appear straight Lie ed-poits should be costraied Uiform desity ad itesity Lie algorithms should be fast
7 Why Study Sca Coversio Algorithms? Every high-ed graphics card support this. You will ever have to write these routies yourself, uless you become a graphics hardware desiger. So why lear this stuff? Maybe you will become a graphics hardware desiger. But seriously, the same basic tricks uderlie lots of algorithms: 3-D shaded polygos Texture mappig etc.
8 Simple Sca Covertig Lies Based o slope-itercept algorithm from algebra: y = mx + b Simple approach: icremet x, solve for y Floatig poit arithmetic required
9 Digital Differetial Aalyzer(DDA) Idea 1. Go to startig ed poit 2. Icremet x ad y values by costats proportioal to x ad y such that oe of them is 1. - If 0<m 1, y k+1 = y k + m - If m>1, x k+1 = x k + 1/m 3. Roud to the closest raster positio ( i x i, y ) ( x + 1, Roud( y m)) ( i i i i + x, Roud( y )) ( x + 1, y m) i i +
10 Digital Differetial Aalyzer(DDA) Drawbacks roudig to a iteger takes time floatig-poit operatios Is there a simpler way? Ca we use oly iteger arithmetic? Easier to implemet i hardware
11 Midpoit Lie Algorithm (Breseham's Lie Algorithm) Assume a lie from (x 1, y 1 ) to (x 2, y 2 ) that 0<m < 1 ad x 1 <x 2. Use symmetry
12 Midpoit Lie Algorithm (Breseham's Lie Algorithm) Suppose that we have just fiished drawig a pixel P = (x k, y k ) ad we are iterested i figurig out which pixel to draw ext. If distace(ne,m) > distace(e,m) the select E = (x k +1, y k ) y k +1 y NE d upper else d lower select NE = (x k +1, y k +1) y k P E x k x k +1
13 Midpoit Lie Algorithm (Breseham's Lie Algorithm) y = m(x k +1)+b d lower = y y k = m(x k +1)+b y k d upper = (y k +1) y = y k +1 m(x k +1) b d lower d upper =2m(x k +1) 2y k +2b 1 Decisio parameter, p k (by substitutig m=δy/δx) p k = Δx(d lower d upper ) = 2Δy x k 2Δx y k +c, where c= 2Δy+ Δx(2b 1) The sig of p k is the same as the sig of (d lower d upper )
14 Midpoit Lie Algorithm (Breseham's Lie Algorithm) p k = Δx(d lower d upper ) If y k is closer to the lie path, d lower < d upper p k <0 Þ plot the lower pixel (x k +1, y k ) Otherwise, Þ plot the lower pixel (x k +1, y k +1 )
15 Midpoit Lie Algorithm (Breseham's Lie Algorithm) p k+1 = 2Δy x k+1 2Δx y k+1 +c p k = 2Δy x k 2Δx y k +c (subtractio) p k+1 p k = 2Δy(x k+1 x k ) 2Δx(y k+1 y k ) (x k+1 = x k +1) p k+1 = p k +2Δy 2Δx(y k+1 y k ) ( y k+1 y k is either 0 or 1, depedig o the sig of p k ) p k+1 = p k +2Δy Ü y k+1 y k = 0 p k < 0 p k+1 = p k +2Δy 2Δx Ü y k+1 y k = 1 p k ³ 0
16 Midpoit Lie Algorithm (Breseham's Lie Algorithm) p 0 = 2Δy Δx If p k < 0, plot (x k +1, y k ) ad p k+1 = p k +2Δy Otherwise, plot (x k +1, y k +1 ) ad p k+1 = p k +2Δy 2Δx Advatages Oly eed add itegers ad multiply by 2 (which ca be doe by shift operatios) Icremetal algorithm
17 Midpoit Lie Algorithm- Example Lie ed poits: (x 0,y 0 ) = (5,8); (x 1,y 1 ) = (9,11) Δx = 4; Δy = 3 p 0 = 2Δy Δx = 2 > 0 è select (5+1, 8+1) p 1 = p 0 + 2(Δy - Δx) = 0 è Select (6+1,9) p 2 = p 1 + 2Δy = = 6 è Select (7+1, 9+1)
18 Sca Covertig Lies (issues) Edpoit order S 01 is a set of pixels that lie o the lie from P 0 to P 1 S 10 is a set of pixels that lie o the lie from P 1 to P 0 Þ S 01 should be the same as S 10 Varyig itesity of a lie as a fuctio of slope For the diagoal lie, it is loger tha the horizotal lie but has the same umber of pixels as the latter Þ eeds atialiasig Outlie primitives composed of lies Care must be take to draw shared vertices of polylies oly oce
19 Sca Covertig Lies (issues) Startig at the edge of a clip rectagle Startig poit is ot the itersectio poit of the lie with clippig edge Þ Clipped lie may have a differet slope
20 Sca Covertig Circles Eight-way symmetry We oly cosider 45 of a circle
21 Midpoit Circle Algorithm Suppose that we have just fiished drawig a pixel (x p,y p ) ad we are iterested i figurig out which pixel to draw ext.
22 Midpoit Circle Algorithm f(x,y) = x 2 + y 2 r 2 < 0 iside the circle = 0 o the circle > 0 outside the circle If f (x p +1, y p ½) < 0 the select E(x p +1, y p ); else select SE(x p +1, y p 1)
23 Midpoit Circle Algorithm p k = f (x k +1, y k ½) = (x k +1) 2 + (y k ½) 2 r 2 p k <0 the midpoit is iside the circle ad y k is closer to the circle boudary Þ plot the lower pixel (x k +1, y k ) Otherwise, the midpoit is outside or o the circle ad y k 1 is closer to the circle boudary Þ plot the lower pixel (x k +1, y k 1 )
24 Midpoit Circle Algorithm p k = (x k +1) 2 + (y k ½) 2 r 2 p k+1 = f (x k+1 +1, y k+1 ½) = [(x k +1)+1] 2 + (y k+1 ½) 2 r 2 p k+1 = p k +2(x k +1)+ (y k+12 y k2 ) (y k+1 y k ) +1 ( y k+1 is either y k or y k 1, depedig o the sig of p k ) p k+1 = p k +2x k+1 +1 Ü y k+1 = y k p k < 0 p k+1 = p k + 2x k y k+1 Ü y k+1 = y k 1 p k ³ 0, where 2x k+1 =2x k +2 2y k+1 =2y k 2
25 Midpoit Circle Algorithm (x 0, y o ) = (0, r) p 0 = f (1, r ½) = 5/4 r = 1 r (for r a iteger) If p k < 0, plot (x k +1, y k ) ad p k+1 = p k +2x k+1 +1 Otherwise, plot (x k +1, y k 1 ) ad p k+1 = p k + 2x k y k+1, where 2x k+1 =2x k +2 2y k+1 =2y k 2 Advatages Oly usig iteger additios ad subtractios Icremetal algorithm
26 Midpoit Ellipse Algorithm Use symmetry of ellipse Divide the quadrat ito two regios the boudary of two regios is the poit at which the curve has a slope of -1. Process by takig uit steps i the x directio to the poit P, the takig uit steps i the y directio Apply midpoit algorithm. Slope = -1 r y P r x
27 Midpoit Ellipse Algorithm æ x - x ç è rx c ö ø 2 æ ç y - y + è ry = 1 f ellipse (x,y) = r y2 x 2 + r x2 y 2 r x2 r y 2 < 0 iside the ellipse boudary = 0 o the ellipse boudary c ö ø 2 > 0 outside the ellipse boudary r y r x p1 k = f ellipse (x k +1, y k ½) p2 k = f ellipse (x k +½, y k 1)
28 Maitaiig Geometric Properties Whe lie drawig, exclude the last poit Whe drawig a eclosed area, display the area usig oly those pixels that are iterior to the object boudaries
29 Iside-Outside Tests Odd-eve Rule (Odd-parity Rule) For each pixel, determie if it is iside or outside of a give polygo. Approach From ay poit P beig tested, cast a ray to a distat poit i a arbitrary directio If the umber of crossigs is odd, the P is a iterior poit. If the umber of crossigs is eve, the P is a exterior poit.
30 Odd-Eve Rule Be sure that the lie path does ot itersect ay lie-segmet edpoits.
31 Odd-Eve Rule P Edge Crossig Rules a upward edge icludes its startig edpoit, ad excludes its fial edpoit; a dowward edge excludes its startig edpoit, ad iclude its fial edpoit; horizotal edges are excluded;
32 Odd-Eve Rule Very fragile algorithm Ray crosses a vertex Ray is coicidet with a edge Commoly used i ECAD Suitable for H/W
33 Iside-Outside Tests Nozero Widig Number Rule A widig umber the # of times the boudary of a object wids aroud a particular poit P i the couterclockwise directio No-zero values: iterior poits Zero values : exterior poits
34 Nozero Widig Number Rule Widig um: iitialized to 0 From ay poit P beig tested, cast a ray to a distat poit i a arbitrary directio +1: edge crossig the lie from right to left -1: left to right Use the sig of the cross product of the lie ad edge vectors No-zero: iterior Zero: exterior Be sure that the lie path does ot pass through ay lie-segmet edpoits.
35 How to decide iterior Vertices are umbered:
36 Polygo Tables A object described as a set of polygo surface facets Geometric data vertex table edge table surface-fact table Other parameters Color, trasparecy, lightreflectio properties
37 Area Fillig How to geerate a solid color/pattered polygo area Sca-lie fill algorithm Which pixels? What value?
38 Sca-Lie Fill Algorithm For each sca lie (1) Fid itersectios (the extrema of spas) Use Breseham's lie-sca algorithm Note that i a lie drawig algorithm there is o differece betwee iterior ad exterior pixels (2) Sort itersectios (icreasig x order) (3) Fill i betwee pair of itersectios
39 Sca-Lie fill algorithm Fid itersectios x k+1 = x k + Δx / Δy example (left edge) m = 5/2 x mi = 3 the sequece of x values 3, 3+2/5, 3+4/5, 3+5/6=4+1/5 y x pixel /5 3+4/5 4+1/5 (3,1) (3,2) (4,3) (4,4)
40 Spa Rules itersectio at iteger coordiate leftmost : iterior rightmost: exterior shared vertices cout parity at y mi vertices oly shorte edges horizotal edges do ot cout vertices A stadard covetio is to say that a poit o a left or bottom edge is iside, ad a poit o a right or top edge is outside.
41 Sca-Lie Fill Algorithm Not quite simple A sca lie passed through a vertex, it itersects two polygo edges at that poit.
42 Sca-Lie Fill Algorithm Sca lie y itersects a eve umber of edges Two pairs of itersectio poits correctly idetify the iterior spa Sca lie y itersects a odd umber (5) of edges Must cout the vertex itersectios as oly oe poit
43 Sca-Lie Fill Algorithm How to distiguish these cases (sca lie y & y ) Sca lie y Two itersectig edges are o opposite sides of sca lie Couted as just oe boudary itersectio poit Sca lie y Two itersectig edges are both above the sca lie By tracig aroud the boudary, If three edpoit y values of two cosecutive edges mootoically icrease or decrease cout the shared vertex as a sigle itersectio Otherwise, (a local miimum or maximum) add the two edge itersectios with the sca lie
44 Sca-Lie Fill Algorithm Implemetatio To shorte some polygo edges to split those vertices that should be couted as oe itersectio While processig o-horizotal edges i (couter)clockwise Check each edge whether the edge & ext edges have either mootoically icreasig or decreasig edpoits If so, shorte the lower edge
45 Sca-Lie Fill Algorithm Coherece properties spa coherece - all pixels o a spa are set to the same value sca-lie coherece - cosecutive sca lies are idetical edge coherece - edges itersected by sca lie i are also itersected by sca lie i+1
46 Sca-Lie Fill Algorithm Use edge coherece ad the sca-lie algorithm Sorted Edge Table Cotais all the o-horizotal edges. Edges are sorted by their smaller y coordiates. Table etry : y max, x-itercept value, iverse slope For each sca lie, edges are sorted from left to right Active Edge List While processig sca lies from bottom to top, product active edge list for each sca lie. Cotais edges which itersect the curret sca lie. Edges are sorted o their x itersectio values.
47 Sca-Lie Fill Algorithm
48 Sca-Lie Fill Algorithm Sca lie 9 Sca lie 10
49 Area Fillig (Fillig Methods) Pixel Adjacecy 4-coected 8-coected Boudary-Fill Algorithm If the boudary is specified i a sigle color, fill the iterior, pixel by pixel, util the boudary color is ecoutered starts from a iterior poit ad paits the iterior i a specified color or itesity.
50 Boudary-Fill Algorithm procedure boudaryfill4( x,y : iteger // startig poit i regio bordercolor: color // color that defies boudary fillcolor : color); // fillig color var c : color begi c := readpixel(x,y); if ( c bordercolor ad c fillcolor ) the begi writepixel(x,y,ewvalue); boudaryfill4(x, y-1, bordercolor, fillcolor ); boudaryfill4(x, y+1, bordercolor, fillcolor ); boudaryfill4(x-1, y, bordercolor, fillcolor ); boudaryfill4(x+1, y, bordercolor, fillcolor ); ed ed;
51 Boudary-Fill Algorithm There is the followig problem with boudary_fill4: Solve with 8- coected Ivolve heavy duty recursio which may cosume memory ad time
52 Boudary-Fill Algo. Efficiecy i space! Startig from the iitial iterior poit, first fill i the spa o the startig sca lie Locate ad stack startig positios for spas o the adjacet sca lies i dow to up order i left to right order All upper sca lies processed ðall lower sca lies processed
53 Flood-Fill Fill Algorithm Flood-Fill Algorithm Whe fillig a area that is ot defied withi a sigle color boudary start from a iterior poit ad reassig all pixel values that are curretly set to a give iterior color with the desired fill color.
54 Flood-Fill Fill Algorithm procedure flood_fill4( x,y: iteger //startig poit i regio oldvalue: color // value that defies iterior ewvalue: color); replacemet value begi if readpixel(x,y) = oldvalue the begi writepixel(x,y,ewvalue); flood_fill4(x,y-1,oldvalue,ewvalue); flood_fill4(x,y+1,oldvalue,ewvalue); flood_fill4(x-1,y,oldvalue,ewvalue); flood_fill4(x+1,y,oldvalue,ewvalue); ed ed;
55 Pattered Lies Pattered lie from P to Q is ot same as pattered lie from Q to P. P Q P Q Patters ca be geometric or cosmetic Cosmetic: Texture applied after trasformatios Geometric: Patter subject to trasformatios Cosmetic Geometric
56 Character, Symbols Bitmap fot (Raster fot) Set up a patter of biary values o a rectagular grid The simplest to defie ad display But, more storage : each variatio (size ad format) must be saved
57 Character, Symbols Outlie fot Use straight-lie ad curve sectios More flexible method Ca be icreased i size without distortig the character shapes By maipulatig curve defiitios for the character outlies. More time, sice they must be sca coverted ito the frame buffer Less storage
58 Character, Symbols Compariso of Methods Outlie fot Bitmap fot easy to rotate rotate by multiples of 90 easy to scale scale by powers of 2 variable legth storage sca covert lies fill if polygos may be ati-aliased or smoothed via curve fittig fixed legth storage sca covert poits draw as filled or outlie may be pre-ati-aliased
59 Lie Attributes Butt cap Roud cap Projectig square cap Miter joi Roud Joi Bevel joi
60 Aliasig i CG Which is better?
61 Aliasig i CG Digital techology ca oly approximate aalog sigals through a process kow as samplig. Aliaisig : the distortio of iformatio due to lowfrequecy samplig (udersamplig). Choosig a appropriate samplig rate depeds o data size restraits, eed for accuracy, the cost per sample Errors caused by aliasig are called artifacts. Commo aliasig artifacts i computer graphics iclude jagged profiles, disappearig or improperly redered fie detail, ad disitegratig textures.
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 informationCS Polygon Scan Conversion. Slide 1
CS 112 - Polygo Sca Coversio Slide 1 Polygo Classificatio Covex All iterior agles are less tha 180 degrees Cocave Iterior agles ca be greater tha 180 degrees Degeerate polygos If all vertices are colliear
More informationBezier curves. Figure 2 shows cubic Bezier curves for various control points. In a Bezier curve, only
Edited: Yeh-Liag Hsu (998--; recommeded: Yeh-Liag Hsu (--9; last updated: Yeh-Liag Hsu (9--7. Note: This is the course material for ME55 Geometric modelig ad computer graphics, Yua Ze Uiversity. art of
More informationPolynomial Functions and Models. Learning Objectives. Polynomials. P (x) = a n x n + a n 1 x n a 1 x + a 0, a n 0
Polyomial Fuctios ad Models 1 Learig Objectives 1. Idetify polyomial fuctios ad their degree 2. Graph polyomial fuctios usig trasformatios 3. Idetify the real zeros of a polyomial fuctio ad their multiplicity
More informationAlpha Individual Solutions MAΘ National Convention 2013
Alpha Idividual Solutios MAΘ Natioal Covetio 0 Aswers:. D. A. C 4. D 5. C 6. B 7. A 8. C 9. D 0. B. B. A. D 4. C 5. A 6. C 7. B 8. A 9. A 0. C. E. B. D 4. C 5. A 6. D 7. B 8. C 9. D 0. B TB. 570 TB. 5
More informationComputational Geometry
Computatioal Geometry Chapter 4 Liear programmig Duality Smallest eclosig disk O the Ageda Liear Programmig Slides courtesy of Craig Gotsma 4. 4. Liear Programmig - Example Defie: (amout amout cosumed
More informationRecursive Procedures. How can you model the relationship between consecutive terms of a sequence?
6. Recursive Procedures I Sectio 6.1, you used fuctio otatio to write a explicit formula to determie the value of ay term i a Sometimes it is easier to calculate oe term i a sequece usig the previous terms.
More informationPerformance Plus Software Parameter Definitions
Performace Plus+ Software Parameter Defiitios/ Performace Plus Software Parameter Defiitios Chapma Techical Note-TG-5 paramete.doc ev-0-03 Performace Plus+ Software Parameter Defiitios/2 Backgroud ad Defiitios
More informationThe Graphs of Polynomial Functions
Sectio 4.3 The Graphs of Polyomial Fuctios Objective 1: Uderstadig the Defiitio of a Polyomial Fuctio Defiitio Polyomial Fuctio 1 2 The fuctio ax a 1x a 2x a1x a0 is a polyomial fuctio of degree where
More information9 x and g(x) = 4. x. Find (x) 3.6. I. Combining Functions. A. From Equations. Example: Let f(x) = and its domain. Example: Let f(x) = and g(x) = x x 4
1 3.6 I. Combiig Fuctios A. From Equatios Example: Let f(x) = 9 x ad g(x) = 4 f x. Fid (x) g ad its domai. 4 Example: Let f(x) = ad g(x) = x x 4. Fid (f-g)(x) B. From Graphs: Graphical Additio. Example:
More informationThe number n of subintervals times the length h of subintervals gives length of interval (b-a).
Simulator with MadMath Kit: Riema Sums (Teacher s pages) I your kit: 1. GeoGebra file: Ready-to-use projector sized simulator: RiemaSumMM.ggb 2. RiemaSumMM.pdf (this file) ad RiemaSumMMEd.pdf (educator's
More information. Written in factored form it is easy to see that the roots are 2, 2, i,
CMPS A Itroductio to Programmig Programmig Assigmet 4 I this assigmet you will write a java program that determies the real roots of a polyomial that lie withi a specified rage. Recall that the roots (or
More informationElementary Educational Computer
Chapter 5 Elemetary Educatioal Computer. Geeral structure of the Elemetary Educatioal Computer (EEC) The EEC coforms to the 5 uits structure defied by vo Neuma's model (.) All uits are preseted i a simplified
More informationThe isoperimetric problem on the hypercube
The isoperimetric problem o the hypercube Prepared by: Steve Butler November 2, 2005 1 The isoperimetric problem We will cosider the -dimesioal hypercube Q Recall that the hypercube Q is a graph whose
More information9.1. Sequences and Series. Sequences. What you should learn. Why you should learn it. Definition of Sequence
_9.qxd // : AM Page Chapter 9 Sequeces, Series, ad Probability 9. Sequeces ad Series What you should lear Use sequece otatio to write the terms of sequeces. Use factorial otatio. Use summatio otatio to
More information( n+1 2 ) , position=(7+1)/2 =4,(median is observation #4) Median=10lb
Chapter 3 Descriptive Measures Measures of Ceter (Cetral Tedecy) These measures will tell us where is the ceter of our data or where most typical value of a data set lies Mode the value that occurs most
More informationCounting Regions in the Plane and More 1
Coutig Regios i the Plae ad More 1 by Zvezdelia Stakova Berkeley Math Circle Itermediate I Group September 016 1. Overarchig Problem Problem 1 Regios i a Circle. The vertices of a polygos are arraged o
More informationCIS 121 Data Structures and Algorithms with Java Spring Stacks, Queues, and Heaps Monday, February 18 / Tuesday, February 19
CIS Data Structures ad Algorithms with Java Sprig 09 Stacks, Queues, ad Heaps Moday, February 8 / Tuesday, February 9 Stacks ad Queues Recall the stack ad queue ADTs (abstract data types from lecture.
More informationParabolic Path to a Best Best-Fit Line:
Studet Activity : Fidig the Least Squares Regressio Lie By Explorig the Relatioship betwee Slope ad Residuals Objective: How does oe determie a best best-fit lie for a set of data? Eyeballig it may be
More informationCopyright 2016 Ramez Elmasri and Shamkant B. Navathe
Copyright 2016 Ramez Elmasri ad Shamkat B. Navathe CHAPTER 18 Strategies for Query Processig Copyright 2016 Ramez Elmasri ad Shamkat B. Navathe Itroductio DBMS techiques to process a query Scaer idetifies
More informationEE 459/500 HDL Based Digital Design with Programmable Logic. Lecture 13 Control and Sequencing: Hardwired and Microprogrammed Control
EE 459/500 HDL Based Digital Desig with Programmable Logic Lecture 13 Cotrol ad Sequecig: Hardwired ad Microprogrammed Cotrol Refereces: Chapter s 4,5 from textbook Chapter 7 of M.M. Mao ad C.R. Kime,
More information1. Sketch a concave polygon and explain why it is both concave and a polygon. A polygon is a simple closed curve that is the union of line segments.
SOLUTIONS MATH / Fial Review Questios, F5. Sketch a cocave polygo ad explai why it is both cocave ad a polygo. A polygo is a simple closed curve that is the uio of lie segmets. A polygo is cocave if it
More informationcondition w i B i S maximum u i
ecture 10 Dyamic Programmig 10.1 Kapsack Problem November 1, 2004 ecturer: Kamal Jai Notes: Tobias Holgers We are give a set of items U = {a 1, a 2,..., a }. Each item has a weight w i Z + ad a utility
More informationSection 7.2: Direction Fields and Euler s Methods
Sectio 7.: Directio ields ad Euler s Methods Practice HW from Stewart Tetbook ot to had i p. 5 # -3 9-3 odd or a give differetial equatio we wat to look at was to fid its solutio. I this chapter we will
More informationThe following algorithms have been tested as a method of converting an I.F. from 16 to 512 MHz to 31 real 16 MHz USB channels:
DBE Memo#1 MARK 5 MEMO #18 MASSACHUSETTS INSTITUTE OF TECHNOLOGY HAYSTACK OBSERVATORY WESTFORD, MASSACHUSETTS 1886 November 19, 24 Telephoe: 978-692-4764 Fax: 781-981-59 To: From: Mark 5 Developmet Group
More informationMath Section 2.2 Polynomial Functions
Math 1330 - Sectio. Polyomial Fuctios Our objectives i workig with polyomial fuctios will be, first, to gather iformatio about the graph of the fuctio ad, secod, to use that iformatio to geerate a reasoably
More informationArithmetic Sequences
. Arithmetic Sequeces COMMON CORE Learig Stadards HSF-IF.A. HSF-BF.A.1a HSF-BF.A. HSF-LE.A. Essetial Questio How ca you use a arithmetic sequece to describe a patter? A arithmetic sequece is a ordered
More informationChapter 11. Friends, Overloaded Operators, and Arrays in Classes. Copyright 2014 Pearson Addison-Wesley. All rights reserved.
Chapter 11 Frieds, Overloaded Operators, ad Arrays i Classes Copyright 2014 Pearso Addiso-Wesley. All rights reserved. Overview 11.1 Fried Fuctios 11.2 Overloadig Operators 11.3 Arrays ad Classes 11.4
More informationGreedy Algorithms. Interval Scheduling. Greedy Algorithms. Interval scheduling. Greedy Algorithms. Interval Scheduling
Greedy Algorithms Greedy Algorithms Witer Paul Beame Hard to defie exactly but ca give geeral properties Solutio is built i small steps Decisios o how to build the solutio are made to maximize some criterio
More informationA Resource for Free-standing Mathematics Qualifications
Ope.ls The first sheet is show elow. It is set up to show graphs with equatios of the form = m + c At preset the values of m ad c are oth zero. You ca chage these values usig the scroll ars. Leave the
More informationPattern Recognition Systems Lab 1 Least Mean Squares
Patter Recogitio Systems Lab 1 Least Mea Squares 1. Objectives This laboratory work itroduces the OpeCV-based framework used throughout the course. I this assigmet a lie is fitted to a set of poits usig
More informationNormals. In OpenGL the normal vector is part of the state Set by glnormal*()
Ray Tracig 1 Normals OpeG the ormal vector is part of the state Set by glnormal*() -glnormal3f(x, y, z); -glnormal3fv(p); Usually we wat to set the ormal to have uit legth so cosie calculatios are correct
More informationLecture 6. Lecturer: Ronitt Rubinfeld Scribes: Chen Ziv, Eliav Buchnik, Ophir Arie, Jonathan Gradstein
068.670 Subliear Time Algorithms November, 0 Lecture 6 Lecturer: Roitt Rubifeld Scribes: Che Ziv, Eliav Buchik, Ophir Arie, Joatha Gradstei Lesso overview. Usig the oracle reductio framework for approximatig
More informationChapter 3 Classification of FFT Processor Algorithms
Chapter Classificatio of FFT Processor Algorithms The computatioal complexity of the Discrete Fourier trasform (DFT) is very high. It requires () 2 complex multiplicatios ad () complex additios [5]. As
More informationCIS 121 Data Structures and Algorithms with Java Spring Stacks and Queues Monday, February 12 / Tuesday, February 13
CIS Data Structures ad Algorithms with Java Sprig 08 Stacks ad Queues Moday, February / Tuesday, February Learig Goals Durig this lab, you will: Review stacks ad queues. Lear amortized ruig time aalysis
More informationOverview Chapter 12 A display model
Overview Chapter 12 A display model Why graphics? A graphics model Examples Bjare Stroustrup www.stroustrup.com/programmig 3 Why bother with graphics ad GUI? Why bother with graphics ad GUI? It s very
More informationAssignment 5; Due Friday, February 10
Assigmet 5; Due Friday, February 10 17.9b The set X is just two circles joied at a poit, ad the set X is a grid i the plae, without the iteriors of the small squares. The picture below shows that the iteriors
More informationPython Programming: An Introduction to Computer Science
Pytho Programmig: A Itroductio to Computer Sciece Chapter 6 Defiig Fuctios Pytho Programmig, 2/e 1 Objectives To uderstad why programmers divide programs up ito sets of cooperatig fuctios. To be able to
More informationMath 10C Long Range Plans
Math 10C Log Rage Plas Uits: Evaluatio: Homework, projects ad assigmets 10% Uit Tests. 70% Fial Examiatio.. 20% Ay Uit Test may be rewritte for a higher mark. If the retest mark is higher, that mark will
More informationEE260: Digital Design, Spring /16/18. n Example: m 0 (=x 1 x 2 ) is adjacent to m 1 (=x 1 x 2 ) and m 2 (=x 1 x 2 ) but NOT m 3 (=x 1 x 2 )
EE26: Digital Desig, Sprig 28 3/6/8 EE 26: Itroductio to Digital Desig Combiatioal Datapath Yao Zheg Departmet of Electrical Egieerig Uiversity of Hawaiʻi at Māoa Combiatioal Logic Blocks Multiplexer Ecoders/Decoders
More informationComputers and Scientific Thinking
Computers ad Scietific Thikig David Reed, Creighto Uiversity Chapter 15 JavaScript Strigs 1 Strigs as Objects so far, your iteractive Web pages have maipulated strigs i simple ways use text box to iput
More informationCS : Programming for Non-Majors, Summer 2007 Programming Project #3: Two Little Calculations Due by 12:00pm (noon) Wednesday June
CS 1313 010: Programmig for No-Majors, Summer 2007 Programmig Project #3: Two Little Calculatios Due by 12:00pm (oo) Wedesday Jue 27 2007 This third assigmet will give you experiece writig programs that
More informationComputer Graphics Hardware An Overview
Computer Graphics Hardware A Overview Graphics System Moitor Iput devices CPU/Memory GPU Raster Graphics System Raster: A array of picture elemets Based o raster-sca TV techology The scree (ad a picture)
More informationAppendix D. Controller Implementation
COMPUTER ORGANIZATION AND DESIGN The Hardware/Software Iterface 5 th Editio Appedix D Cotroller Implemetatio Cotroller Implemetatios Combiatioal logic (sigle-cycle); Fiite state machie (multi-cycle, pipelied);
More informationCreating Exact Bezier Representations of CST Shapes. David D. Marshall. California Polytechnic State University, San Luis Obispo, CA , USA
Creatig Exact Bezier Represetatios of CST Shapes David D. Marshall Califoria Polytechic State Uiversity, Sa Luis Obispo, CA 93407-035, USA The paper presets a method of expressig CST shapes pioeered by
More informationCSC 220: Computer Organization Unit 11 Basic Computer Organization and Design
College of Computer ad Iformatio Scieces Departmet of Computer Sciece CSC 220: Computer Orgaizatio Uit 11 Basic Computer Orgaizatio ad Desig 1 For the rest of the semester, we ll focus o computer architecture:
More informationLecture 5. Counting Sort / Radix Sort
Lecture 5. Coutig Sort / Radix Sort T. H. Corme, C. E. Leiserso ad R. L. Rivest Itroductio to Algorithms, 3rd Editio, MIT Press, 2009 Sugkyukwa Uiversity Hyuseug Choo choo@skku.edu Copyright 2000-2018
More informationTexture Mapping. Jian Huang. This set of slides references the ones used at Ohio State for instruction.
Texture Mappig Jia Huag This set of slides refereces the oes used at Ohio State for istructio. Ca you do this What Dreams May Come Texture Mappig Of course, oe ca model the exact micro-geometry + material
More informationChapter 5. Functions for All Subtasks. Copyright 2015 Pearson Education, Ltd.. All rights reserved.
Chapter 5 Fuctios for All Subtasks Copyright 2015 Pearso Educatio, Ltd.. All rights reserved. Overview 5.1 void Fuctios 5.2 Call-By-Referece Parameters 5.3 Usig Procedural Abstractio 5.4 Testig ad Debuggig
More informationIMP: Superposer Integrated Morphometrics Package Superposition Tool
IMP: Superposer Itegrated Morphometrics Package Superpositio Tool Programmig by: David Lieber ( 03) Caisius College 200 Mai St. Buffalo, NY 4208 Cocept by: H. David Sheets, Dept. of Physics, Caisius College
More informationComputer Systems - HS
What have we leared so far? Computer Systems High Level ENGG1203 2d Semester, 2017-18 Applicatios Sigals Systems & Cotrol Systems Computer & Embedded Systems Digital Logic Combiatioal Logic Sequetial Logic
More informationSD vs. SD + One of the most important uses of sample statistics is to estimate the corresponding population parameters.
SD vs. SD + Oe of the most importat uses of sample statistics is to estimate the correspodig populatio parameters. The mea of a represetative sample is a good estimate of the mea of the populatio that
More informationCopyright 2016 Ramez Elmasri and Shamkant B. Navathe
Copyright 2016 Ramez Elmasri ad Shamkat B. Navathe CHAPTER 19 Query Optimizatio Copyright 2016 Ramez Elmasri ad Shamkat B. Navathe Itroductio Query optimizatio Coducted by a query optimizer i a DBMS Goal:
More informationChapter 4. Procedural Abstraction and Functions That Return a Value. Copyright 2015 Pearson Education, Ltd.. All rights reserved.
Chapter 4 Procedural Abstractio ad Fuctios That Retur a Value Copyright 2015 Pearso Educatio, Ltd.. All rights reserved. Overview 4.1 Top-Dow Desig 4.2 Predefied Fuctios 4.3 Programmer-Defied Fuctios 4.4
More informationConsider the following population data for the state of California. Year Population
Assigmets for Bradie Fall 2016 for Chapter 5 Assigmet sheet for Sectios 5.1, 5.3, 5.5, 5.6, 5.7, 5.8 Read Pages 341-349 Exercises for Sectio 5.1 Lagrage Iterpolatio #1, #4, #7, #13, #14 For #1 use MATLAB
More informationBig-O Analysis. Asymptotics
Big-O Aalysis 1 Defiitio: Suppose that f() ad g() are oegative fuctios of. The we say that f() is O(g()) provided that there are costats C > 0 ad N > 0 such that for all > N, f() Cg(). Big-O expresses
More informationCS200: Hash Tables. Prichard Ch CS200 - Hash Tables 1
CS200: Hash Tables Prichard Ch. 13.2 CS200 - Hash Tables 1 Table Implemetatios: average cases Search Add Remove Sorted array-based Usorted array-based Balaced Search Trees O(log ) O() O() O() O(1) O()
More informationAPPLICATION NOTE PACE1750AE BUILT-IN FUNCTIONS
APPLICATION NOTE PACE175AE BUILT-IN UNCTIONS About This Note This applicatio brief is iteded to explai ad demostrate the use of the special fuctios that are built ito the PACE175AE processor. These powerful
More informationModule 8-7: Pascal s Triangle and the Binomial Theorem
Module 8-7: Pascal s Triagle ad the Biomial Theorem Gregory V. Bard April 5, 017 A Note about Notatio Just to recall, all of the followig mea the same thig: ( 7 7C 4 C4 7 7C4 5 4 ad they are (all proouced
More informationCOMPUTER ORGANIZATION AND DESIGN The Hardware/Software Interface. Chapter 4. The Processor. Part A Datapath Design
COMPUTER ORGANIZATION AND DESIGN The Hardware/Software Iterface 5 th Editio Chapter The Processor Part A path Desig Itroductio CPU performace factors Istructio cout Determied by ISA ad compiler. CPI ad
More informationChapter 4 The Datapath
The Ageda Chapter 4 The Datapath Based o slides McGraw-Hill Additioal material 24/25/26 Lewis/Marti Additioal material 28 Roth Additioal material 2 Taylor Additioal material 2 Farmer Tae the elemets that
More informationCHAPTER IV: GRAPH THEORY. Section 1: Introduction to Graphs
CHAPTER IV: GRAPH THEORY Sectio : Itroductio to Graphs Sice this class is called Number-Theoretic ad Discrete Structures, it would be a crime to oly focus o umber theory regardless how woderful those topics
More informationCSE 5311 Notes 16: Matrices
CSE 5311 Notes 16: Matrices STRASSEN S MATRIX MULTIPLICATION Matrix additio: takes scalar additios. Everyday atrix ultiply: p p Let = = p. takes p scalar ultiplies ad -1)p scalar additios. Best lower boud
More informationA New Morphological 3D Shape Decomposition: Grayscale Interframe Interpolation Method
A ew Morphological 3D Shape Decompositio: Grayscale Iterframe Iterpolatio Method D.. Vizireau Politehica Uiversity Bucharest, Romaia ae@comm.pub.ro R. M. Udrea Politehica Uiversity Bucharest, Romaia mihea@comm.pub.ro
More informationEE123 Digital Signal Processing
Last Time EE Digital Sigal Processig Lecture 7 Block Covolutio, Overlap ad Add, FFT Discrete Fourier Trasform Properties of the Liear covolutio through circular Today Liear covolutio with Overlap ad add
More informationProject 2.5 Improved Euler Implementation
Project 2.5 Improved Euler Implemetatio Figure 2.5.10 i the text lists TI-85 ad BASIC programs implemetig the improved Euler method to approximate the solutio of the iitial value problem dy dx = x+ y,
More informationSouth Slave Divisional Education Council. Math 10C
South Slave Divisioal Educatio Coucil Math 10C Curriculum Package February 2012 12 Strad: Measuremet Geeral Outcome: Develop spatial sese ad proportioal reasoig It is expected that studets will: 1. Solve
More informationExamples and Applications of Binary Search
Toy Gog ITEE Uiersity of Queeslad I the secod lecture last week we studied the biary search algorithm that soles the problem of determiig if a particular alue appears i a sorted list of iteger or ot. We
More informationFundamentals of Media Processing. Shin'ichi Satoh Kazuya Kodama Hiroshi Mo Duy-Dinh Le
Fudametals of Media Processig Shi'ichi Satoh Kazuya Kodama Hiroshi Mo Duy-Dih Le Today's topics Noparametric Methods Parze Widow k-nearest Neighbor Estimatio Clusterig Techiques k-meas Agglomerative Hierarchical
More informationEM375 STATISTICS AND MEASUREMENT UNCERTAINTY LEAST SQUARES LINEAR REGRESSION ANALYSIS
EM375 STATISTICS AND MEASUREMENT UNCERTAINTY LEAST SQUARES LINEAR REGRESSION ANALYSIS I this uit of the course we ivestigate fittig a straight lie to measured (x, y) data pairs. The equatio we wat to fit
More informationRecursion. Computer Science S-111 Harvard University David G. Sullivan, Ph.D. Review: Method Frames
Uit 4, Part 3 Recursio Computer Sciece S-111 Harvard Uiversity David G. Sulliva, Ph.D. Review: Method Frames Whe you make a method call, the Java rutime sets aside a block of memory kow as the frame of
More informationChapter 8. Strings and Vectors. Copyright 2014 Pearson Addison-Wesley. All rights reserved.
Chapter 8 Strigs ad Vectors Overview 8.1 A Array Type for Strigs 8.2 The Stadard strig Class 8.3 Vectors Slide 8-3 8.1 A Array Type for Strigs A Array Type for Strigs C-strigs ca be used to represet strigs
More informationThe Magma Database file formats
The Magma Database file formats Adrew Gaylard, Bret Pikey, ad Mart-Mari Breedt Johaesburg, South Africa 15th May 2006 1 Summary Magma is a ope-source object database created by Chris Muller, of Kasas City,
More informationBasic allocator mechanisms The course that gives CMU its Zip! Memory Management II: Dynamic Storage Allocation Mar 6, 2000.
5-23 The course that gives CM its Zip Memory Maagemet II: Dyamic Storage Allocatio Mar 6, 2000 Topics Segregated lists Buddy system Garbage collectio Mark ad Sweep Copyig eferece coutig Basic allocator
More informationn We have discussed classes in previous lectures n Here, we discuss design of classes n Library design considerations
Chapter 14 Graph class desig Bjare Stroustrup Abstract We have discussed classes i previous lectures Here, we discuss desig of classes Library desig cosideratios Class hierarchies (object-orieted programmig)
More informationChapter 1. Introduction to Computers and C++ Programming. Copyright 2015 Pearson Education, Ltd.. All rights reserved.
Chapter 1 Itroductio to Computers ad C++ Programmig Copyright 2015 Pearso Educatio, Ltd.. All rights reserved. Overview 1.1 Computer Systems 1.2 Programmig ad Problem Solvig 1.3 Itroductio to C++ 1.4 Testig
More informationArea As A Limit & Sigma Notation
Area As A Limit & Sigma Notatio SUGGESTED REFERENCE MATERIAL: As you work through the problems listed below, you should referece Chapter 5.4 of the recommeded textbook (or the equivalet chapter i your
More informationAnalysis Metrics. Intro to Algorithm Analysis. Slides. 12. Alg Analysis. 12. Alg Analysis
Itro to Algorithm Aalysis Aalysis Metrics Slides. Table of Cotets. Aalysis Metrics 3. Exact Aalysis Rules 4. Simple Summatio 5. Summatio Formulas 6. Order of Magitude 7. Big-O otatio 8. Big-O Theorems
More informationComputer Science Foundation Exam. August 12, Computer Science. Section 1A. No Calculators! KEY. Solutions and Grading Criteria.
Computer Sciece Foudatio Exam August, 005 Computer Sciece Sectio A No Calculators! Name: SSN: KEY Solutios ad Gradig Criteria Score: 50 I this sectio of the exam, there are four (4) problems. You must
More information3D Model Retrieval Method Based on Sample Prediction
20 Iteratioal Coferece o Computer Commuicatio ad Maagemet Proc.of CSIT vol.5 (20) (20) IACSIT Press, Sigapore 3D Model Retrieval Method Based o Sample Predictio Qigche Zhag, Ya Tag* School of Computer
More informationOptimal Mapped Mesh on the Circle
Koferece ANSYS 009 Optimal Mapped Mesh o the Circle doc. Ig. Jaroslav Štigler, Ph.D. Bro Uiversity of Techology, aculty of Mechaical gieerig, ergy Istitut, Abstract: This paper brigs out some ideas ad
More informationChapter 3. Floating Point Arithmetic
COMPUTER ORGANIZATION AND DESIGN The Hardware/Software Iterface 5 th Editio Chapter 3 Floatig Poit Arithmetic Review - Multiplicatio 0 1 1 0 = 6 multiplicad 32-bit ALU shift product right multiplier add
More informationIt just came to me that I 8.2 GRAPHS AND CONVERGENCE
44 Chapter 8 Discrete Mathematics: Fuctios o the Set of Natural Numbers (a) Take several odd, positive itegers for a ad write out eough terms of the 3N sequece to reach a repeatig loop (b) Show that ot
More informationFINITE DIFFERENCE TIME DOMAIN METHOD (FDTD)
FINIT DIFFRNC TIM DOMAIN MTOD (FDTD) The FDTD method, proposed b Yee, 1966, is aother umerical method, used widel for the solutio of M problems. It is used to solve ope-regio scatterig, radiatio, diffusio,
More informationEVALUATION OF TRIGONOMETRIC FUNCTIONS
EVALUATION OF TRIGONOMETRIC FUNCTIONS Whe first exposed to trigoometric fuctios i high school studets are expected to memorize the values of the trigoometric fuctios of sie cosie taget for the special
More informationBehavioral Modeling in Verilog
Behavioral Modelig i Verilog COE 202 Digital Logic Desig Dr. Muhamed Mudawar Kig Fahd Uiversity of Petroleum ad Mierals Presetatio Outlie Itroductio to Dataflow ad Behavioral Modelig Verilog Operators
More informationLighting and Shading. Outline. Raytracing Example. Global Illumination. Local Illumination. Radiosity Example
CSCI 480 Computer Graphics Lecture 9 Lightig ad Shadig Light Sources Phog Illumiatio Model Normal Vectors [Agel Ch. 6.1-6.4] February 13, 2013 Jerej Barbic Uiversity of Souther Califoria http://www-bcf.usc.edu/~jbarbic/cs480-s13/
More informationLecture 1: Introduction and Strassen s Algorithm
5-750: Graduate Algorithms Jauary 7, 08 Lecture : Itroductio ad Strasse s Algorithm Lecturer: Gary Miller Scribe: Robert Parker Itroductio Machie models I this class, we will primarily use the Radom Access
More informationOn (K t e)-saturated Graphs
Noame mauscript No. (will be iserted by the editor O (K t e-saturated Graphs Jessica Fuller Roald J. Gould the date of receipt ad acceptace should be iserted later Abstract Give a graph H, we say a graph
More informationWavelet Transform. CSE 490 G Introduction to Data Compression Winter Wavelet Transformed Barbara (Enhanced) Wavelet Transformed Barbara (Actual)
Wavelet Trasform CSE 49 G Itroductio to Data Compressio Witer 6 Wavelet Trasform Codig PACW Wavelet Trasform A family of atios that filters the data ito low resolutio data plus detail data high pass filter
More informationThe golden search method: Question 1
1. Golde Sectio Search for the Mode of a Fuctio The golde search method: Questio 1 Suppose the last pair of poits at which we have a fuctio evaluatio is x(), y(). The accordig to the method, If f(x())
More information1. Introduction o Microscopic property responsible for MRI Show and discuss graphics that go from macro to H nucleus with N-S pole
Page 1 Very Quick Itroductio to MRI The poit of this itroductio is to give the studet a sufficietly accurate metal picture of MRI to help uderstad its impact o image registratio. The two major aspects
More informationThe Platonic solids The five regular polyhedra
The Platoic solids The five regular polyhedra Ole Witt-Hase jauary 7 www.olewitthase.dk Cotets. Polygos.... Topologically cosideratios.... Euler s polyhedro theorem.... Regular ets o a sphere.... The dihedral
More informationChapter 8. Strings and Vectors. Copyright 2015 Pearson Education, Ltd.. All rights reserved.
Chapter 8 Strigs ad Vectors Copyright 2015 Pearso Educatio, Ltd.. All rights reserved. Overview 8.1 A Array Type for Strigs 8.2 The Stadard strig Class 8.3 Vectors Copyright 2015 Pearso Educatio, Ltd..
More informationImage Segmentation EEE 508
Image Segmetatio Objective: to determie (etract) object boudaries. It is a process of partitioig a image ito distict regios by groupig together eighborig piels based o some predefied similarity criterio.
More informationLecturers: Sanjam Garg and Prasad Raghavendra Feb 21, Midterm 1 Solutions
U.C. Berkeley CS170 : Algorithms Midterm 1 Solutios Lecturers: Sajam Garg ad Prasad Raghavedra Feb 1, 017 Midterm 1 Solutios 1. (4 poits) For the directed graph below, fid all the strogly coected compoets
More informationThe Closest Line to a Data Set in the Plane. David Gurney Southeastern Louisiana University Hammond, Louisiana
The Closest Lie to a Data Set i the Plae David Gurey Southeaster Louisiaa Uiversity Hammod, Louisiaa ABSTRACT This paper looks at three differet measures of distace betwee a lie ad a data set i the plae:
More informationMulti-Threading. Hyper-, Multi-, and Simultaneous Thread Execution
Multi-Threadig Hyper-, Multi-, ad Simultaeous Thread Executio 1 Performace To Date Icreasig processor performace Pipeliig. Brach predictio. Super-scalar executio. Out-of-order executio. Caches. Hyper-Threadig
More informationECE4050 Data Structures and Algorithms. Lecture 6: Searching
ECE4050 Data Structures ad Algorithms Lecture 6: Searchig 1 Search Give: Distict keys k 1, k 2,, k ad collectio L of records of the form (k 1, I 1 ), (k 2, I 2 ),, (k, I ) where I j is the iformatio associated
More information6.854J / J Advanced Algorithms Fall 2008
MIT OpeCourseWare http://ocw.mit.edu 6.854J / 18.415J Advaced Algorithms Fall 2008 For iformatio about citig these materials or our Terms of Use, visit: http://ocw.mit.edu/terms. 18.415/6.854 Advaced Algorithms
More information