Forum

Author Topic: Urgent Multicam Gaussian Splats Export  (Read 2566 times)

HaydenMartin

  • Newbie
  • *
  • Posts: 23
    • View Profile
Urgent Multicam Gaussian Splats Export
« on: April 17, 2024, 10:30:30 AM »
Hey guys

Question here regarding multicam rigs

When a multicam rig is loaded in, with master/slave cameras, is there a way to “break apart” the slave cameras from the master after the alignment process so they are classed as seperate again?

The reason I’m hoping to find out the approach for this is because I’m using Postshot, a Gaussian Splat platform which requires exports of all the cameras from Metashape, rather than just the Masters

To clarify, I simply want to be able to access ALL cameras from the lefthand side cameras tab.

Right now I have 700 Master cams, each with 5 Slave cams, so in total I want to have access to 3500 cams… I hope that makes sense. If I can sort that out then I shouldn’t need to modify the script details below:

Here’s the script I’m using:
https://github.com/agisoft-llc/metashape-scripts/blob/master/src/export_for_gaussian_splatting.py

Looking at the scripting documentation here:
http://download.agisoft.com/metashape-java-api/latest/com/agisoft/metashape/Chunk.html

Seems like I need to do something like this, but unsure how exactly, as  I’m a total Python noob:

To export the slave/secondary cameras, I’ll need to modify the parts of the script that iterate over the cameras in each chunk/frame. Specifically, in the functions “get_filtered_track_structure”, “save_undistorted_images”, and “save_images”, i’lll need to iterate over not just “frame.cameras” but also “frame.camericaclusters” which contains the slave camera clusters.

For each slave camera cluster, I’ll need to extract the individual slave cameras using “cluster.cameras” and process them similar to how the primary cameras are processed.