A generalized scientific image processing module from the Allen Institute for Cell Science.
Project description
AICS Image library
The oldaicsimageio package is designed to provide an easy interface with CZI, OME-TIFF, and PNG file formats.
Level of Support
We are not currently supporting this code for external use, but simply releasing it to the community AS IS. It is used for within our organization. We are not able to provide any guarantees of support. The community is welcome to submit issues, but you should not expect an active response.
Development
See BUILD.md for information operations related to developing the code.
Usage
from oldaicsimageio import AICSImage
img = AICSImage("my_ome.tiff_or_tiff_or_czi")
# Get the image data as TCZYX
img.data
# Get channel information if you have an OME tiff
pixels = img.metadata.image().Pixels
channels = [pixels.Channel(i) for i in range(pixels.get_channel_count())]
channels = [{"name": c.get_Name(), "index": c.get_ID()} for c in channels]
# Note on channel id differences between oldaicsimageio.OMEXML and lxml.etree._Element:
# Under lxml.etree._Element, Channel Id looks like the following: `'Channel:0'`
# Where the single integer corresponds to the channel dimension index in image data.
# Under oldaicsimageio, the same Channel Id looks like the following: `'Channel:0:0'`
# Where it is the second of the two integers that corresponds to the channel dimension index in image data.
# Regardless of structure, these can both be parsed as integers with the following:
# `int(channel_id.split(":")[-1])`
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
Built Distribution
File details
Details for the file oldaicsimageio-0.6.6.tar.gz
.
File metadata
- Download URL: oldaicsimageio-0.6.6.tar.gz
- Upload date:
- Size: 38.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | be6727931f790d8c7d5cd055cf1e5713d134bf8b6c8da19d4beb7940ac28699b |
|
MD5 | 5b73f49a1e441c0d7f840e01a5252919 |
|
BLAKE2b-256 | 101db34d7e5b212aaacfe658dd74258fa04e4a6f481909f3c53b219032ba511d |
File details
Details for the file oldaicsimageio-0.6.6-py2.py3-none-any.whl
.
File metadata
- Download URL: oldaicsimageio-0.6.6-py2.py3-none-any.whl
- Upload date:
- Size: 44.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17d2c7e1b0f8d4e8c496ff35f88a262d44b99fa4b4dcfa402ce0169f430fa031 |
|
MD5 | 4d43a934d7ba644e2d9cb5d2adab7881 |
|
BLAKE2b-256 | 37b1cdb6da49f17f230d128af8ca82aa2c36ec3b17f840ddb6e0efd62e87a7b8 |