- #1
StochasticSignal
- 1
- 0
- TL;DR Summary
- How do I map vectors that satisfy an ellipsoid to those that satisfy a sphere?
I have been working on a problem for a while and my progress has slowed enough I figured I'd try reaching out for some more experience. I am trying to map a point on an ellipsoid to its corresponding point on a sphere of arbitrary size centered at the origin. I would like to be able to shift any point with the following formula:
$$p_{sphere} = \mathbf A (p_{ellipsoid} - c)$$
I am trying to determine the A matrix that will transform a point from a fully defined ellipsoid E matrix.
Where an ellipsoid (or other quadric surface) can be defined with the following:
$$
\left[
\begin{matrix}
x & y & z & 1\\
\end{matrix}
\right]
\mathbf E
\left[
\begin{matrix}
x\\
y\\
z\\
1\\
\end{matrix}
\right]
=
0
$$
$$
Where\
\mathbf E =
\begin{pmatrix}
a & h & g & p\\
h & b & f & q\\
g & f & c & r\\
p & q & r & d
\end{pmatrix}
=
\left[
\begin{array}{c|c}
\mathbf M_{3x3} & \vec{\mathbf n}\\
\hline
\vec{\mathbf n}^T & d\\
\end{array}
\right]
$$
And c can be determined like so:
$$
c = -\mathbf M^{-1}\vec{\mathbf n}
$$
Determining the c offset is straightforward and I have an intuitive understanding of that derivation. However, rotating and scaling the ellipsoid is the part that is escaping me. Applying different combinations of eigenvectors and eigenvalues in ways that I thought would make sense do not deliver the results I am expecting (hoping) for.
In some other discussions I have had, the following equation can be used to find the A matrix:
$$
\mathbf A = \frac{F}{\sqrt{\vec{\mathbf n}^T \mathbf M^{-1} \vec{\mathbf n} - d}} \mathbf M^{1/2}$$
Where ##M^{1/2}## is the matrix square root of M and F is a chosen sphere radius. However, I have no intuition for the mathematical meaning of this equation, how to arrive at it, or even a sense of what it's saying.
If someone has some advice on how to approach this problem, I would greatly appreciate it if you could share it with me.
Thank you for your time.
$$p_{sphere} = \mathbf A (p_{ellipsoid} - c)$$
I am trying to determine the A matrix that will transform a point from a fully defined ellipsoid E matrix.
Where an ellipsoid (or other quadric surface) can be defined with the following:
$$
\left[
\begin{matrix}
x & y & z & 1\\
\end{matrix}
\right]
\mathbf E
\left[
\begin{matrix}
x\\
y\\
z\\
1\\
\end{matrix}
\right]
=
0
$$
$$
Where\
\mathbf E =
\begin{pmatrix}
a & h & g & p\\
h & b & f & q\\
g & f & c & r\\
p & q & r & d
\end{pmatrix}
=
\left[
\begin{array}{c|c}
\mathbf M_{3x3} & \vec{\mathbf n}\\
\hline
\vec{\mathbf n}^T & d\\
\end{array}
\right]
$$
And c can be determined like so:
$$
c = -\mathbf M^{-1}\vec{\mathbf n}
$$
Determining the c offset is straightforward and I have an intuitive understanding of that derivation. However, rotating and scaling the ellipsoid is the part that is escaping me. Applying different combinations of eigenvectors and eigenvalues in ways that I thought would make sense do not deliver the results I am expecting (hoping) for.
In some other discussions I have had, the following equation can be used to find the A matrix:
$$
\mathbf A = \frac{F}{\sqrt{\vec{\mathbf n}^T \mathbf M^{-1} \vec{\mathbf n} - d}} \mathbf M^{1/2}$$
Where ##M^{1/2}## is the matrix square root of M and F is a chosen sphere radius. However, I have no intuition for the mathematical meaning of this equation, how to arrive at it, or even a sense of what it's saying.
If someone has some advice on how to approach this problem, I would greatly appreciate it if you could share it with me.
Thank you for your time.