Hey,
So I have a set of .tif images that have 6 bands. The bands are however laystacked into one singlular .tif file.
chunk.addPhotos(["./Mcaw/TCR00010.TIF"])
So as usual I give in the path of the image file to the function addPhotos(), but instead of loading all bands into a singular camera, I get all bands split into their own individual cameras. These cameras then have the names:
<Camera 'TCR00010'>,
<Camera 'TCR00010 [2]'>,
<Camera 'TCR00010 [3]'>,
<Camera 'TCR00010 [4]'>,
<Camera 'TCR00010 [5]'>,
<Camera 'TCR00010 [6]'>
However, I want all bands within a single camera here. I also tried to add the MultiplaneLayout argument but this didn't change anything.
chunk.addPhotos(["./Mcaw/TCR00010.TIF"], Metashape.MultiplaneLayout)
I have tried a more long winded approach with:
chunk.addCamera()
chunk.cameras[0].open("./Mcaw/TCR00005.TIF")
But this also doesn't work, it just loads the first band of the file.
print(chunk.cameras[0].photo.image().cn)
1
I have other images from a Sony camera which are in .png format and this problem does not happen there. In the case of the Sony images I give the path to the .png file and the addPhotos() function loads the image as a 3-band image within a single camera.
Any idea how I can fix this?
Thanks,
Sven