Reconstructing an Ellipsoid from its Perspective Projection onto a Plane

Similar documents
Perspective Projection of an Ellipse

Distance Between Ellipses in 2D

Intersection of Rectangle and Ellipse

Information About Ellipses

Intersection of Infinite Cylinders

A Relationship Between Minimum Bending Energy and Degree Elevation for Bézier Curves

Distance from a Point to an Ellipse, an Ellipsoid, or a Hyperellipsoid

Fitting a Natural Spline to Samples of the Form (t, f(t))

Intersection of Ellipsoids

The Laplace Expansion Theorem: Computing the Determinants and Inverses of Matrices

Intersection of Ellipses

Least-Squares Fitting of Data with Polynomials

Solving Systems of Polynomial Equations

Intersection of Objects with Linear and Angular Velocities using Oriented Bounding Boxes

Distance to Circles in 3D

Least Squares Fitting of Data by Linear or Quadratic Structures

Principal Curvatures of Surfaces

1.1 Single Variable Calculus versus Multivariable Calculus Rectangular Coordinate Systems... 4

Distance from Line to Rectangle in 3D

8 Eigenvectors and the Anisotropic Multivariate Gaussian Distribution

Algebra II Vocabulary Alphabetical Listing. Absolute Maximum: The highest point over the entire domain of a function or relation.

Complex Numbers: Definition: A complex number is a number of the form: z = a + bi where a, b are real numbers and i is a symbol with the property: i

A A x i x j i j (i, j) (j, i) Let. Compute the value of for and

Interpolation of Rigid Motions in 3D

7. Symmetric Matrices and Quadratic Forms

For all questions, answer choice E. NOTA" means none of the above answers is correct.

ft-uiowa-math2550 Assignment NOTRequiredJustHWformatOfQuizReviewForExam3part2 due 12/31/2014 at 07:10pm CST

SKILL BUILDER TEN. Graphs of Linear Equations with Two Variables. If x = 2 then y = = = 7 and (2, 7) is a solution.

Systems of Equations and Inequalities. College Algebra

Chapter 3 Transformations

Math 118, Fall 2014 Final Exam

APPLICATIONS The eigenvalues are λ = 5, 5. An orthonormal basis of eigenvectors consists of

Centerville High School Curriculum Mapping Algebra II 1 st Nine Weeks

Matrices and Vectors. Definition of Matrix. An MxN matrix A is a two-dimensional array of numbers A =

ax 2 + bx + c = 0 where

Chapter 7: Symmetric Matrices and Quadratic Forms

Least Squares Fitting of Data

Linear Algebra: Matrix Eigenvalue Problems

OHSx XM521 Multivariable Differential Calculus: Homework Solutions 13.1

Computing Orthonormal Sets in 2D, 3D, and 4D

The Area of Intersecting Ellipses

TWO THEOREMS ON THE FOCUS-SHARING ELLIPSES: A THREE-DIMENSIONAL VIEW

Problem Set # 1 Solution, 18.06

Chapter 6: Orthogonality

Distance and Midpoint Formula 7.1

Fall River Joint Unified School District

Linear algebra I Homework #1 due Thursday, Oct Show that the diagonals of a square are orthogonal to one another.

Chapter 2 Formulas and Definitions:

DS-GA 1002 Lecture notes 0 Fall Linear Algebra. These notes provide a review of basic concepts in linear algebra.

Lecture 6 Positive Definite Matrices

Econ Slides from Lecture 8

NATIONAL BOARD FOR HIGHER MATHEMATICS. M. A. and M.Sc. Scholarship Test. September 25, Time Allowed: 150 Minutes Maximum Marks: 30

Chapter 5 Eigenvalues and Eigenvectors

Algebra 2A Unit 1 Week 1 Day Activity Unit 1 Week 2 Day Activity Unit 1 Week 3 Day Activity Unit 2 Week 1 Day Activity

MAT Linear Algebra Collection of sample exams

Math 302 Outcome Statements Winter 2013

X- MATHS IMPORTANT FORMULAS SELF EVALUVATION

Solutions to Final Exam

Symmetric matrices and dot products

NC Math 3 Draft Standards

Numerical Linear Algebra Chap. 2: Least Squares Problems

