Forum

Author Topic: Reference for the NVM format  (Read 1577 times)

Mostafa

  • Newbie
  • *
  • Posts: 3
    • View Profile
Reference for the NVM format
« on: December 22, 2021, 08:04:32 PM »
Hello,

When I export cameras to NVM format, the parameters are defined in a local coordinate system, and I notice it is different from the one in the XML format.

How to transform the cameras and points at NVM format from the local to the global coordinate system?

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14846
    • View Profile
Re: Reference for the NVM format
« Reply #1 on: January 08, 2022, 08:59:55 PM »
Hello Mostafa,

You can try to export the cameras in geocentric coordinate system using the following Python code line:
Code: [Select]
Metashape.app.document.chunk.exportCameras(path = 'cameras.nvm', format = Metashape.CamerasFormatNVM, crs = Metashape.CoordinateSystem('EPSG::4978'))
Best regards,
Alexey Pasumansky,
Agisoft LLC

Mostafa

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Reference for the NVM format
« Reply #2 on: January 29, 2022, 12:19:49 AM »
Thanks Alexey,

I noticed when I save to NVM, it includes the failed/un-aligned cameras. Is it a bug? and is it also the case with other formats?