Download presentation
Presentation is loading. Please wait.
1
6/28/2015©Zachary Wartell Homogenous Coordinates and Projective Geometry (Crudely Speaking) Revision 1.2 Copyright Zachary Wartell, University of North Carolina All Rights Reserved Textbook: Chapter 5-2
2
6/28/2015©Zachary Wartell Review points, vectors, alignments: ITCS 4120-2D Coordinates.ppt Slide #13ITCS 4120-2D Coordinates.ppt Slide #13 vector – all arrows of same length and direction are associated with same vector, v, designated by coordinate ( x,y,z ) or column matrix [ x,y,z,0] T alignment – For any line, l, there exists an infinite set, S, of all lines parallel to l. Let’s give a coordinate (i.e. a name) to, S, using the slopes of l. Ideas? –l : p 0 + t (p 1 - p 0 ) or p 0 + t v then for any other line m in S m : p m0 + t v –Note that set of points {p | p = p 0 + t v } = {p | p = p 0 + t ( k v) } where k R and k ≠ 0 –So we could name the alignment, S, by k v Example: l : ((5,5,5),(10,11,10)) and m : ((5,5,15),(10,11,20)) have alignment (5,6,5), but any coordinate k · (5,6,5) names the same alignment, so many coordinates are valid, e.g. (1,6/5,1), (10,12,10)…. So: “ all lines of same slopes are associated with same alignment, i, designated by a one of a set of coordinates k · ( x,y,z )”
3
6/28/2015©Zachary Wartell What’s the point ( )? Affine Geometry: –points and vectors –affine transform: preserve collinearity, parallelism, distance ratios; points points, vectors vectors. – valid matrix valid coordinates (as column matrices) point vector Projective Geometry –points and alignments (also called ‘points at infinity’ or ‘ideal points’) –projective transform: preserve collinearity, (not parallelism, not distance ratios); points points or alignments, alignments alignments or points – valid matrix valid coordinates point alignment x,y,z not all 0
4
6/28/2015©Zachary Wartell Why points ( x,y,z,w ), w≠0? From a purely algebraic standpoint, observe: But what does the point’s homogenous coordinate (40,30,50,10) mean? –since any element, P, in the infinite set of coordinates: {P=( x,y,z,w) | k· (40,30,50,10), k≠0} is defined to represent the same point we can convert (40,30,50,10) to a canonical standard form ( x',y',z',1 ) = 1/ w · ( x,y,z,w ). So: (40,30,50,10) (4,3,5,1)
5
6/28/2015©Zachary Wartell Why is ( x,y,z,0 ), x,y,z≠0 called ‘point at infinity’ or an ‘alignment’ ? (1,1) (1,1,1) (1,0) (1,0,1) ( , ) (1,1, w 0) l m (2,1) (2,1,1) (1,1) (1,1,1) l1l1 (1,1, w 0 ) What happens to a point as w 0? (assume z=0; (x,y,w)) What happens to a line through that point as w 0? p1p1 (2,2) (1,1,1/2) p2p2 (4,4) (1,1,1/4) p4p4 ( , ) (1,1, w 0) pp (1000,1000) (1,1,1/1000) l2l2 (2,2) (1,1,1/2) l4l4 (4,4) (1,1,1/4) l 1000 (1000,1000) (1,1,1/1000) m
6
6/28/2015©Zachary Wartell Why call ( x,y,z,w ), w≠0 a " homogenous" coordinate? Consider 2D Point: –projective coordinate: ( x h,y h,w h ) –‘normalized’ affine coordinate: ( x,y )=( x h /w h,y h /w h ) Equation of 2D line: –affine coordinate representation: y = mx + b or mx - y + b = 0 (1) Note, mx and y are degree 1, b is degree 0 –homogeneous coordinate representation: mx h /w h - y h /w h + b = 0 or mx h - y h + b w h = 0 (2) Note, mx h, y h, b w h are all degree 1 Recall equations like (2) where “the degree of every term is the same” are called homogenous equations. Since using 2D point coordinates like ( x h,y h,w h ) cause line (and other) equations to become homogenous equations, ( x h,y h,w h ) are called homogenous coordinates
7
6/28/2015©Zachary Wartell What’s the use of Projective Geometry? In general, projective geometry allows a more extended set of algebraic formula for computing fundamental geometric operations, such as the intersection of two lines, in a manner that always yields a closed form solution. Example: Compute intersection of lines l and m l : p=(0,0,0) + t (1,1,1) m : p=(1,0,0) + t (1,1,1) With affine geometry’s algebra this yields a ‘/0’ and hence result is algebraically undefined! With projective geometry algebra (not covered in class!), the algebra will yield the ‘ideal point’ (1,1,1,0) This indicates that while these two lines have no ‘regular’ point in common they have in common the same alignment, whose coordinate is (1,1,1,0)
8
6/28/2015©Zachary Wartell Questions? Isn’t it inconsistent to claim that sometimes we consider ( x,y,z,1 ) and ( x,y,z,0 ) valid column matrix encoded coordinates (affine geometry) and sometimes we consider ( x,y,z,w ), w≠0 and ( x,y,z,0 ), x,y,z ≠ 0 valid coordinates? –Answer: Yes, it is inconsistent. Essentially, when working computer graphics problems, you must consider which scheme of geometry your using , but 99% of the time in Intro. Graphics you just use the affine scheme and while the projective scheme is necessary for 3D viewing, it occurs in a very well-defined and limited step in the graphics pipeline
9
6/28/2015©Zachary Wartell Revisions 1.1 - spelling
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.