README.md 494 Bytes
Newer Older
Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
1 2
# Description
Class imagej_tiff to read multilayer tiff files and parse tags
Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
3 4
* layers are stacked along depth (think RGB)
* parse imagej generated tags (50838 and 50839)
Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
5

Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
6
# Examples
Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
7
```
Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
8
#!/usr/bin/env python3
Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
9 10 11 12 13 14 15
from PIL import Image
import xml.etree.ElementTree as ET
import numpy as np
import matplotlib.pyplot as plt
import imagej_tiff as ijt

tiff = ijt.imagej_tiff('test.tiff')
Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
16 17 18
print(tiff.nimages)
print(tiff.labels)
print(tiff.infos)
Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
19 20
tiff.show_images(['X-corr','Y-corr',0,2])
plt.show()
Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
21
```