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()

To Do

<IMG SRC=”/images/example-pyqtgraph.png” width=800>

Tags: python

©2019. Robert Cudmore.