Forum

Author Topic: Create bbox around point cloud by camera names?  (Read 2595 times)

photoscan_user

  • Jr. Member
  • **
  • Posts: 98
    • View Profile
Create bbox around point cloud by camera names?
« on: November 01, 2017, 04:57:53 PM »
Is there any script to create bbox around point cloud by camera names?
« Last Edit: November 01, 2017, 05:00:58 PM by photoscan_user »

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14847
    • View Profile
Re: Create bbox around point cloud by camera names?
« Reply #1 on: November 01, 2017, 05:05:38 PM »
Can you please elaborate this in additional details?
Best regards,
Alexey Pasumansky,
Agisoft LLC

photoscan_user

  • Jr. Member
  • **
  • Posts: 98
    • View Profile
Re: Create bbox around point cloud by camera names?
« Reply #2 on: November 01, 2017, 05:19:24 PM »
For example I have some large chunk for which I have created sparse point cloud and then I want to compute bounding box for some part of this chunk based on image names, this bounding box will be used for other steps of pipeline like dense cloud generation, etc.

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14847
    • View Profile
Re: Create bbox around point cloud by camera names?
« Reply #3 on: November 02, 2017, 11:42:55 AM »
Hello photoscan_user,

What would be passed to the script input -the pairs of camera labels? Should them be used for the bounding box size definition only or for the orientation as well and the bounding box center?
Best regards,
Alexey Pasumansky,
Agisoft LLC

photoscan_user

  • Jr. Member
  • **
  • Posts: 98
    • View Profile
Re: Create bbox around point cloud by camera names?
« Reply #4 on: November 03, 2017, 04:50:16 PM »
Input should be list of image names (camera names) which is subset of images of large chunk.

Photoscan already have bbox for large chunk, so I guess orientation of computed bbox should be the same by Z coordinate, because it's important for orthomap generation. I don't know about the center of bbox, it's needed only if it is used by Photoscan somewhere under the hood.


Samuel

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Create bbox around point cloud by camera names?
« Reply #5 on: February 09, 2018, 08:42:46 PM »
It would also be helpful to generate the bounding box based on given gps coordinates or have a way to fit the bounding box around the cameras such that nothing (or very little) behind the cameras is processed