Linear Algebra - Part II

ft-uiowa-math2550 Assignment OptionalFinalExamReviewMultChoiceMEDIUMlengthForm due 12/31/2014 at 10:36pm CST

Linear Algebra Primer

LMI MODELLING 4. CONVEX LMI MODELLING. Didier HENRION. LAAS-CNRS Toulouse, FR Czech Tech Univ Prague, CZ. Universidad de Valladolid, SP March 2009

Lecture 7: Positive Semidefinite Matrices

Orthogonal Transformations

SOLUTION KEY TO THE LINEAR ALGEBRA FINAL EXAM 1 2 ( 2) ( 1) c a = 1 0

CALC 3 CONCEPT PACKET Complete

The Distance Formula. The Midpoint Formula

ELLIPTIC CURVES BJORN POONEN

INTERSECTION OF THREE QUADRIC IN THE SPECIAL POSITION Milada Kočandrlová

Algebra II Learning Targets

Solving Equations Quick Reference

Math 520 Exam 2 Topic Outline Sections 1 3 (Xiao/Dumas/Liaw) Spring 2008

2. Every linear system with the same number of equations as unknowns has a unique solution.

MATHS X STD. Try, try and try again you will succeed atlast. P.THIRU KUMARESA KANI M.A., M.Sc.,B.Ed., (Maths)

Chapter 12 Review Vector. MATH 126 (Section 9.5) Vector and Scalar The University of Kansas 1 / 30

UNIT I : NUMBER SYSTEMS

Linear Algebra for Machine Learning. Sargur N. Srihari

ICS 6N Computational Linear Algebra Symmetric Matrices and Orthogonal Diagonalization

Lecture 15, 16: Diagonalization

Algebra 2 Honors Curriculum Pacing Guide

Linear Algebra. Session 12

Math Matrix Algebra

8. Diagonalization.

(v, w) = arccos( < v, w >

MATH 1120 (LINEAR ALGEBRA 1), FINAL EXAM FALL 2011 SOLUTIONS TO PRACTICE VERSION

MATH 1020 WORKSHEET 12.1 & 12.2 Vectors in the Plane

LINEAR ALGEBRA QUESTION BANK

Vectors Coordinate frames 2D implicit curves 2D parametric curves. Graphics 2008/2009, period 1. Lecture 2: vectors, curves, and surfaces

Chap 3. Linear Algebra

Name: MATH 3195 :: Fall 2011 :: Exam 2. No document, no calculator, 1h00. Explanations and justifications are expected for full credit.

Math 0031, Final Exam Study Guide December 7, 2015

PRACTICE TEST 1 Math Level IC

Since x + we get x² + 2x = 4, or simplifying it, x² = 4. Therefore, x² + = 4 2 = 2. Ans. (C)

UNCC 2001 Algebra II

WA State Common Core Standards - Mathematics

Course Number 420 Title Algebra I Honors Grade 9 # of Days 60

X- MATHS IMPORTANT FORMULAS SELF EVALUVATION 1. SETS AND FUNCTIONS. 1. Commutative property i ii. 2. Associative property i ii

Transcription:

Reconstructing an Ellipsoid from its Perspective Projection onto a Plane David Eberly, Geometric Tools, Redmond WA 98052 https://www.geometrictools.com/ This work is licensed under the Creative Commons Attribution 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by/4.0/ or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA. Created: May 5, 2007 Last Modified: March 1, 2008 Contents 1 Introduction 2 2 Determining the Elliptical Cone Bounding the Ellipsoid 2 3 Reconstructing the Elliptical Cone Bounding the Ellipsoid 3 4 Reconstruction of an Ellipsoid 4 5 A Summary of the Algorithm 5 1

1 Introduction An ellipsoid in standard form is X C) T AX C) = 1 1) where C is the center of the ellipsoid, where A is positive definite all positive eigenvalues), and where X is any point on the ellipsoid. Given an eyepoint E and a projection plane N Y = d, where N is a unit-length vector, d is a constant, Y is any point on the plane, and E is not on the plane, we may project the ellipsoid to an ellipse on the plane. As a 3D quantity, the ellipse is Y = K + uu + vv 2) where K is the center of the ellipse, where {U, V, N} is an orthonormal set unit-length vectors that are mutually orthogonal), and where u/a) 2 + v/b) 2 = 1. The values a and b are the major and minor axis halflengths. The document Perspective Projection of an Ellipsoid provides the algebraic details of computing K, U, V, a, and b from the known quantities A and C. This document describes how to reconstruct an ellipsoid from the ellipse. That is, if E, N, K, U, V, a, and b are known, we wish to compute a matrix A and C for an ellipsoid whose perspective projection is the ellipse. As it turns out, there are infinitely many solutions. You can see this by considering an eyepoint at 0, 0, 1), a projection plane of z = 0, and a circle centered at 0, 0, 0) of radius r. There are infinitely many ellipsoids of the form x 2 + y 2 )/α 2 + z s) 2 /β 2 = 1 for s < 1 and whose perspective projections are the specified circle. At the end of this document, I will use this example to reconstruct ellipsoids that project to the circle. 2 Determining the Elliptical Cone Bounding the Ellipsoid Let us first start with an ellipsoid and compute the elliptical cone that tightly bounds the ellipsoid. Consider a ray Lt) = E + td, where t > 0 and D is a unit-length vector. The intersection of the ray and ellipsoid is determined by 1 = Lt) C) T ALt) C) 3) or equivalently by t 2 D T AD + 2t T AD + T A 1 = 0 4) where = E C. This is a quadratic equation in t. If this equation has two distinct real-valued roots, the ray intersects the ellipsoid twice. If this equation has no real-valued roots, the ray does not intersect the ellipsoid. When the equation has a single real-valued root, the ray is tangent to the ellipsoid. The condition for having a single real-valued root is that the discriminant is zero: T AD) 2 D T AD) T A 1) = 0 5) This equation factors into ) D T A T T A T A 1)A D = 0 6) The unit-length directions are determined by the tangent points, D = X E)/ X E. We may substitute this into the equation and multiply through by the denominator to obtain X E) T BX E) = 0 7) 2

