Skip to main content

Read and write image data from and to CZI files.

Project description

Read image and metadata from Carl Zeiss(r) ZISRAW (CZI) files.

CZI is the native image file format of the ZEN(r) software by Carl Zeiss
Microscopy GmbH. It stores multidimensional images and metadata from
microscopy experiments.

:Author:
`Christoph Gohlke <http://www.lfd.uci.edu/~gohlke/>`_

:Organization:
Laboratory for Fluorescence Dynamics, University of California, Irvine

:Version: 2017.09.12

Requirements
------------
+ `CPython 3.6 64-bit <http://www.python.org>`_
+ `Numpy 1.13 <http://www.numpy.org>`_
+ `Scipy 0.19 <http://www.scipy.org>`_
+ `Tifffile.py 2017.09.12 <http://www.lfd.uci.edu/~gohlke/>`_
+ `Czifle.pyx 2017.07.20 <http://www.lfd.uci.edu/~gohlke/>`_
(for decoding JpegXrFile and JpgFile images)
- Cython 0.25 <http://cython.org>
- jpeglib v9 <http://ijg.org>
- jxrlib 0.2.0 <https://github.com/glencoesoftware/jxrlib>
+ A python distuitls compatible C compiler

Revisions
---------
2017.09.12
Require tifffile.py 2017.09.12
2017.07.21
Use multi-threading in CziFile.asarray to decode and copy segment data.
Always convert BGR to RGB. Remove bgr2rgb options.
Decode JpegXR directly from byte arrays.
2017.07.13
Add function to convert CZI file to memory-mappable TIFF file.
2017.07.11
Add 'out' parameter to CziFile.asarray.
Remove memmap option from CziFile.asarray (backwards incompatible).
Change spline interpolation order to 0 (backwards incompatible).
Make axes return a string.
Require tifffile 2017.07.11.
2015.08.17
Require tifffile 2015.08.17.
2014.10.10
Read data into a memory mapped array (optional).
2013.12.04
Decode JpegXrFile and JpgFile via _czifle extension module.
Attempt to reconstruct tiled mosaic images.
2013.11.20
Initial release.

Notes
-----
The API is not stable yet and might change between revisions.

The file format design specification [1] is confidential and the licence
agreement does not permit to write data into CZI files.

Only a subset of the 2012 specification is implemented in the initial release.
Specifically, multifile images are not yet supported.

Tested on Windows with a few example files only.

References
----------
(1) ZISRAW (CZI) File Format Design specification Release Version 1.2.2.
CZI 07-2016/CZI-DOC ZEN 2.3/DS_ZISRAW-FileFormat.pdf (confidential).
Documentation can be requested at
<http://microscopy.zeiss.com/microscopy/en_us/downloads/zen.html>
(2) CZI The File Format for the Microscope | ZEISS International
<http://microscopy.zeiss.com/microscopy/en_us/products/microscope-software/
zen-2012/czi.html>

Examples
--------
>>> with CziFile('test.czi') as czi:
... image = czi.asarray()
>>> image.shape
(3, 3, 3, 250, 200, 3)
>>> image[0, 0, 0, 0, 0]
array([10, 10, 10], dtype=uint8)




Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

czifile-0.1.0.tar.gz (19.2 kB view details)

Uploaded Source

Built Distribution

czifile-0.1.0-cp36-cp36m-macosx_10_7_x86_64.whl (182.9 kB view details)

Uploaded CPython 3.6m macOS 10.7+ x86-64

File details

Details for the file czifile-0.1.0.tar.gz.

File metadata

  • Download URL: czifile-0.1.0.tar.gz
  • Upload date:
  • Size: 19.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for czifile-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f19e0d8fcc20f5a6dba53068e19fe57aa9802172e0fa543e4662b488e4a6a934
MD5 3411df737f0ec17c0403f37f8fb460bc
BLAKE2b-256 78fd507038f79cc03814f6d075d13781e5802c2d76112e0ef331749fcb1abd7d

See more details on using hashes here.

File details

Details for the file czifile-0.1.0-cp36-cp36m-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for czifile-0.1.0-cp36-cp36m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 38b7f677238b6498a611ed530e370cd84ed5867102ae21e3dad8b09250cc5b4b
MD5 752c5bae9e3d8e142160e3f06d1373bb
BLAKE2b-256 191a81d1401a374621dd8e9d81546b77778c6064351c5535209a4e57d43ef4da

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page