# The 16bit tiff image always shows white regardless of the pixel value.

**URL:** https://discourse.vtk.org/t/the-16bit-tiff-image-always-shows-white-regardless-of-the-pixel-value/4907
**Category:** Support
**Created:** [December 28, 2020, 7:48am UTC](https://discourse.vtk.org/t/the-16bit-tiff-image-always-shows-white-regardless-of-the-pixel-value/4907 "2020-12-28T07:48:26Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Kim\_William](https://discourse.vtk.org/user_avatar/discourse.vtk.org/kim_william/32/373_2.png) [@Kim\_William](https://discourse.vtk.org/u/Kim_William)
#### Post date: [December 28, 2020, 7:48am UTC](https://discourse.vtk.org/t/the-16bit-tiff-image-always-shows-white-regardless-of-the-pixel-value/4907/1 "2020-12-28T07:48:27Z")

</div>

Hi all.

I have a question about the 16bit tiff image.  
[sample.tif](https://discourse.vtk.org/uploads/short-url/gw9RV2mdm8jT9OzMPmnVu6DqTrJ.tif) (144.7 KB)

If I load it on the ImageJ, the image shows from black to white value depends on the pixel value.

 ![imageJ](https://discourse.vtk.org/uploads/default/original/2X/6/64f3d16b40e05d79f80389695274044ed8b26f7d.png)

But if I load it on the VTK sample code, the image shows white regardless of the pixel value.

 ![sample code](https://discourse.vtk.org/uploads/default/original/2X/5/51cde6c6205c4add766043278d76b72cf7dcf4d1.png)

Sample code: [https://lorensen.github.io/VTKExamples/site/Cxx/IO/ReadTIFF/](https://lorensen.github.io/VTKExamples/site/Cxx/IO/ReadTIFF/)

Did I miss something on the code?

Could you give me an advice?

Thank you 🙂

---

<div class="post-metadata">

### Author: ![Paulo\_Carvalho](https://discourse.vtk.org/user_avatar/discourse.vtk.org/paulo_carvalho/32/370_2.png) [@Paulo\_Carvalho](https://discourse.vtk.org/u/Paulo_Carvalho)
#### Post date: [December 29, 2020, 2:31pm UTC](https://discourse.vtk.org/t/the-16bit-tiff-image-always-shows-white-regardless-of-the-pixel-value/4907/2 "2020-12-29T14:31:43Z")

</div>

Hi, Kim,

Have you tried other TIFs? For example the ColorCells.tif of the example?

regards,

Paulo