where B = A T T A T A 1)A 8) Equation 7) describes an elliptical cone whose vertex is at E. By the geometry, the matrix B is nonsingular and has two eigenvalues of the same sign and another eigenvalue of the opposite sign. If the two eigenvalues of the same sign are equal, then the cone is circular. 3 Reconstructing the Elliptical Cone Bounding the Ellipsoid For any point Y on the ellipse, the corresponding ellipsoid point X must be on the line segment from the eyepoint to the ellipse point, which implies that X E and Y E are parallel vectors. As such, X E = ty E) for some t > 0. Dotting the equation with N and rearranging terms produces X E N X E) = Y E N Y E) 9) Substituting Equation 2) into Equation 9) and rearranging some terms leads to rx E) K E) = uu + vv 10) where r = N K E)/N X E). I have used the fact that N is orthogonal to both U and V. Dot Equation 10) with U and then with V to obtain u = U rx E) K E)) v = V rx E) K E)) 11) Substituting these into u/a) 2 + v/b) 2 = 1, 1 = U rx E) K E)) ) 2 a + = rx E) K E)) T UU T ) 2 V rx E) K E)) = rx E) K E)) T MrX E) K E)) a 2 b + VVT b 2 ) rx E) K E)) 12) where the last equality defines the matrix M. Multiply Equation 12) by 1/r 2 to obtain Now observe that 1 r 2 = X E) K E)/r)T MX E) K E)/r) 13) X E) K E)/r = X E) K E) N X E) N K E) = I K E) NT) X E) N K E) = P X E) 14) where I is the identity matrix and where the last equality defines the matrix P. Also observe that 1 N X E))2 = r2 N K E)) 2 = X E)T NN T X E) N K E)) 2 = X E) T QX E) 15) 3

