Sign in to follow this  
linus78

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

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this