czifile


Nameczifile JSON
Version 2019.7.2 PyPI version JSON
download
home_pagehttps://www.lfd.uci.edu/~gohlke/
SummaryRead Carl Zeiss(r) Image (CZI) files
upload_time2019-07-03 08:44:04
maintainer
docs_urlNone
authorChristoph Gohlke
requires_python>=2.7
licenseBSD
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Read Carl Zeiss(r) Image (CZI) files
====================================

Czifile is a Python library to read Carl Zeiss Image (CZI) files, the native
file format of the ZEN(r) software by Carl Zeiss Microscopy GmbH. CZI files
contain multidimensional images and metadata from microscopy experiments.

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

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

:License: 3-clause BSD

:Version: 2019.7.2

Requirements
------------
* `CPython 2.7 or 3.5+ <https://www.python.org>`_
* `Numpy 1.14 <https://www.numpy.org>`_
* `Tifffile 2019.7.2 <https://pypi.org/project/tifffile/>`_
* `Imagecodecs 2019.5.22 <https://pypi.org/project/imagecodecs/>`_
  (optional; used for decoding LZW, JPEG, and JPEG XR)

Revisions
---------
2019.7.2
    Require tifffile 2019.7.2.
2019.6.18
    Add package main function to view CZI files.
    Fix BGR to RGB conversion.
    Fix czi2tif conversion on Python 2.
2019.5.22
    Fix czi2tif conversion when CZI metadata contain non-ASCII characters.
    Use imagecodecs_lite as a fallback for imagecodecs.
    Make CziFile.metadata a function (breaking).
    Make scipy an optional dependency; fallback on ndimage or fail on zoom().
2019.1.26
    Fix czi2tif console script.
    Update copyright year.
2018.10.18
    Rename zisraw package to czifile.
2018.8.29
    Move czifile.py and related modules into zisraw package.
    Move usage examples to main docstring.
    Require imagecodecs package for decoding JpegXrFile, JpgFile, and LZW.
2018.6.18
    Save CZI metadata to TIFF description in czi2tif.
    Fix AttributeError using max_workers=1.
    Make Segment.SID and DimensionEntryDV1.dimension str types.
    Return metadata as XML unicode string or dict, not etree.
    Return timestamps, focus positions, events, and luts as tuple or ndarray
2017.7.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.7.13
    Add function to convert CZI file to memory-mappable TIFF file.
2017.7.11
    Add 'out' parameter to CziFile.asarray.
    Remove memmap option from CziFile.asarray (breaking).
    Change spline interpolation order to 0 (breaking).
    Make axes return a string.
    Require tifffile 2017.7.11.
2014.10.10
    Read data into a memory mapped array (optional).
2013.12.4
    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.

Python 2.7 and 3.4 are deprecated.

"ZEISS" and "Carl Zeiss" are registered trademarks of Carl Zeiss AG.

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

Only a subset of the 2016 specification is implemented. Specifically,
multifile images, image pyramids, and topography images are not yet supported.

Tested on Windows with a few example files only.

Czifile relies on the `imagecodecs <https://pypi.org/project/imagecodecs/>`_
package for decoding LZW, JPEG, and JPEG XR compressed images. Alternatively,
the `imagecodecs_lite <https://pypi.org/project/imagecodecs_lite/>`_ package
can be used for decoding LZW compressed images.

Other libraries for reading CZI files (all GPL licensed):

* `libCZI <https://github.com/zeiss-microscopy/libCZI>`_
* `Python-bioformats <https://github.com/CellProfiler/python-bioformats>`_
* `Pylibczi <https://github.com/elhuhdron/pylibczi>`_

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
   `<https://www.zeiss.com/microscopy/us/products/microscope-software/zen/
   czi.html>`_

Examples
--------

Read image data from a CZI file as numpy array:

>>> image = imread('test.czi')
>>> image.shape
(3, 3, 3, 250, 200, 3)
>>> image[0, 0, 0, 0, 0]
array([10, 10, 10], dtype=uint8)



            