where the last equality defines the matrix Q. Substitute Equations 14) and 15) into Equation 13) to obtain 0 = X E) T P T MP Q ) X E) = X E) T B X E) 16) where B = P T MP Q. Compare this to Equation 8), since the current equation is itself that of an elliptical cone. In fact, using any nonzero multiple of B, say, σb for σ 0, in the cone equation does not change the solutions. We will need this extra degree of freedom in reconstructing A and C. 4 Reconstruction of an Ellipsoid The problem now reduces to choosing a center point C and a positive definite matrix A that define the ellipsoid and for which A T T A T A 1)A = B 17) where B = σb and = E C. Although you might be tempted to choose C on the ray from the eyepoint E through the ellipse center K, it is generally not the case that C projects to K. An example to illustrate: Project the sphere x 2 + y 2 + z 2 = 1 onto the plane z = 0 using the eyepoint E = 1, 0, 2). The projection of the sphere center C = 0, 0, 0) onto z = 0 is the point 0, 0, 0). However, the projection of the sphere is an ellipse whose center is K = 1/3, 0, 0). Multiply Equation 17) on the right by to obtain A = B. Replacing this back into the equation, we obtain B T T B T B 1)A = B 18) If A is a positive definite matrix and C is a vector in front of the eyepoint, both which define an ellipsoid that projects onto the ellipse, they must cause Equation 18) to be true. However, Equation 18) might have extraneous solutions that do not lead to an ellipsoid. For example, it is possible that symmetric matrices A are solutions but those matrices are not positive definite. If you were to choose a candidate positive definite matrix A, then you can compute solutions directly from Equation 18). If you were to choose a candidate center C, then is a known quantity and you may formally solve Equation 18) for A, A = B BT B 1 T B = σb σ 2 B ) T B 1 σ T B However, observe that the computed A might not be positive definite, in which case your specified center is not possible for the choice you made for σ when computing B = σb. Varying the value of σ is necessary to force a positive definite solution A. Example. Consider the simple case where the eyepoint is E = 0, 0, 1) and the projection plane is z = 0, in which case N = 0, 0, 1). The projection is chosen to be a circle with center K = 0, 0, 0) and radius 1, in which case a = b = 1, and we may choose U = 1, 0, 0) and V = 0, 1, 0). Choose a center C = 0, 0, s) for s < 1. You will find that = 0, 0, s 1), P = M = Diag1, 1, 0), Q = Diag0, 0, 1), B = Diag1, 1, 1), and finally ) σ A = Diag 1 + σs 1) 2, σ 1 + σs 1) 2, σ 4 19)

For A to be positive definite, we need σ < 0 for the last diagonal entry to be positive. For the first two diagonal entries to be positive, we need σ < 1/s 1) 2. The reconstructed ellipsoid is a sphere when σ = 2/s 1) 2, a prolate spheroid rotation of ellipse about major axis) when σ < 2/s 1) 2, or an oblate spheroid rotation of ellipse about minor axis) when 2/s 1) 2 < σ < 1/s 1) 2. This example implies that, generally, you have multiple degrees of freedom. In the example at hand, you may choose the location of the ellipsoid center along the z-axis choose any s < 1) and you may choose the shape of the ellipsoid choose any σ < 1/s 1) 2 ). 5 A Summary of the Algorithm The following are specified quantities: The eyepoint E. A unit-length normal N for the projection plane. The ellipse center K, which is a point on the projection plane. The ellipse axes U and V, both unit length and orthogonal to each other, and both orthogonal to N. The ellipse axis half-lengths a, corresponding to axis U, and b, corresponding to axis V. The following are computed from the specified quantities: The matrix M = UU T /a 2 + VV T /b 2. The vector W = N/N K E)). The matrix P = I K E)W T. The matrix Q = WW T. The matrix B = P T MP Q. When you choose a center C and scale σ, compute = E C and B = σb, and then compute A = B B T B)/1 T B ). However, A might not be positive definite, in which case you must choose a different σ. To check if A is positive definite, you can compute an eigendecomposition A = RDR T, where R is an orthogonal matrix and where D is a diagonal matrix. You are good to go when the diagonal entries of D are all positive. Alternatively, you can compute the coefficients of the characteristic polynomial pt) = detti A) and use the Routh-Hurwitz Criterion for determining if all the roots are positive. This is a simple algebraic test and does not require actually computing the roots as an eigendecomposition does. Equivalent to this is to compute a Sturm sequence of polynomials for pt) and count the number of roots on the interval 0, ). If the answer is three, you have a positive definite matrix A. 5