Robert Cudmore    archive    tags    search    software


pyqtGraph to display a .tif stack

This will display a 3D .tif stack where slices can be viewed and contrast set.

Install libraries

pip install pyqtgraph
pip install tifffile

Python code

import pyqtgraph as pg
import tifffile
tif = tifffile.TiffFile('Desktop/zyF4107_d1_s0_ch1.tif')
images = tif.asarray()
pg.image(images)

To Do

Tags: python

©2020. Robert Cudmore.