A Python module for loading lif file as numpy array
Project description
explore_lif
Load 3D confocal images from lif
files as numpy
arrays.
Install
- The most convenient way would be:
pip install -e .
from the directory where you have cloned or downloaded the code. - You can also Include the file
explore_lif
in your project directory
How to Use It
from explore_lif import Reader
reader = Reader('lif_file.lif')
series = reader.getSeries()
chosen = series[0] # choose first image in the lif file
# get a numpy array corresponding to the 1st time point & 1st channel
# the shape is (z, y, x)
image = chosen.getFrame(T=0, channel=0)
Version Issue
The current code (version >= 3.1) returns the data in the order of Z-Y-X
. (ce240f6)
This is DIFFERENT from previous version, where the data is returned as X-Y-Z
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
explore_lif-0.1.0.tar.gz
(23.7 kB
view hashes)