explore-lif-0.1.1
توضیحات
A Python module for loading lif file as numpy array
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | explore-lif-0.1.1 |
| نام | explore-lif |
| نسخه کتابخانه | 0.1.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Yushi Yang |
| ایمیل نویسنده | yangyushi1992@icloud.com |
| آدرس صفحه اصلی | https://github.com/yangyushi/explore_lif |
| آدرس اینترنتی | https://pypi.org/project/explore-lif/ |
| مجوز | - |
# 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
### For 3D Image
```python
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 (x, y, z)
image = chosen.getXYZ(T=0, channel=0)
```
### For 2D Image with Multiple Channels
```python
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
# the shape is (x, y, channel_number)
image = chosen.getXYC(T=0)
```
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=2.5 | Python |
نحوه نصب
نصب پکیج whl explore-lif-0.1.1:
pip install explore-lif-0.1.1.whl
نصب پکیج tar.gz explore-lif-0.1.1:
pip install explore-lif-0.1.1.tar.gz