将lif文件作为numpy数组加载的Python模块
explore-lif的Python项目详细描述
探索
从lif
文件加载3D共焦图像作为numpy
数组。在
安装
- 最方便的方法是:
pip install -e .
从您克隆或下载代码的目录中。在 - 您还可以在项目目录中包含文件
explore_lif
如何使用它
fromexplore_lifimportReaderreader=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>;=3.1)按Z-Y-X
的顺序返回数据。(ce240f6)
这与以前的版本不同,在以前的版本中,数据返回为X-Y-Z
- 项目
标签: