I am trying to use the point cloud data generated by photoscan in a program I am writing myself to analyze the photos used. I have found that there is a "view points" option in all the individual photos views. Is there a way to export each photos "view points" list... with the X,Y, coordinates?
If not:
I have also discovered that you can go to File -> Export Points... and save that as a ".txt" file. Which looks like:
X Y Z R G B r1 r2 r3
1.6 6.36 17.25 30 46 46 -0.270650 -0.900329 -0.340817
2.7 4.85 17.81 136 128 118 -0.389732 -0.789449 -0.474215
But I want to know which "cameras" (or images) contributed to those points.
For example: if there are some cameras used to generate a point cloud and we have a point in 3D space at (x,y,z) (2,4,6). I would like to map the 3D space coordinates to the 2D coordinates of all the images that contain that point. So all that might look like:
3D point: (x,y,z) (2,4,6)
Cameras: 1 - (x,y) (55,100)
2 - (x,y,) (15,33)
3 - (x,y,) (12, 88)
etc...
Is this already implemented in the software, and I just haven't noticed it yet? Or is this possible with python scripting in the API of photoscan?
Any help is appreciated. Thanks!