Forum

Author Topic: Export Cameras Parameters like Colmap  (Read 396 times)

FATMA

  • Newbie
  • *
  • Posts: 1
    • View Profile
Export Cameras Parameters like Colmap
« on: May 17, 2022, 03:54:56 PM »
Hello,
There are camera parameters that I generate via colmap, such as: fl_x, fl_y, k1, k2, p1, p2, cx, cy. When I export the cameras after aligning the images in Agisoft, there is no fl_x and fl_y values in the resulting xml file. How can I generate these values in agisoft?
Cameras.xml exported from Agisoft:
          <f>f value</f>
           <cx>cx value</cx>
           <cy>cy value</cy>
           <k1>k1 value</k1>
           <k2>k2 value</k2>
           <k3>k3 value</k3>
           <p1>p1 value</p1>
           <p2>p2 value</p2>

PolarNick

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
Re: Export Cameras Parameters like Colmap
« Reply #1 on: May 17, 2022, 04:49:51 PM »
I think you can follow this script - it parses Agisoft's xml file to pass cameras calibrations into NVIDIA's instant-ngp (NERF) which originally was using Colmap calibrations as input (so its purpose is very close to your request).