• Advertisement
Sign in to follow this  

Find the XYZ for an object in the sky with two cameras?

This topic is 2969 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi! I have two cameras watching an area in wich an object will appear. One of the cameras is aimed from the side and the other is aimed in front of the object. I have XYZ positions for the cameras and when looking at the images I can calculate the azimuth and elevation to the appearing object. Any ideas how I can use this to calculate the XYZ position for the appearing object?

Share this post


Link to post
Share on other sites
Advertisement
Well, you can think that one camera gives you the position in XY plane and the other in YZ plane. If the cameras are exactly orthonormal to each other, deriving the general position of the object is relatively easy.

If the cameras are positioned like a pair of eyes, you need to do some shape recognition on the images to find correlating points on both, and solve the perspective transforms based on those points. Then, transforming the points by the [inverse of the perspective] will result in view-space xyz points. Finally, transform the points by the inverse of the [camera position and orientation] to arrive to world-space xyz.

Share this post


Link to post
Share on other sites
if you have 3D cameras, you can compute the ray firing from each camera towards the object.

That gives you two rays, that you can test for intersection. They will likely not intersect exactly, but you can then compute their 'closest distance' vector and take the midpoint.

Share this post


Link to post
Share on other sites
Thanks for your help!

I found this page:
http://local.wasp.uwa.edu.au/~pbourke/geometry/lineline3d/

Very helpfull, i have somewhat of a working solution now.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement