-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
16Bit can not display #12
Comments
Hi @qtsun, thanks for reporting the issue! |
16bit images url |
Unfortunately I cannot load your files as they don't support HTTPS. Maybe you can put them somewhere where HTTPS is enabled? Also, when I open them via GDAL I get the following error:
This might be a hint why nothing is visible |
@qtsun You have to change the the getMaxValue function inside of webglrender.js and max value in toMathArray function inside of renderutils.js. The max value present by default is 65535. For 16 bit files with low dynamic range, scaling with 65535 will cause the image to appear black. Just change the max value in these two files to the approximate max value of the tiff files you are working with; and build the package with "npm run build". |
Regarding HTTPS I'm not so sure:
Yes, the default stretch used is to Uint16 max for Uint16 images. I have not yet implemented linear scaling, but it should be fairly easy to do. |
Hi! I have a different issue with 16-bit images: This is after updating the renderer to return 4095 (a reasonable value for my TIFF) as the max value. Sample file: https://nas.dend.ro/browse/public/cog.tif. Scaling the image to 8-bit makes it show fine: |
Hi @lnicola Thanks for the update. Unfortunately I cannot bring the image you provided to load. Could you maybe set CORS headers for it? |
@constantinius sorry for the CORS issue, but it's not easy for me to set up the headers correctly (to handle |
I found that cog-explorer can not display 16bit images ,it displayed black image
The text was updated successfully, but these errors were encountered: