# Reconstructing a ring from a stack of 2D images (radially aligned)

I have a stack of images (about 180 of them) and there are 2 black dots on every single image. Hence, the position(x,y) of the two stars are provided initially. The dimensions of all these images are fixed and constant.

The radial 'distance' between the image is about 1o with the origin to be the center of every single 2D image. Since the images are radially aligned, the output would be a possible ring shape in 3D.

the dotted red circle and dotted purple circle are there to give a stronger scent of a 3D space and the arrangement of the 2D images(like a fan). It also indicates that each slice is about 1o apart and a legend that'd give you an idea where the z-axis should be.

Now my question is

With the provided (x,y) that appeared in the 2D image, how do you get the corresponding (x,y,z) in the 3d space knowing that each image is about 1o apart?

I know that every point on a sphere can be approximated by the following equations:

x = r sin (theta) cos (phi)
y = r sin (theta) sin (phi)
z = r cos (theta)

However, i don't know how to connect those equations to my problem as i am rather weak in math as you can see by now. :(

Thanks!!

-

If I understand the question correctly, your $180$ images are all taken in planes that contain one common axis and are rotated around that axis in increments of $1^\circ$. Your axis labeling is somewhat confusing because you use $x$ and $y$ both for the 2D coordinates and for the 3D coordinates, even though these stand in different relations to each other depending on the plane of the image. So I'll use a different, consistent labeling of the axes and I hope you can apply the results to your situation.
Let's say the image planes all contain the $z$ axis, and lets label the axes within the 2D images with $u$ and $v$, where the $v$ axis coincides with the $z$ axis and the $u$ axis is orthogonal to it. Then the orientation of the image plane can be described by the (signed) angle $\phi$ between the $u$ axis and the $x$ axis (which changes in increments of $1^\circ$ from one plane to the next), and the relationship between the 2D coordinates $u,v$ and the 3D coordinates $x,y,z$ is
$$\begin{eqnarray} x&=&u\cos\phi\\ y&=&u\sin\phi\\ z&=&v\;. \end{eqnarray}$$