2D Projective transformation
|
|
- Gervais Griffin
- 5 years ago
- Views:
Transcription
1 2D Projective trnsformtion The mpping of points from n N-D spce to n M-D subspce (M < N) w' w' w m m m 2 m m m 2 m m m w' w' w m m m 2 m m m 2 m m 2 2 Boqun Chen 22
2 2D Projective trnsformtion w' w' w m m m 2 m m m 2 m m 2 2 Which cn be epressed s the forllowing rtionl liner eqution: ' ' m m m m m 2 2 m m m m m m 2, m2 Boqun Chen 22 2
3 From 2D to 3D: Preliminr Right-hnded vs. left-hnded (out of pge) Z Y X Y (into pge) Z X Z-is determined from X nd Y b cross product: Z=X Y Z X Y X 2 Y 3 X 3 Y 2 X 3 Y X Y 3 X Y 2 X 2 Y Cross product follows right-hnd rule in right-hnded coordinte sstem, nd left-hnd rule in left-hnded sstem. Boqun Chen 22 3
4 3D Trnsltion T = t t t 2 Boqun Chen 22 4
5 3D Scling S = s s s 2 Boqun Chen 22 5
6 3D Rottion R = cos sin sin cos cos sin cos sin R = sin cos R = sin cos Boqun Chen 22 6
7 Euler Angles for 3-D Rottions Euler ngles - 3 rottions bout ech coordinte is, however ngle interpoltion for nimtion genertes birre motions rottions re order-dependent, nd there re no conventions bout the order to use Emple: R (9 ) R (9 ) R T (2 ) But, R (3 ) R (3 ) R (42 T.3 ) R T (4 ) Widel used nw, becuse the're simple Boqun Chen 22 7
8 Ais-ngle rottion The mtri R for rottion b bout is (unit) : R T cos ( I T ) sin * T Project onto I T Project onto ' s norml plne * Dul mtri. Project onto norml plne, flip b 9 cos, sin Rotte b in norml plne (ssumes is unit.) Boqun Chen 22 8
9 9 Boqun Chen 22 ' Rottion s Vector Opertion )sin ( ) cos )( ) ( ) (cos ) ( )sin ( ] )cos ) ( [( ' I T ] )sin ( ) cos )( ( ) [(cos ' * 2D ' 2D 2D D 2 ' ' 2D ' D 2 D 2
10 Boqun Chen 22 Ais-ngle rottion T ) ( ) ( Smmetric T
11 v * Aside: The Dul Mtri If v=[,,] is vector, the mtri is the dul mtri of v Cross-product s mtri multipl: v * = v helps define rottion bout n rbitrr is ngulr velocit nd rottion mtri time derivtives Geometric interprettion of v * project onto the plne norml to v rotte b 9 bout v resulting vector is perpendiculr to v nd Boqun Chen 22
12 2 Boqun Chen 22 Ais-ngle rottion Skew k j i k j i det det det
13 3 Boqun Chen 22 Ais-ngle rottion I R T T ) sin( ) )( cos( I T ) cos( ) sin( )) cos( ( cos sin ) cos ( I Skew Smmetric
14 4 Boqun Chen 22 Ais-ngle rottion I R T ) cos( ) sin( )) cos( ( When =: I I R T ) ( When rotte round -is ( ): T ) cos( ) sin( )) cos( ( R cos sin sin cos
15 5 Boqun Chen 22 Ais-ngle rottion When rotte round -is ( ): T cos sin ) cos ( R cos sin sin cos
16 6 Boqun Chen 22 Ais-ngle rottion When rotte round -is ( ): T cos sin ) cos ( R cos sin sin cos
17 Trnsformtion. 2D Trnsformtion 2. 3D Trnsformtion 3. Viewing Projection Boqun Chen 22 7
18 Orthogrphic Projection Throw w Z coordintes Get points on the XY plne Y X Boqun Chen 22 8
19 Perspective Boqun Chen 22 9
20 Perspective Projection Boqun Chen 22 2
21 A Simple Perspective Cmer Cnonicl cse: cmer looks long the -is focl point is the origin imge plne is prllel to the -plne t distnce d (We cll d the focl length, minl for historicl resons) F=[,,] Imge plne [,,d] Boqun Chen 22 2
22 Similr Tringles Y (, ) (, ) (, ) (, d) Z Digrm shows -coordinte, -coordinte is similr Boqun Chen 22 22
23 Similr Tringles Y (, ) (, ) = d / = / /d = / = (d/)* (, ) (, d) point [,,] projects to [(d/), (d/), d] Z Boqun Chen 22 23
24 24 Boqun Chen 22 A Perspective Projection Mtri Projection using homogeneous coordintes: trnsform [,, ] to [(d/), (d/), d] d d d d d d w w w w ' ' ' d d d ' ' ' w
25 Cmer Position nd Orienttion Boqun Chen 22 25
26 LookFrom And LookAt Is This Enough? Boqun Chen 22 26
27 LookFrom And LookAt Boqun Chen 22 27
28 Complete Cmer Specifiction VUp LookFrom d LookAt Boqun Chen 22 28
29 Complete Cmer Specifiction VUp Boqun Chen 22 29
30 Viewing Volume Boqun Chen 22 3
31 Rendering from n cmer position Y (, ) Y LookFrom VUp (?,?) (, ) LookAt (, ) (, ) (, d) Z (, ) (, d) Z Boqun Chen 22 3
32 32 Boqun Chen 22 Coordinte Trnsformtion u v p e o p p o p p p ), ( v p u p e p p p v u v u ), ( v u p p v u v u e e p p v u p p e v v e u u p p e e v v u u p p
33 33 Boqun Chen 22 Coordinte Trnsformtion u v p e o w v u p p p w v u w v u w v u e e e p p p w v u p p p e e e w w w v v v u u u p p p w
34 Viewing Trnsformtions Y VUp X LookFrom LookAt Z Boqun Chen 22 34
35 Viewing Trnsformtions Y VUp X LookAt LookFrom Trnslte LookFrom to origin Z Boqun Chen 22 35
36 Viewing Trnsformtions Y VUp X LookFrom LookAt Rotte LookAt to Z is (is-ngle rottion) Z Boqun Chen 22 36
37 Viewing Trnsformtions Y VUp X LookFrom LookAt Rotte bout Z to get the projection of Vup prllel to the Y is Z Boqun Chen 22 37
38 Implementtion Implementing the lookt/lookfrom/vup viewing scheme Boqun Chen 22 () Trnslte b -lookfrom, bring focl point to origin (2) Rotte lookt-lookfrom to the -is with mtri R:» v = (lookt-lookfrom) (normlied) nd = [,,]» rottion is: = (v)/ v» rottion ngle: cos= v nd sin= v R T v (I T ) v * where * or: glrotte(,, ) (3) Rotte bout -is to get projection of vup prllel to the -is» wtch out if vup is long the -is 38
39 Screen Coordintes VUp LookFrom d LookAt Boqun Chen 22 39
40 Viewport Trnsformtions A trnsformtion mps the visible (model) world onto screen or window coordintes In OpenGL viewport trnsformtion, e.g. glortho(), defines wht prt of the world is mpped in stndrd Normlied Device Coordintes ((-,-) to (,)) The viewpoint trnsformtion mps NDC into ctul window, piel coordintes b defult this fills the window otherwise use glviewport (4.7,2) (,) (64,48) (2,) Boqun Chen 22 4
41 Clipping Boqun Chen 22 4
42 The Viewing Frustum imge plne ner fr Boqun Chen 22 42
43 Normliing the Viewing Frustum Trnsform frustum to cube before clipping imge plne ner fr ner fr Converts perspective frustum to orthogrphic frustum Ver similr to our perspective trnsformtion just nother mtri Boqun Chen 22 43
44 Model nd Trnsformtion Hierrch Boqun Chen 22 44
45 How to Model Stick Person Mke stick person out of cubes Just trnslte, rotte, nd scle ech one to get the right sie, shpe, position, nd orienttion. Looks gret, until ou tr to mke it move. Boqun Chen 22 45
46 The Right Control Knobs Boqun Chen 22 As soon s ou wnt to chnge something, the model likel flls prt Reson: the thing ou re modeling is constrined but our model doesn t know it Wnted: some sort of representtion of structure Control knob This kind of control knob is convenient for sttic models, nd vitl for nimtion! Ke: structure the trnsformtions in the right w: using hierrch 46
47 Mking n Articulted Model r A p B q A miniml 2-D jointed object: Two pieces, A ( forerm ) nd B ( upper rm ) Attch point q on B to point r on A ( elbow ) Desired control knobs:» u: shoulder ngle (A nd B rotte together bout p)» v: elbow ngle (A rottes bout r, which sts ttched to p) Boqun Chen 22 47
48 Mking n Arm, step r A Strt with A nd B in their untrnsformed configurtions (B is hiding behind A) First ppl series of trnsformtions to A, leving B where it is Boqun Chen 22 48
49 Mking n Arm, step 2 r A B q r p A Trnslte b -r, bringing r to the origin You cn now see B peeking out from behind A Boqun Chen 22 49
50 Mking n Arm, step 3 B q r p A p B q Net, we rotte A b v (the elbow ngle) Boqun Chen 22 5
51 Mking n Arm, step 4 p B q p B q Trnslte A b q, bringing r nd q together to form the elbow joint We cn regrd q s the origin of the elbow coordinte sstem, nd regrd A s being in this coordinte sstem. Boqun Chen 22 5
52 Mking n Arm, step 5 p B q p B q From now on, ech trnsformtion pplies to both A nd B (This is importnt!) First, trnslte b -p, bringing p to the origin A nd B both move together, so the elbow doesn t seprte! Boqun Chen 22 52
53 Mking n Arm, step 6 p B q Then, we rotte b u, the shoulder ngle Agin, A nd B rotte together Boqun Chen 22 53
54 Mking n Arm, step 7 Finll, trnslte b T, bringing the rm where we wnt it p is t origin of shoulder coordinte sstem Boqun Chen 22 54
55 Trnsformtion Hierrchies Trns T Rot u Trns -p Trns q Rot v Trns -r A Boqun Chen 22 B This is the build-n-rm sequence, represented s tree Interprettion: Leves re geometric primitives Internl nodes re trnsformtions Trnsformtions ppl to everthing under them strt t the bottom nd work our w up You cn build wide rnge of models this w Trnsform Control knob Primitive 55
56 Trnsformtion Hierrchies Trns T Rot u Trns -p Trns q Rot v A Trns -r A Boqun Chen 22 B Another point of view: The shoulder coordinte trnsformtion moves everthing below it with respect to the shoulder: B A nd its trnsformtion The elbow coordinte trnsformtion moves A with respect to the elbow A Shoulder coordinte trnsform Elbow coordinte trnsform Primitive 56
57 A Schemtic Humnoid hip torso shoulder l. leg l. leg2 r. leg r. leg 2 l. rm r. rm neck l. rm2 r. rm2 hed Boqun Chen Ech node represents rottion(s) geometric primitive(s) struct. trnsformtions The root cn be nwhere. We chose the hip (cn re-root) Control for ech joint ngle, plus globl position nd orienttion A relistic humn would be much more comple
58 Directed Acclic Grph hip torso shoulder l. leg l. leg2 r. leg r. leg 2 l. rm r. rm neck l. rm2 r. rm2 hed This is grph, so ou cn re-root it. It s directed, rendering trversl onl follows links one w. It s cclic, to void infinite loops in rendering. Not necessril tree. e.g. l.rm2 nd r.rm2 primitives might be two instntitions (one mirrored) of the sme geometr Boqun Chen 22 58
59 Wht Hierrchies Cn nd Cn t Do Advntges: Resonble control knobs Mintins structurl constrints Disdvntges: Doesn t lws give the right control knobs» e.g. hnd or foot position - re-rooting m help Cn t do closed kinemtic chins (keep hnd on hip) Other constrints: do not wlk through wlls A more generl pproch: inverse kinemtics - more comple, but better knobs Hierrchies re vitl tool for modeling nd nimtion Boqun Chen 22 59
60 Implementing Hierrchies Building block: mtri stck tht ou cn push/pop Recursive lgorithm tht descends our model tree, doing trnsformtions, pushing, popping, nd drwing Tilored to OpenGL s stte mchine rchitecture (or vice vers) Nuts-nd-bolts issues: Wht kind of nodes should I put in m hierrch? Wht kind of interfce should I use to construct nd edit hierrchicl models? Etensions: epressions, lnguges. Boqun Chen 22 6
61 Ide of Mtri Stck: The Mtri Stck LIFO stck of mtrices with push nd pop opertions current trnsformtion mtri (product of ll trnsformtions on stck) trnsformtions modif mtri t the top of the stck Recursive lgorithm: lod the identit mtri for ech internl node:» push new mtri onto the stck» conctente trnsformtions onto current trnsformtion mtri» recursivel descend tree» pop mtri off of stck for ech lef node:» drw the geometric primitive using the current trnsformtion mtri Boqun Chen 22 6
62 Relevnt OpenGL routines glpushmtri(), glpopmtri() push nd pop the stck. push leves cop of the current mtri on top of the stck gllodidentit(), gllodmtrid(m) lod the Identit mtri, or n rbitrr mtri, onto top of the stck glmultmtrid(m) multipl the mtri C on top of stck b M. C = CM glortho (,,,,,) set up prllel projection mtri glrottef(thet,,,), glrotted( ) is/ngle rotte. f nd d tke flots nd doubles, respectivel gltrnsltef(,,), glsclef(,,) trnslte, rotte. (lso eist in d versions.) Boqun Chen 22 62
63 Two-link rm, revisited, in OpenGL Trce of Opengl clls gllodidentit(); glortho( ); glpushmtri(); gltrnsltef(t,t,); glrottef(u,,,); gltrnsltef(-p,-p,); glpushmtri(); gltrnsltef(q,q,); glrottef(v,,,); gltrnsltef(-r,-r,); Drw(A); glpopmtri(); Drw(B); glpopmtri(); Trns T Rot u Trns -p Trns q Rot v Trns -r A B Boqun Chen 22 63
64 The following not covered in this course Boqun Chen 22 64
65 Vector Trnsformtion For ffine trnsformtion, simpl trnsform (,,,). For perspective trnsformtion, more complicted For norml trnsformtion, specil cse Boqun Chen 22 65
66 Trnsforming Normls It s tempting to think of norml vectors s being like porcupine quills, so the would trnsform like points But it s not so --- consider the 2D emple ffine trnsformtion below. We need different rule to trnsform normls. Boqun Chen 22 66
67 Normls Do Not Trnsform Like Points If M is 44 trnsformtion mtri, then To trnsform points, use p =Mp, where p=[ ] T So to trnsform normls, n =Mn, where n=[ b c ] T right? Wrong! This formul doesn t work for generl M. Boqun Chen 22 67
68 Boqun Chen 22 Normls Trnsform Like Plnes A plne b c d cn be written n p n T p, where n b c d (,b,c) is the plne norml, d is the offset. If p is trnsformed, how should n trnsform? To find the nswer, do some mgic : T, p n T Ip eqution for point on plne in originl spce n T (M M)p (n T M )(Mp) n T p eqution for point on plne in trnsformed spce p Mp to trnsform point n (n T M ) T M T n to trnsform plne 68 T
69 Trnsforming Normls - Cses For generl trnsformtions M tht include perspective, use full formul (M inverse trnspose), use the right d d mtters, becuse prllel plnes do not trnsform to prllel plnes in this cse For ffine trnsformtions, d is irrelevnt, cn use d=. For rottions, M inverse trnspose = M, cn trnsform normls nd points with sme formul. Boqun Chen 22 69
70 Quternions The rottions re the unit quternions. Quternions, generlition of comple numbers, cn represent 3-D rottions bi cj dk where, b, c, d R nd b c d Emple: rottion b bout the unit vector [b c d] : cos bsin i csin j d sin k Successive rottions corresponds to multipling quternions bsed on distributive lw nd rules: i j k, ij k ji, jk i kj,ki j ik. A unit quternion represents point on the unit sphere in 4D. Interpoltion: shortest pth between two points on the sphere ( gret rc) T Boqun Chen 22 7
71 Advntges: Quternions no trigonometr required multipling quternions gives nother rottion (quternion) rottion mtrices cn be clculted from them direct rottion (with no mtri) no fvored direction or is Disdvntges: but, R v ( ) R v ( ) but, Quternion( R ( )) Quternion( R ( )) R ( ) v R v (36 ) v Quternion ( R ( )) Quternion ( (36 )) ( i j k) v v R v Boqun Chen 22 7
72 Line Clipping Modif endpoints of lines to lie in rectngle How to define interior of rectngle? Convenient def.: intersection of 4 hlf-plnes Nice w to decompose the problem Generlies esil to 3D (intersection of 6 hlf-plnes) m interior = < m > min min min m > min < m Boqun Chen 22 72
73 Line Clipping Modif end points of lines to lie in rectngle Method: Is end-point inside the clip region? (hlf-plne tests) If outside, clculte intersection between the line nd the clipping rectngle nd mke this the new end point Both endpoints inside: trivil ccept One inside: find intersection nd clip Both outside: either clip or reject (trick cse) Boqun Chen 22 73
74 Cohen-Sutherlnd Algorithm Uses outcodes to encode the hlf-plne tests results m bit : >m bit 2: <min bit 3: >m bit 4: <min min Rules: Boqun Chen 22 min 74 m Trivil ccept: outcode(end) nd outcode(end2) both ero Trivil reject: outcode(end) & (bitwise nd) outcode(end2) nonero Else subdivide
75 Cohen-Sutherlnd Algorithm: Subdivision If neither trivil ccept nor reject: Pick n outside endpoint (with nonero outcode) Pick n edge tht is crossed (nonero bit of outcode) Find line's intersection with tht edge Replce outside endpoint with intersection point Repet until trivil ccept or reject Other clipping lgorithms Crus-Beck/Ling-Brks or Nicholl-Lee-Nicholl Boqun Chen 22 75
76 Polgon Clipping Convert polgon into one or more polgons tht form the intersection of the originl with the clip window Boqun Chen 22 76
77 Sutherlnd-Hodgmn Polgon Clipping Algorithm Subproblem: clip polgon (verte list) ginst single clip plne output the verte list(s) for the resulting clipped polgon(s) Clip ginst ll four plnes generlies to 3D (6 plnes) generlies to n conve clip polgon/polhedron Boqun Chen 22 77
78 Sutherlnd-Hodgmn Polgon Clipping Algorithm (Cont.) To clip verte list ginst one hlf-plne: if first verte is inside - output it loop through list testing inside/outside trnsition - output depends on trnsition: > in-to-in: output verte > out-to-out: no output > in-to-out: output intersection > out-to-in: output intersection nd verte Boqun Chen 22 78
79 Summr Strted with orthogrphic projection: just throw out the Z coordinte Perspective projection from origin long Z is: use projection mtri Moving the cmer: trnsform the entire world so tht we cn do projection from the origin long the Z is Screen coordintes: trnslte nd scle entire world so tht projection ields piel coordintes Clipping: trnsform world so tht viewing frustum becomes unit cube. Clip lines ginst hlfplnes. Boqun Chen 22 79
Geometric transformations
Geometric trnsformtions Computer Grphics Some slides re bsed on Shy Shlom slides from TAU mn n n m m T A,,,,,, 2 1 2 22 12 1 21 11 Rows become columns nd columns become rows nm n n m m A,,,,,, 1 1 2 22
More informationLecture 5: Spatial Analysis Algorithms
Lecture 5: Sptil Algorithms GEOG 49: Advnced GIS Sptil Anlsis Algorithms Bsis of much of GIS nlsis tod Mnipultion of mp coordintes Bsed on Eucliden coordinte geometr http://stronom.swin.edu.u/~pbourke/geometr/
More informationCS380: Computer Graphics Modeling Transformations. Sung-Eui Yoon ( 윤성의 ) Course URL:
CS38: Computer Grphics Modeling Trnsformtions Sung-Eui Yoon ( 윤성의 ) Course URL: http://sgl.kist.c.kr/~sungeui/cg/ Clss Ojectives (Ch. 3.5) Know the clssic dt processing steps, rendering pipeline, for rendering
More informationViewing and Projection
15-462 Computer Grphics I Lecture 5 Viewing nd Projection Sher Trnsformtion Cmer Positioning Simple Prllel Projections Simple Perspective Projections [Angel, Ch. 5.2-5.4] Jnury 30, 2003 [Red s Drem, Pixr,
More informationStained Glass Design. Teaching Goals:
Stined Glss Design Time required 45-90 minutes Teching Gols: 1. Students pply grphic methods to design vrious shpes on the plne.. Students pply geometric trnsformtions of grphs of functions in order to
More informationRigid Body Transformations
igid od Kinemtics igid od Trnsformtions Vij Kumr igid od Kinemtics emrk out Nottion Vectors,,, u, v, p, q, Potentil for Confusion! Mtrices,, C, g, h, igid od Kinemtics The vector nd its skew smmetric mtri
More informationCPSC (T1) 2nd Midterm Exam
Signture: Fire Alrm Code: CPSC 44 2-2 (T) 2nd Midterm Exm Deprtment of Computer Science University of British Columbi K. Booth & R. Schrein Exm Instructions (Red Crefully). Sign the first pge of the exm
More informationTopics in Analytic Geometry
Nme Chpter 10 Topics in Anltic Geometr Section 10.1 Lines Objective: In this lesson ou lerned how to find the inclintion of line, the ngle between two lines, nd the distnce between point nd line. Importnt
More informationRay surface intersections
Ry surfce intersections Some primitives Finite primitives: polygons spheres, cylinders, cones prts of generl qudrics Infinite primitives: plnes infinite cylinders nd cones generl qudrics A finite primitive
More informationTopic 3: 2D Transformations 9/10/2016. Today s Topics. Transformations. Lets start out simple. Points as Homogeneous 2D Point Coords
Tody s Topics 3. Trnsformtions in 2D 4. Coordinte-free geometry 5. (curves & surfces) Topic 3: 2D Trnsformtions 6. Trnsformtions in 3D Simple Trnsformtions Homogeneous coordintes Homogeneous 2D trnsformtions
More informationAML710 CAD LECTURE 16 SURFACES. 1. Analytical Surfaces 2. Synthetic Surfaces
AML7 CAD LECTURE 6 SURFACES. Anlticl Surfces. Snthetic Surfces Surfce Representtion From CAD/CAM point of view surfces re s importnt s curves nd solids. We need to hve n ide of curves for surfce cretion.
More information1 Quad-Edge Construction Operators
CS48: Computer Grphics Hndout # Geometric Modeling Originl Hndout #5 Stnford University Tuesdy, 8 December 99 Originl Lecture #5: 9 November 99 Topics: Mnipultions with Qud-Edge Dt Structures Scribe: Mike
More informationTree Structured Symmetrical Systems of Linear Equations and their Graphical Solution
Proceedings of the World Congress on Engineering nd Computer Science 4 Vol I WCECS 4, -4 October, 4, Sn Frncisco, USA Tree Structured Symmetricl Systems of Liner Equtions nd their Grphicl Solution Jime
More informationConstrained Optimization. February 29
Constrined Optimiztion Februry 9 Generl Problem min f( ) ( NLP) s.. t g ( ) i E i g ( ) i I i Modeling nd Constrints Adding constrints let s us model fr more richer set of problems. For our purpose we
More information2 Computing all Intersections of a Set of Segments Line Segment Intersection
15-451/651: Design & Anlysis of Algorithms Novemer 14, 2016 Lecture #21 Sweep-Line nd Segment Intersection lst chnged: Novemer 8, 2017 1 Preliminries The sweep-line prdigm is very powerful lgorithmic design
More informationHW Stereotactic Targeting
HW Stereotctic Trgeting We re bout to perform stereotctic rdiosurgery with the Gmm Knife under CT guidnce. We instrument the ptient with bse ring nd for CT scnning we ttch fiducil cge (FC). Above: bse
More informationUnit #9 : Definite Integral Properties, Fundamental Theorem of Calculus
Unit #9 : Definite Integrl Properties, Fundmentl Theorem of Clculus Gols: Identify properties of definite integrls Define odd nd even functions, nd reltionship to integrl vlues Introduce the Fundmentl
More information6.3 Volumes. Just as area is always positive, so is volume and our attitudes towards finding it.
6.3 Volumes Just s re is lwys positive, so is volume nd our ttitudes towrds finding it. Let s review how to find the volume of regulr geometric prism, tht is, 3-dimensionl oject with two regulr fces seprted
More informationIntroduction Transformation formulae Polar graphs Standard curves Polar equations Test GRAPHS INU0114/514 (MATHS 1)
POLAR EQUATIONS AND GRAPHS GEOMETRY INU4/54 (MATHS ) Dr Adrin Jnnett MIMA CMth FRAS Polr equtions nd grphs / 6 Adrin Jnnett Objectives The purpose of this presenttion is to cover the following topics:
More informationCS 430 Spring Mike Lam, Professor. Parsing
CS 430 Spring 2015 Mike Lm, Professor Prsing Syntx Anlysis We cn now formlly descrie lnguge's syntx Using regulr expressions nd BNF grmmrs How does tht help us? Syntx Anlysis We cn now formlly descrie
More informationMatrices and Systems of Equations
Mtrices Mtrices nd Sstems of Equtions A mtri is rectngulr rr of rel numbers. CHAT Pre-Clculus Section 8. m m m............ n n n mn We will use the double subscript nottion for ech element of the mtri.
More informationSection 10.4 Hyperbolas
66 Section 10.4 Hyperbols Objective : Definition of hyperbol & hyperbols centered t (0, 0). The third type of conic we will study is the hyperbol. It is defined in the sme mnner tht we defined the prbol
More information8.2 Areas in the Plane
39 Chpter 8 Applictions of Definite Integrls 8. Ares in the Plne Wht ou will lern out... Are Between Curves Are Enclosed Intersecting Curves Boundries with Chnging Functions Integrting with Respect to
More informationLecture 7: Building 3D Models (Part 1) Prof Emmanuel Agu. Computer Science Dept. Worcester Polytechnic Institute (WPI)
Computer Grphics (CS 4731) Lecture 7: Building 3D Models (Prt 1) Prof Emmnuel Agu Computer Science Dept. Worcester Polytechnic Institute (WPI) Stndrd d Unit itvectors Define y i j 1,0,0 0,1,0 k i k 0,0,1
More informationToday. Search Problems. Uninformed Search Methods. Depth-First Search Breadth-First Search Uniform-Cost Search
Uninformed Serch [These slides were creted by Dn Klein nd Pieter Abbeel for CS188 Intro to AI t UC Berkeley. All CS188 mterils re vilble t http://i.berkeley.edu.] Tody Serch Problems Uninformed Serch Methods
More informationOrientation & Quaternions. CSE169: Computer Animation Instructor: Steve Rotenberg UCSD, Winter 2017
Orienttion & Quternions CSE69: Computer Animtion Instructor: Steve Rotenberg UCSD, Winter 7 Orienttion Orienttion We will define orienttion to men n object s instntneous rottionl configurtion Think of
More information50 AMC LECTURES Lecture 2 Analytic Geometry Distance and Lines. can be calculated by the following formula:
5 AMC LECTURES Lecture Anlytic Geometry Distnce nd Lines BASIC KNOWLEDGE. Distnce formul The distnce (d) between two points P ( x, y) nd P ( x, y) cn be clculted by the following formul: d ( x y () x )
More informationKinematics and Orientations
Kinematics and Orientations Hierarchies Forward Kinematics Transformations (review) Euler angles Quaternions Yaw and evaluation function for assignment 2 Building a character Just translate, rotate, and
More informationName Date Class. cot. tan. cos. 1 cot 2 csc 2
Fundmentl Trigonometric Identities To prove trigonometric identit, use the fundmentl identities to mke one side of the eqution resemle the other side. Reciprocl nd Rtio Identities csc sec sin cos Negtive-Angle
More informationCS-C3100 Computer Graphics, Fall 2016 Ray Casting II Intersection Extravaganza
CS-C3100 Computer Grphics, Fll 2016 Ry Csting II Intersection Extrvgnz Henrik Wnn Jensen Jkko Lehtinen with lots of mteril from Frédo Durnd CS-C3100 Fll 2016 Lehtinen 1 Pinholes in Nture Flickr user Picture
More informationSolutions to Math 41 Final Exam December 12, 2011
Solutions to Mth Finl Em December,. ( points) Find ech of the following its, with justifiction. If there is n infinite it, then eplin whether it is or. ( ) / ln() () (5 points) First we compute the it:
More informationEssential Question What are some of the characteristics of the graph of a rational function?
8. TEXAS ESSENTIAL KNOWLEDGE AND SKILLS A..A A..G A..H A..K Grphing Rtionl Functions Essentil Question Wht re some of the chrcteristics of the grph of rtionl function? The prent function for rtionl functions
More information6.2 Volumes of Revolution: The Disk Method
mth ppliction: volumes by disks: volume prt ii 6 6 Volumes of Revolution: The Disk Method One of the simplest pplictions of integrtion (Theorem 6) nd the ccumultion process is to determine so-clled volumes
More informationThe Reciprocal Function Family. Objectives To graph reciprocal functions To graph translations of reciprocal functions
- The Reciprocl Function Fmil Objectives To grph reciprocl functions To grph trnsltions of reciprocl functions Content Stndrds F.BF.3 Identif the effect on the grph of replcing f () b f() k, kf(), f(k),
More informationPythagoras theorem and trigonometry (2)
HPTR 10 Pythgors theorem nd trigonometry (2) 31 HPTR Liner equtions In hpter 19, Pythgors theorem nd trigonometry were used to find the lengths of sides nd the sizes of ngles in right-ngled tringles. These
More information3 4. Answers may vary. Sample: Reteaching Vertical s are.
Chpter 7 Answers Alterntive Activities 7-2 1 2. Check students work. 3. The imge hs length tht is 2 3 tht of the originl segment nd is prllel to the originl segment. 4. The segments pss through the endpoints
More informationMA1008. Calculus and Linear Algebra for Engineers. Course Notes for Section B. Stephen Wills. Department of Mathematics. University College Cork
MA1008 Clculus nd Liner Algebr for Engineers Course Notes for Section B Stephen Wills Deprtment of Mthemtics University College Cork s.wills@ucc.ie http://euclid.ucc.ie/pges/stff/wills/teching/m1008/ma1008.html
More informationZZ - Advanced Math Review 2017
ZZ - Advnced Mth Review Mtrix Multipliction Given! nd! find the sum of the elements of the product BA First, rewrite the mtrices in the correct order to multiply The product is BA hs order x since B is
More informationThe notation y = f(x) gives a way to denote specific values of a function. The value of f at a can be written as f( a ), read f of a.
Chpter Prerequisites for Clculus. Functions nd Grphs Wht ou will lern out... Functions Domins nd Rnges Viewing nd Interpreting Grphs Even Functions nd Odd Functions Smmetr Functions Defined in Pieces Asolute
More informationMATH 2530: WORKSHEET 7. x 2 y dz dy dx =
MATH 253: WORKSHT 7 () Wrm-up: () Review: polr coordintes, integrls involving polr coordintes, triple Riemnn sums, triple integrls, the pplictions of triple integrls (especilly to volume), nd cylindricl
More informationMath 35 Review Sheet, Spring 2014
Mth 35 Review heet, pring 2014 For the finl exm, do ny 12 of the 15 questions in 3 hours. They re worth 8 points ech, mking 96, with 4 more points for netness! Put ll your work nd nswers in the provided
More informationRegular Expression Matching with Multi-Strings and Intervals. Philip Bille Mikkel Thorup
Regulr Expression Mtching with Multi-Strings nd Intervls Philip Bille Mikkel Thorup Outline Definition Applictions Previous work Two new problems: Multi-strings nd chrcter clss intervls Algorithms Thompson
More informationa < a+ x < a+2 x < < a+n x = b, n A i n f(x i ) x. i=1 i=1
Mth 33 Volume Stewrt 5.2 Geometry of integrls. In this section, we will lern how to compute volumes using integrls defined by slice nlysis. First, we recll from Clculus I how to compute res. Given the
More informationCSCI 446: Artificial Intelligence
CSCI 446: Artificil Intelligence Serch Instructor: Michele Vn Dyne [These slides were creted by Dn Klein nd Pieter Abbeel for CS188 Intro to AI t UC Berkeley. All CS188 mterils re vilble t http://i.berkeley.edu.]
More informationTilt-Sensing with Kionix MEMS Accelerometers
Tilt-Sensing with Kionix MEMS Accelerometers Introduction Tilt/Inclintion sensing is common ppliction for low-g ccelerometers. This ppliction note describes how to use Kionix MEMS low-g ccelerometers to
More informationMath 4 Review for Quarter 2 Cumulative Test
Mth 4 Review for Qurter 2 Cumultive Test Nme: I. Right Tringle Trigonometry (3.1-3.3) Key Fcts Pythgoren Theorem - In right tringle, 2 + b 2 = c 2 where c is the hypotenuse s shown below. c b Trigonometric
More informationLecture 4 Single View Metrology
Lecture 4 Single View Metrology Professor Silvio Svrese Computtionl Vision nd Geometry Lb Silvio Svrese Lecture 4-4-Jn-5 Lecture 4 Single View Metrology Review clibrtion nd 2D trnsformtions Vnishing points
More informationModeling and Simulation of Short Range 3D Triangulation-Based Laser Scanning System
Modeling nd Simultion of Short Rnge 3D Tringultion-Bsed Lser Scnning System Theodor Borngiu Anmri Dogr Alexndru Dumitrche April 14, 2008 Abstrct In this pper, simultion environment for short rnge 3D lser
More informationMTH 146 Conics Supplement
105- Review of Conics MTH 146 Conics Supplement In this section we review conics If ou ne more detils thn re present in the notes, r through section 105 of the ook Definition: A prol is the set of points
More informationSection 9.2 Hyperbolas
Section 9. Hperols 597 Section 9. Hperols In the lst section, we lerned tht plnets hve pproimtel ellipticl orits round the sun. When n oject like comet is moving quickl, it is le to escpe the grvittionl
More informationVisibility Algorithms
Visibility Determintion Visibility Algorithms AKA, hidden surfce elimintion Roger Crwfis CIS 78 This set of slides reference slides used t Ohio Stte for instruction by Prof. Mchirju nd Prof. Hn-Wei Shen.
More informationECE 468/573 Midterm 1 September 28, 2012
ECE 468/573 Midterm 1 September 28, 2012 Nme:! Purdue emil:! Plese sign the following: I ffirm tht the nswers given on this test re mine nd mine lone. I did not receive help from ny person or mteril (other
More informationP(r)dr = probability of generating a random number in the interval dr near r. For this probability idea to make sense we must have
Rndom Numers nd Monte Crlo Methods Rndom Numer Methods The integrtion methods discussed so fr ll re sed upon mking polynomil pproximtions to the integrnd. Another clss of numericl methods relies upon using
More informationGeometry Subsystem Design
Geometr Susstem Design Ln-D Vn ( 范倫達 ), Ph. D. Deprtment of Computer Science Ntionl Chio Tung Universit Hisnchu, Tiwn Fll, 206 206/0/4 Outline Geometr Susstem Introduction to Shding Algorithms Proposed
More informationFig.1. Let a source of monochromatic light be incident on a slit of finite width a, as shown in Fig. 1.
Answer on Question #5692, Physics, Optics Stte slient fetures of single slit Frunhofer diffrction pttern. The slit is verticl nd illuminted by point source. Also, obtin n expression for intensity distribution
More informationcalled the vertex. The line through the focus perpendicular to the directrix is called the axis of the parabola.
Review of conic sections Conic sections re grphs of the form REVIEW OF CONIC SECTIONS prols ellipses hperols P(, ) F(, p) O p =_p REVIEW OF CONIC SECTIONS In this section we give geometric definitions
More informationCHAPTER III IMAGE DEWARPING (CALIBRATION) PROCEDURE
CHAPTER III IMAGE DEWARPING (CALIBRATION) PROCEDURE 3.1 Scheimpflug Configurtion nd Perspective Distortion Scheimpflug criterion were found out to be the best lyout configurtion for Stereoscopic PIV, becuse
More informationIf f(x, y) is a surface that lies above r(t), we can think about the area between the surface and the curve.
Line Integrls The ide of line integrl is very similr to tht of single integrls. If the function f(x) is bove the x-xis on the intervl [, b], then the integrl of f(x) over [, b] is the re under f over the
More information1. SEQUENCES INVOLVING EXPONENTIAL GROWTH (GEOMETRIC SEQUENCES)
Numbers nd Opertions, Algebr, nd Functions 45. SEQUENCES INVOLVING EXPONENTIAL GROWTH (GEOMETRIC SEQUENCES) In sequence of terms involving eponentil growth, which the testing service lso clls geometric
More informationLexical Analysis: Constructing a Scanner from Regular Expressions
Lexicl Anlysis: Constructing Scnner from Regulr Expressions Gol Show how to construct FA to recognize ny RE This Lecture Convert RE to n nondeterministic finite utomton (NFA) Use Thompson s construction
More informationTool Vendor Perspectives SysML Thus Far
Frontiers 2008 Pnel Georgi Tec, 05-13-08 Tool Vendor Perspectives SysML Thus Fr Hns-Peter Hoffmnn, Ph.D Chief Systems Methodologist Telelogic, Systems & Softwre Modeling Business Unit Peter.Hoffmnn@telelogic.com
More informationINTRODUCTION TO SIMPLICIAL COMPLEXES
INTRODUCTION TO SIMPLICIAL COMPLEXES CASEY KELLEHER AND ALESSANDRA PANTANO 0.1. Introduction. In this ctivity set we re going to introduce notion from Algebric Topology clled simplicil homology. The min
More informationCompilers Spring 2013 PRACTICE Midterm Exam
Compilers Spring 2013 PRACTICE Midterm Exm This is full length prctice midterm exm. If you wnt to tke it t exm pce, give yourself 7 minutes to tke the entire test. Just like the rel exm, ech question hs
More informationAlgebra II Notes Unit Ten: Conic Sections
Sllus Ojective: 0. The student will sketch the grph of conic section with centers either t or not t the origin. (PARABOLAS) Review: The Midpoint Formul The midpoint M of the line segment connecting the
More informationAnswer Key Lesson 6: Workshop: Angles and Lines
nswer Key esson 6: tudent Guide ngles nd ines Questions 1 3 (G p. 406) 1. 120 ; 360 2. hey re the sme. 3. 360 Here re four different ptterns tht re used to mke quilts. Work with your group. se your Power
More informationIn the last lecture, we discussed how valid tokens may be specified by regular expressions.
LECTURE 5 Scnning SYNTAX ANALYSIS We know from our previous lectures tht the process of verifying the syntx of the progrm is performed in two stges: Scnning: Identifying nd verifying tokens in progrm.
More informationFall 2018 Midterm 1 October 11, ˆ You may not ask questions about the exam except for language clarifications.
15-112 Fll 2018 Midterm 1 October 11, 2018 Nme: Andrew ID: Recittion Section: ˆ You my not use ny books, notes, extr pper, or electronic devices during this exm. There should be nothing on your desk or
More informationTOWARDS GRADIENT BASED AERODYNAMIC OPTIMIZATION OF WIND TURBINE BLADES USING OVERSET GRIDS
TOWARDS GRADIENT BASED AERODYNAMIC OPTIMIZATION OF WIND TURBINE BLADES USING OVERSET GRIDS S. H. Jongsm E. T. A. vn de Weide H. W. M. Hoeijmkers Overset symposium 10-18-2012 Deprtment of mechnicl engineering
More informationLIMITS AND CONTINUITY
LIMITS AND CONTINUITY Joe McBride/Stone/Gett Imges Air resistnce prevents the velocit of skdiver from incresing indefinitel. The velocit pproches it, clled the terminl velocit. The development of clculus
More informationGrade 7/8 Math Circles Geometric Arithmetic October 31, 2012
Fculty of Mthemtics Wterloo, Ontrio N2L 3G1 Grde 7/8 Mth Circles Geometric Arithmetic Octoer 31, 2012 Centre for Eduction in Mthemtics nd Computing Ancient Greece hs given irth to some of the most importnt
More information11/28/18 FIBONACCI NUMBERS GOLDEN RATIO, RECURRENCES. Announcements. Announcements. Announcements
Fiboncci (Leonrdo Pisno) 0-0? Sttue in Pis Itly FIBONACCI NUERS GOLDEN RATIO, RECURRENCES Lecture CS0 Fll 08 Announcements A: NO LATE DAYS. No need to put in time nd comments. We hve to grde quickly. No
More informationMath 17 - Review. Review for Chapter 12
Mth 17 - eview Ying Wu eview for hpter 12 1. Given prmetric plnr curve x = f(t), y = g(t), where t b, how to eliminte the prmeter? (Use substitutions, or use trigonometry identities, etc). How to prmeterize
More informationIntegration. October 25, 2016
Integrtion October 5, 6 Introduction We hve lerned in previous chpter on how to do the differentition. It is conventionl in mthemtics tht we re supposed to lern bout the integrtion s well. As you my hve
More informationRay Casting II. Courtesy of James Arvo and David Kirk. Used with permission.
y Csting II Courtesy of Jmes Arvo nd Dvid Kirk. Used with permission. MIT EECS 6.837 Frédo Durnd nd Brb Cutler Some slides courtesy of Leonrd McMilln MIT EECS 6.837, Cutler nd Durnd 1 eview of y Csting
More informationDate: 9.1. Conics: Parabolas
Dte: 9. Conics: Prols Preclculus H. Notes: Unit 9 Conics Conic Sections: curves tht re formed y the intersection of plne nd doulenpped cone Syllus Ojectives:. The student will grph reltions or functions,
More information)
Chpter Five /SOLUTIONS Since the speed ws between nd mph during this five minute period, the fuel efficienc during this period is between 5 mpg nd 8 mpg. So the fuel used during this period is between
More informationMidterm 2 Sample solution
Nme: Instructions Midterm 2 Smple solution CMSC 430 Introduction to Compilers Fll 2012 November 28, 2012 This exm contins 9 pges, including this one. Mke sure you hve ll the pges. Write your nme on the
More information9.1 apply the distance and midpoint formulas
9.1 pply the distnce nd midpoint formuls DISTANCE FORMULA MIDPOINT FORMULA To find the midpoint between two points x, y nd x y 1 1,, we Exmple 1: Find the distnce between the two points. Then, find the
More informationOrthogonal line segment intersection
Computtionl Geometry [csci 3250] Line segment intersection The prolem (wht) Computtionl Geometry [csci 3250] Orthogonl line segment intersection Applictions (why) Algorithms (how) A specil cse: Orthogonl
More informationCS 432 Fall Mike Lam, Professor a (bc)* Regular Expressions and Finite Automata
CS 432 Fll 2017 Mike Lm, Professor (c)* Regulr Expressions nd Finite Automt Compiltion Current focus "Bck end" Source code Tokens Syntx tree Mchine code chr dt[20]; int min() { flot x = 42.0; return 7;
More informationAlignment of Long Sequences. BMI/CS Spring 2012 Colin Dewey
Alignment of Long Sequences BMI/CS 776 www.biostt.wisc.edu/bmi776/ Spring 2012 Colin Dewey cdewey@biostt.wisc.edu Gols for Lecture the key concepts to understnd re the following how lrge-scle lignment
More informationCSEP 573 Artificial Intelligence Winter 2016
CSEP 573 Artificil Intelligence Winter 2016 Luke Zettlemoyer Problem Spces nd Serch slides from Dn Klein, Sturt Russell, Andrew Moore, Dn Weld, Pieter Abbeel, Ali Frhdi Outline Agents tht Pln Ahed Serch
More informationB. Definition: The volume of a solid of known integrable cross-section area A(x) from x = a
Mth 176 Clculus Sec. 6.: Volume I. Volume By Slicing A. Introduction We will e trying to find the volume of solid shped using the sum of cross section res times width. We will e driving towrd developing
More informationsuch that the S i cover S, or equivalently S
MATH 55 Triple Integrls Fll 16 1. Definition Given solid in spce, prtition of consists of finite set of solis = { 1,, n } such tht the i cover, or equivlently n i. Furthermore, for ech i, intersects i
More informationΕΠΛ323 - Θεωρία και Πρακτική Μεταγλωττιστών
ΕΠΛ323 - Θωρία και Πρακτική Μταγλωττιστών Lecture 3 Lexicl Anlysis Elis Athnsopoulos elisthn@cs.ucy.c.cy Recognition of Tokens if expressions nd reltionl opertors if è if then è then else è else relop
More informationCS-184: Computer Graphics. Today. Lecture #10: Clipping and Hidden Surfaces ClippingAndHidden.key - October 27, 2014.
1 CS184: Computer Grphics Lecture #10: Clipping nd Hidden Surfces!! Prof. Jmes O Brien University of Cliforni, Berkeley! V2013F101.0 Tody 2 Clipping Clipping to view volume Clipping ritrry polygons Hidden
More informationClass-XI Mathematics Conic Sections Chapter-11 Chapter Notes Key Concepts
Clss-XI Mthemtics Conic Sections Chpter-11 Chpter Notes Key Concepts 1. Let be fixed verticl line nd m be nother line intersecting it t fixed point V nd inclined to it t nd ngle On rotting the line m round
More informationEliminating left recursion grammar transformation. The transformed expression grammar
Eliminting left recursion grmmr trnsformtion Originl! rnsformed! 0 0! 0 α β α α α α α α α α β he two grmmrs generte the sme lnguge, but the one on the right genertes the rst, nd then string of s, using
More informationStack. A list whose end points are pointed by top and bottom
4. Stck Stck A list whose end points re pointed by top nd bottom Insertion nd deletion tke plce t the top (cf: Wht is the difference between Stck nd Arry?) Bottom is constnt, but top grows nd shrinks!
More informationImage interpolation. A reinterpretation of low-pass filtering. Image Interpolation
Imge interpoltion A reinterprettion of low-pss filtering Imge Interpoltion Introduction Wht is imge interpoltion? (D-A conversion) Wh do we need it? Interpoltion Techniques 1D zero-order, first-order,
More informationCS-184: Computer Graphics. Today. Clipping. Hidden Surface Removal. Tuesday, October 7, Clipping to view volume Clipping arbitrary polygons
CS184: Computer Grphics Lecture #10: Clipping nd Hidden Surfces Prof. Jmes O Brien University of Cliforni, Berkeley V2008S101.0 1 Tody Clipping Clipping to view volume Clipping ritrry polygons Hidden Surfce
More informationDynamic Programming. Andreas Klappenecker. [partially based on slides by Prof. Welch] Monday, September 24, 2012
Dynmic Progrmming Andres Klppenecker [prtilly bsed on slides by Prof. Welch] 1 Dynmic Progrmming Optiml substructure An optiml solution to the problem contins within it optiml solutions to subproblems.
More informationIntegration. September 28, 2017
Integrtion September 8, 7 Introduction We hve lerned in previous chpter on how to do the differentition. It is conventionl in mthemtics tht we re supposed to lern bout the integrtion s well. As you my
More informationSOME EXAMPLES OF SUBDIVISION OF SMALL CATEGORIES
SOME EXAMPLES OF SUBDIVISION OF SMALL CATEGORIES MARCELLO DELGADO Abstrct. The purpose of this pper is to build up the bsic conceptul frmework nd underlying motivtions tht will llow us to understnd ctegoricl
More informationThe Nature of Light. Light is a propagating electromagnetic waves
The Nture of Light Light is propgting electromgnetic wves Index of Refrction n: In mterils, light intercts with toms/molecules nd trvels slower thn it cn in vcuum, e.g., vwter The opticl property of trnsprent
More informationDefinition of Regular Expression
Definition of Regulr Expression After the definition of the string nd lnguges, we re redy to descrie regulr expressions, the nottion we shll use to define the clss of lnguges known s regulr sets. Recll
More information4-1 NAME DATE PERIOD. Study Guide. Parallel Lines and Planes P Q, O Q. Sample answers: A J, A F, and D E
4-1 NAME DATE PERIOD Pges 142 147 Prllel Lines nd Plnes When plnes do not intersect, they re sid to e prllel. Also, when lines in the sme plne do not intersect, they re prllel. But when lines re not in
More informationSuffix trees, suffix arrays, BWT
ALGORITHMES POUR LA BIO-INFORMATIQUE ET LA VISUALISATION COURS 3 Rluc Uricru Suffix trees, suffix rrys, BWT Bsed on: Suffix trees nd suffix rrys presenttion y Him Kpln Suffix trees course y Pco Gomez Liner-Time
More informationCS 221: Artificial Intelligence Fall 2011
CS 221: Artificil Intelligence Fll 2011 Lecture 2: Serch (Slides from Dn Klein, with help from Sturt Russell, Andrew Moore, Teg Grenger, Peter Norvig) Problem types! Fully observble, deterministic! single-belief-stte
More informationSpring 2018 Midterm Exam 1 March 1, You may not use any books, notes, or electronic devices during this exam.
15-112 Spring 2018 Midterm Exm 1 Mrch 1, 2018 Nme: Andrew ID: Recittion Section: You my not use ny books, notes, or electronic devices during this exm. You my not sk questions bout the exm except for lnguge
More information