Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Data extraction of some samples in n-bit files #202

Open
constantinius opened this issue Feb 26, 2021 · 2 comments
Open

Data extraction of some samples in n-bit files #202

constantinius opened this issue Feb 26, 2021 · 2 comments

Comments

@constantinius
Copy link
Member

When reading not multiple of 8 bit unsigned data in pixel interleaved images, some samples are read wrongly.

Bildschirmfoto 2021-02-26 um 12 15 46

@ashley-mort
Copy link

ashley-mort commented Dec 16, 2022

I'm seeing something similar. readRasters on an 11-bit TIF sometimes gives me values above the top pixel value of 2047. ~1% of my pixels will be from 2048-2121.
Any tips on where to look to try to address this?

Note: When it happens, it's only on the reduced resolution (internal) overviews. When I zoom in to full resolution, the problem is not there.
Image was created by GDAL 3.4.3 gdal_translate -of COG -co COMPRESS=DEFLATE -co NUM_THREADS=ALL_CPUS -co BIGTIFF=YES

geotiff.js 1.0.0-beta.14

@ashley-mort
Copy link

Adding this to my gdal_translate fixed my issue. Sorry for the false alarm.
-co OVERVIEW_RESAMPLING=AVERAGE

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants