Forum

Author Topic: Exporting Point Cloud data in relation to individual images  (Read 3229 times)

quickuser1234

  • Newbie
  • *
  • Posts: 2
    • View Profile
Exporting Point Cloud data in relation to individual images
« on: February 23, 2017, 03:28:47 AM »
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!

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14813
    • View Profile
Re: Exporting Point Cloud data in relation to individual images
« Reply #1 on: February 23, 2017, 03:31:48 PM »
Hello quickuser1234,

You can try to export the point cloud in Bundler.out format, it should contain the required data. Alternatively you can export it using custom scripts, if you need more convenient format.
Best regards,
Alexey Pasumansky,
Agisoft LLC

quickuser1234

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Exporting Point Cloud data in relation to individual images
« Reply #2 on: February 23, 2017, 09:31:14 PM »
Thanks Alexey!

It seems that the bundler.out format gives information only regarding the "tie points" between the images. (And those create the sparse point cloud, correct?)

Is there anything that gives the information in translating the 3D dense cloud coordinates to the coordinates in 2D of the images that contain those 3D points? Or is there a way to access that data from python scripting?
« Last Edit: February 23, 2017, 09:38:51 PM by quickuser1234 »

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14813
    • View Profile
Re: Exporting Point Cloud data in relation to individual images
« Reply #3 on: February 24, 2017, 01:56:54 AM »
Hello quickuser1234,

The process for the dense cloud points generation is much more complicated (there's no exact pixel to pixel correspondence) and at the moment the information you are referring to is not accessible.
Best regards,
Alexey Pasumansky,
Agisoft LLC