what is the best way to show these 12 bit TIFF (saved in 16 bit format) in greyscale?

Stefan van der Walt stefanv at berkeley.edu
Thu Jul 30 21:06:30 EDT 2015


On 2015-07-30 17:35:00, Alex <alex.liberzon at gmail.com> wrote:
> Could you please help me to use skimage and matplotlib correctly 
> to  visualise such  images: 
> https://app.box.com/s/lzpvj29omv5e7eny0hcyxakj032tu8vd

Try something like this:

from skimage import io, exposure
import matplotlib.pyplot as plt

image = io.imread('my_image.tif', plugin='tifffile')
image_eq = exposure.equalize_hist(image)

plt.imshow(image_eq, cmap='gist_heat')
plt.show()


Nice image :)

Stéfan



More information about the scikit-image mailing list