The API documentation has an example where addPhotos() for multispectral input data receives a list of image file paths (all images for location/timestamp 0001, then all images for 0002, etc), a list with the number of cameras per group (filegroups), and Metashape.MultiplaneLayout. When using the GUI, Metashape is able to detect the number of cameras, and group the images, without manual entry of something like the filegroups. A example set of filenames is provided below:
DJI_20240823114949_0001_D.JPG
DJI_20240823114949_0001_MS_G.TIF
DJI_20240823114949_0001_MS_NIR.TIF
DJI_20240823114949_0001_MS_RE.TIF
DJI_20240823114949_0001_MS_R.TIF
DJI_20240823114952_0002_D.JPG
DJI_20240823114952_0002_MS_G.TIF
DJI_20240823114952_0002_MS_NIR.TIF
DJI_20240823114952_0002_MS_RE.TIF
DJI_20240823114952_0002_MS_R.TIF
What is the default behavior of addPhotos() for multispectral input like this? - I have tried it without the filegroups argument and it proceeds without an error or warning. Is the filegroups argument really necessary or does addPhotos generally work for the imageBaseFileName_channel.tif format filenames? Thank you!