Geometric Transformation & Projective Geometry. by: Diako Mardanbegi, PhD student. Transformation and Projective Geometry. Computer Vision: Relative movement of a camera Object locations wrt . Camera Graphics Describe objects and cameras in a scene and how they should move in 3D scene.
01 / 82Geometric Transformation & Projective Geometry
1 / 17
Télécharger la présentation
Geometric Transformation & Projective Geometry
Une image / un lien ci-dessous est fourni (tel quel) pour télécharger la présentation
Politique de téléchargement : le contenu du site vous est fourni TEL QUEL pour votre information et votre usage personnel ; il ne peut être vendu, concédé sous licence ni partagé sur d’autres sites sans l’accord de son auteur.Le contenu vous est fourni TEL QUEL, pour votre information et votre usage personnel uniquement.Téléchargez la présentation en cliquant sur ce lien.Lors du téléchargement, si vous ne parvenez pas à télécharger une présentation, l’éditeur a peut-être supprimé le fichier de son serveur.Pendant le téléchargement, si vous ne parvenez pas à obtenir une présentation, le fichier a peut-être été supprimé par l’éditeur.
Transformation and Projective Geometry • Computer Vision: • Relative movement of a camera • Object locations wrt. Camera • Graphics • Describe objects and cameras in a scene and how they should move in 3D scene. • User interfaces (like WPF) relies heavy placing components relative to each other (2D) and for its 3D graphics engine.
Outline • 2-D Transformations • Representing Transformations • Homogeneous form • Multiple frames • Cartesian Coordinate System • Describe a local frame • Orientation • Translation • Mapping between multiple frames • 3-D Transformations • Euler angles • Quaternion • Projective coordinate system • Homography
Representing transformations , , , • Trick of additional coordinate makes this possible to express all transformations in a common linear form • Old way: • Cartesian coordinates • New way: • With additional coordinate (Homogeneous coordinates)
Representing transformations homogeneous transformation: linear transformation of homogeneous coordinates x‘ = H x In homogeneous form In homogeneous form
We can do it, but first know about: • What is exactly a cartesian coordinate system? • How to describe a local frame in a fixed frame? • How to express a point in each frame?
Cartesian Coordinate System y-axis • A coordinate system in Rn is defined by an origin oand n orthogonal basis vectors • In R3, positive direction of each axis X, Y, Z is indicated by unit vector i, j, k • Let P = (x, y, z)T be a point in R3 • Coordinate is length of projection of vector from origin to point onto axis basis vector What do these values mean? . P j i x-axis k O ? z-axis
Vector Projection • The projection of vector a onto u is that component of a in the direction of u
Describe a local frame in a fixed frame A,B Y Y Y Y’ Y’ Y’ homogeneous form X’ X’ X’ X X X A,B : orientation of frame B relative to A B (x, y) : translation of frame B relative to A A
Going from 2D to 3D • Vector cross product • Definition: If a=(xa, ya, za)T and b=(xb, yb, zb)T, then: c=ax b =(yazb-zayb, zaxb - xazb, xayb- yaxb)T • c is orthogonal to both aand b (direction given by right-hand r with magnitude k=ixj
3-D Rotation • In 2-D, we are always rotating in the plane of the image, but in 3-D the axis of rotation itself is a variable • Three canonical rotation axes are the coordinate axes X, Y, Z
3-D Rotation • Similar to 2-D rotation matrices, but with coordinate corresponding to rotation axis held constant
3-D Rotation • When object is to be rotated about an axis that is parallel to one of the coordinate axes
3-D Rotation Easiest way ?! • When an object is to be rotated about an axis that is not parallel to one of the coordinate axes
3-D Camera Coordinates • Right-handed system • From point of view of camera looking out into scene: • +X right, -Xleft • +Ydown, -Y up • +Z in front of camera,-Zbehind
+Yworld +Xworld +Zworld Creating a simple WPF 3D space with camera: http://www.codeproject.com/KB/WPF/Wpf3DPrimer.aspx
Orientation in 3-D • in 2D we have 4 elements in orientation matrix but we can locate the local frame by having only one angle . (we know the axis) • in 3D we have 9 elements but how many angles do we need for locating the local frame in space? • only 3
Euler’s Theorem Euler’s Theorem : “Any two independent orthonormal coordinate frames can be related by a sequence of rotations (not more than three) about coordinate axes, where no two successive rotations may be about the same axis”
Z-Y-X Euler angles • Start with the frame coincident with a known frame {A}. Rotate {B} first about ZB by an angle , then about YBby an angle and, finally, about XB by an angle
Connexion au compte
Connectez-vous pour publier votre contenu sur SlideServe.