Skip to content
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

Pyplot ability to read 16 bit image (tiff) #4888

Closed
paulvija opened this issue Aug 8, 2015 · 2 comments
Closed

Pyplot ability to read 16 bit image (tiff) #4888

paulvija opened this issue Aug 8, 2015 · 2 comments

Comments

@paulvija
Copy link

paulvija commented Aug 8, 2015

Hi there,

I have tried plotting a 16bit RGB tiff image and all what I got was a pixelated output however works fine with 8bit image.
If there is an alternative or workaround PLEASE forward me to it?
Code:
plt.imshow(tasman.transpose((1, 2, 0)) # for correct order array order, see image attached for error plot.

PS: If raw image is required please let me know.
Thanks,
Vijay Paul

16bit_pyplot_image

@tacaswell
Copy link
Member

We delegate tiff reading to PIL / pillow so if the reading from disk is the problem, try tifffile or libtiff.

Internally, we only have 8bit RGBA buffers so as a quick work around you can down-scaling to 8bit (skimage has tools for changing the gamut).

@paulvija
Copy link
Author

paulvija commented Aug 8, 2015

Thanks for the pointers tacaswell.

@paulvija paulvija closed this as completed Aug 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants