Ask Your Question

Measuring from 3D photos

asked 2016-07-29 08:46:30 -0500

Alemao gravatar image

updated 2016-07-29 08:59:03 -0500

i have two photos taken by a car like google street view car, this photos has 80% overlap, i have the photo coordinates in UTM system, omega phi kappa, calibration values like p1,p2,k1,k2, sensor size, focal,etc. Is possible to visualize this photos in a 3d split view and take measures from this photos ? sorry for my english, but how can i do that?! rectifying my question, i want that user see the left and the right photo, adjusted, and click two points on the photo to get measure.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2016-07-29 16:57:59 -0500

Tetragramm gravatar image

updated 2016-07-29 17:02:43 -0500

Yes, it is certainly possible. I'm not quite sure what it is you want to do with the two points or what measurements you're trying to get, but I do know the first step is getting the depth or 3D coordinates of points in the photos. To do that you need to find the correspondence between one image and the other. Either Dense or Sparse Optical Flow can be useful here. Sparse if you only need a few specific points. Dense if you need the whole image.

This is similar to a stereo image problem, but it might not be best to treat it that way. Stereo algorithms make assumptions that might not be valid in this case, and you'd be solving for information you sort of already have. It's certainly available (though I don't know too much about it). The place to start for that is the OpenCV Stereo module and the calib3d module.

Now, OpenCV doesn't include any algorithms that use the information you have there directly, but I've been working on a project (only partially done) that does. The mapping3d module can take a set of inputs with camera position and orientation plus a 2d point in each image (as many images as you have) and give you the 3d location of that point. It can account for different cameras and distortions if you have images from more than one.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2016-07-29 08:46:30 -0500

Seen: 332 times

Last updated: Jul 29 '16