Raw data

            {
    "_id": null,
    "home_page": "https://www.lfd.uci.edu/~gohlke/",
    "name": "czifile",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=2.7",
    "maintainer_email": "",
    "keywords": "",
    "author": "Christoph Gohlke",
    "author_email": "cgohlke@uci.edu",
    "download_url": "https://files.pythonhosted.org/packages/b1/f9/2c507f4fe3474d541caba4c60eed3d46495c0973a5d5e5f8f5e82c7807d7/czifile-2019.7.2.tar.gz",
    "platform": "any",
    "description": "Read Carl Zeiss(r) Image (CZI) files\n====================================\n\nCzifile is a Python library to read Carl Zeiss Image (CZI) files, the native\nfile format of the ZEN(r) software by Carl Zeiss Microscopy GmbH. CZI files\ncontain multidimensional images and metadata from microscopy experiments.\n\n:Author:\n  `Christoph Gohlke <https://www.lfd.uci.edu/~gohlke/>`_\n\n:Organization:\n  Laboratory for Fluorescence Dynamics. University of California, Irvine\n\n:License: 3-clause BSD\n\n:Version: 2019.7.2\n\nRequirements\n------------\n* `CPython 2.7 or 3.5+ <https://www.python.org>`_\n* `Numpy 1.14 <https://www.numpy.org>`_\n* `Tifffile 2019.7.2 <https://pypi.org/project/tifffile/>`_\n* `Imagecodecs 2019.5.22 <https://pypi.org/project/imagecodecs/>`_\n  (optional; used for decoding LZW, JPEG, and JPEG XR)\n\nRevisions\n---------\n2019.7.2\n    Require tifffile 2019.7.2.\n2019.6.18\n    Add package main function to view CZI files.\n    Fix BGR to RGB conversion.\n    Fix czi2tif conversion on Python 2.\n2019.5.22\n    Fix czi2tif conversion when CZI metadata contain non-ASCII characters.\n    Use imagecodecs_lite as a fallback for imagecodecs.\n    Make CziFile.metadata a function (breaking).\n    Make scipy an optional dependency; fallback on ndimage or fail on zoom().\n2019.1.26\n    Fix czi2tif console script.\n    Update copyright year.\n2018.10.18\n    Rename zisraw package to czifile.\n2018.8.29\n    Move czifile.py and related modules into zisraw package.\n    Move usage examples to main docstring.\n    Require imagecodecs package for decoding JpegXrFile, JpgFile, and LZW.\n2018.6.18\n    Save CZI metadata to TIFF description in czi2tif.\n    Fix AttributeError using max_workers=1.\n    Make Segment.SID and DimensionEntryDV1.dimension str types.\n    Return metadata as XML unicode string or dict, not etree.\n    Return timestamps, focus positions, events, and luts as tuple or ndarray\n2017.7.21\n    Use multi-threading in CziFile.asarray to decode and copy segment data.\n    Always convert BGR to RGB. Remove bgr2rgb options.\n    Decode JpegXR directly from byte arrays.\n2017.7.13\n    Add function to convert CZI file to memory-mappable TIFF file.\n2017.7.11\n    Add 'out' parameter to CziFile.asarray.\n    Remove memmap option from CziFile.asarray (breaking).\n    Change spline interpolation order to 0 (breaking).\n    Make axes return a string.\n    Require tifffile 2017.7.11.\n2014.10.10\n    Read data into a memory mapped array (optional).\n2013.12.4\n    Decode JpegXrFile and JpgFile via _czifle extension module.\n    Attempt to reconstruct tiled mosaic images.\n2013.11.20\n    Initial release.\n\nNotes\n-----\nThe API is not stable yet and might change between revisions.\n\nPython 2.7 and 3.4 are deprecated.\n\n\"ZEISS\" and \"Carl Zeiss\" are registered trademarks of Carl Zeiss AG.\n\nThe ZISRAW file format design specification [1] is confidential and the\nlicense agreement does not permit to write data into CZI files.\n\nOnly a subset of the 2016 specification is implemented. Specifically,\nmultifile images, image pyramids, and topography images are not yet supported.\n\nTested on Windows with a few example files only.\n\nCzifile relies on the `imagecodecs <https://pypi.org/project/imagecodecs/>`_\npackage for decoding LZW, JPEG, and JPEG XR compressed images. Alternatively,\nthe `imagecodecs_lite <https://pypi.org/project/imagecodecs_lite/>`_ package\ncan be used for decoding LZW compressed images.\n\nOther libraries for reading CZI files (all GPL licensed):\n\n* `libCZI <https://github.com/zeiss-microscopy/libCZI>`_\n* `Python-bioformats <https://github.com/CellProfiler/python-bioformats>`_\n* `Pylibczi <https://github.com/elhuhdron/pylibczi>`_\n\nReferences\n----------\n1) ZISRAW (CZI) File Format Design Specification Release Version 1.2.2.\n   CZI 07-2016/CZI-DOC ZEN 2.3/DS_ZISRAW-FileFormat.pdf (confidential).\n   Documentation can be requested at\n   `<https://www.zeiss.com/microscopy/us/products/microscope-software/zen/\n   czi.html>`_\n\nExamples\n--------\n\nRead image data from a CZI file as numpy array:\n\n>>> image = imread('test.czi')\n>>> image.shape\n(3, 3, 3, 250, 200, 3)\n>>> image[0, 0, 0, 0, 0]\narray([10, 10, 10], dtype=uint8)\n\n\n",
    "bugtrack_url": null,
    "license": "BSD",
    "summary": "Read Carl Zeiss(r) Image (CZI) files",
    "version": "2019.7.2",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "37863d0b1829c8c24eb1a4214f098a02442209f80302766203db33c99a4681ec",
                "md5": "0a59701d093a8ebd91f254289cf8b12b",
                "sha256": "561ba0312e5b9c95db784768d7c81803f62bc323eab42bd5812586ce6dc58db8"
            },
            "downloads": -1,
            "filename": "czifile-2019.7.2-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "0a59701d093a8ebd91f254289cf8b12b",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": ">=2.7",
            "size": 18018,
            "upload_time": "2019-07-03T08:43:48",
            "upload_time_iso_8601": "2019-07-03T08:43:48.016410Z",
            "url": "https://files.pythonhosted.org/packages/37/86/3d0b1829c8c24eb1a4214f098a02442209f80302766203db33c99a4681ec/czifile-2019.7.2-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b1f92c507f4fe3474d541caba4c60eed3d46495c0973a5d5e5f8f5e82c7807d7",
                "md5": "54fd026fbb62598c5c64c2952b212458",
                "sha256": "04c0e6bed3b24d1bf42bc2cf899a5a08986641379305ce88600fd1c710486436"
            },
            "downloads": -1,
            "filename": "czifile-2019.7.2.tar.gz",
            "has_sig": false,
            "md5_digest": "54fd026fbb62598c5c64c2952b212458",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=2.7",
            "size": 17897,
            "upload_time": "2019-07-03T08:44:04",
            "upload_time_iso_8601": "2019-07-03T08:44:04.374089Z",
            "url": "https://files.pythonhosted.org/packages/b1/f9/2c507f4fe3474d541caba4c60eed3d46495c0973a5d5e5f8f5e82c7807d7/czifile-2019.7.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2019-07-03 08:44:04",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "czifile"
}
        
Elapsed time: 0.03337s