Open MarcCoru opened 3 years ago
I think I figured out the issue. The intensities of the bands are indivudally rescaled and reduced to 8-bits.
However, to capture the full depth of the S2-Sensors, the images must be saved to uint16
.tif
s. I suspect the authors did not do this because rasterio
doesn't seem to work with uint16
and compression='JPEG'
. Changing the compression to 'None'
seems to fix the problem.
The bands can then be concatenated to form the RGB image, and can be plotted in a way that they look as intended (after histogram normalization of all 3 bands at once):
hi @MarcCoru , may i ask how did you sample these connected tiles? It seems the original code would randomly sample tiles around all the 1000 cities.
hi Pau @prlz77 and Oscar @oscmansan,
Thanks for your work. We were downloading the data with
seco_downloader.py
but noticed a certain 4 or 8-pixel block structure in the images. Looking over the source code, I can't find a concrete reason. Could it be connected to the getInfo line https://github.com/ElementAI/seasonal-contrast/blob/5395c027922569f5c5b1785ad1ccddd839749c36/datasets/seco_downloader.py#L175 where (maybe) only an approximated representation of the images is returned?