I am wondering how to exactly replicate ‘visual’ property (which is 8-bits rgb image) in sentinel images from [b2, b3, b4] bands (which are 16-bits).
I’ve tried different ways to normalize like (x /65_535 )* 255, (x / 10_000)* 255 but failed to exactly match the values in ‘visual’ property.
The above methods of normalizing or giving way too bright or way too dark images.
The visual asset in the Planetary Computer links to the TCI_10m file output by sen2cor, converted to COG (note that the COG conversion causes the issue described at What is the valid range for the TCI product?). But the actual values come straight out of sen2cor, so we’re using whatever algorithm it uses.