Forum

grayscale interpreted as alpha channel?

Started by monviso, November 30, 2023, 03:11:07 PM

Previous topic - Next topic

monviso

Hi everyone.

I have raster formed by 4 layers: 3 RGB channels in the typical 0-255 colour range and a channel between 0-1 that is actually a grayscale raster of the scene. For processing purposes would be much more better not to transform the grayscale and leave it between 0 and 1.

When I import the images to metashapa I can only see the 3 RGB channels, so I believe the grayscale layer is being interpreted as an alpha channel and thus removed from the raasters. Is there a way to allow that layer not to be read as alpha?

Many Thanks


Alexey Pasumansky

Hello monviso,

Can you share any original image from your set with the problematic grayscale channel?

I think that that channel could be marked as "extra", which is considered to be a transparency data in Metashape.
Best regards,
Alexey Pasumansky,
Agisoft LLC

monviso

Thanks Alex,

yes a sample file is here https://1drv.ms/f/s!Apsp_j88TMkNgekup6pt_t7japzVxQ?e=gEH4ID. In this image I have already tried to modify the grayscale channel by multiplying the 0-1 space by 10 (so the new range of the 4th layer is 0-10) to see if Metashape would have recognise it as non-alpha. But still what it import the frames as a  3 layer raster.

Thanks

monviso

Hi,
just wondering if there is any update on this.

Many thanks