A python wrapper around the libCZI C++ library with reading and writing functionality.
Project description
pylibCZIrw - Python wrapper for libCZI
This project provides a simple and easy-to-use Python wrapper for libCZI - a cross-platform C++ library intended for providing read and write access to CZI image documents.
Important Remarks
- At the moment, pylibCZIrw completely abstracts away the subblock concept, both in the reading and in the writing APIs.
- The core concept of pylibCZIrw is focussing on reading and writing 2D image planes by specifying the dimension indices and its location in order to only read or write what is really needed.
- It allows reading data via http/https-protocol enabling cloud storage scenarios.
Example Usage
from pylibCZIrw import czi as pyczi
filepath = "myimagefile.czi"
# open the CZI document to read the
with pyczi.open_czi(filepath) as czidoc:
# get the image dimensions as a dictionary, where the key identifies the dimension
total_bounding_box = czidoc.total_bounding_box
# get the total bounding box for all scenes
total_bounding_rectangle = czidoc.total_bounding_rectangle
# get the bounding boxes for each individual scene
scenes_bounding_rectangle = czidoc.scenes_bounding_rectangle
# read a 2D image plane and optionally specify planes, zoom levels and ROIs
image2d = czidoc.read(plane={"T": 1, "Z": 2, "C": 0}, zoom=1.0, roi=(0, 0, 50, 100))
The detailed usage can be inferred from this sample notebook:
For more detailed information refer to the pylibCZIrw-documentation.html shipped with the source distribution of this package (see the Download files section).
Installation
In case there is no wheel available for your system configuration, you can:
- try to install from the provided source distribution
For Windows: - reach out to the maintainers of this project to add more wheels
Disclaimer
The library and the notebook are free to use for everybody. Carl Zeiss Microscopy GmbH undertakes no warranty concerning the use of those tools. Use them at your own risk.
By using any of those examples you agree to this disclaimer.
Version: 2023.11.20
Copyright (c) 2023 Carl Zeiss AG, Germany. All Rights Reserved.
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 Distributions
Hashes for pylibCZIrw-4.1.0-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf40042b3f8d1508e52509eb96871b65822279f52d79b8c7dbcbcc760cedb452 |
|
MD5 | d191932075e965a9fb291964e3ee87a0 |
|
BLAKE2b-256 | 9bb5889a8232a650eee912e7edf9b691e146e615eb8972ea3feefb3bb21efe2c |
Hashes for pylibCZIrw-4.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14be4b6d302bef8d27cc986606b47428311aaac57c981079466971e9fafdecf8 |
|
MD5 | c136ee245638e45d0ad270294e46ff9f |
|
BLAKE2b-256 | 18c0fac4e526313882a06817b7487eb844fceb8c5f391f3fac1d811cf43596d0 |
Hashes for pylibCZIrw-4.1.0-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bec6b3b162b62caac08848def5fcbccf23a19c97bc3827b727723ec4afe18927 |
|
MD5 | 792f542934695bc5cbbd7d7f5631be0e |
|
BLAKE2b-256 | 9a950d5014a81324ffd552a935e0b5d065cdc983597ee6f31b4120a6ac621a9e |
Hashes for pylibCZIrw-4.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8d3724855b86db1d8024245468ce88638962836b0fdcfd953eb667a156bdfe1 |
|
MD5 | c77cc086039578c0af6fb41985097e4a |
|
BLAKE2b-256 | a69bd8800778579e8b91de5e4b9159d325afde11328d2665cfec93449abc0e83 |
Hashes for pylibCZIrw-4.1.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a32313fbcb18ad1b9fc3b7d9155ea57543fddb2576f9d26315d99b89ef7f71c |
|
MD5 | 85edc595e1633a8011a450e84b2ec600 |
|
BLAKE2b-256 | a38a5bdef85ee5e152e72c78d69aa6771477a5e4223b376cc6e5f2aff69f6d43 |
Hashes for pylibCZIrw-4.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4eb47de324726494cc267dacda13ef95b1249f06af72f64bef07beba8045309f |
|
MD5 | b81805138ab4e2fa2f37c39cc10f84e0 |
|
BLAKE2b-256 | 0dd0f45e36c52dd57e1abc3b518fea2bd81f1adbad1150191ffaa9155deab462 |
Hashes for pylibCZIrw-4.1.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc9002928a015eb73e0775324a4ec14359d96fa613c0ad9fbc1a01ce9a41ae9b |
|
MD5 | 0ce41b7b898e7c2b1e536579519f6db2 |
|
BLAKE2b-256 | 72d9b12e159ea91bd2cf2a140d9c5ef149ebc4a231458d65f425ca85edf1a3a2 |
Hashes for pylibCZIrw-4.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a2cf4264a8616d9e510e5e38d12535ca21cbff5ce1c0ec7932ed4965d11207e |
|
MD5 | 7ff8c47c7056bdc11161c5c4c0bcb49a |
|
BLAKE2b-256 | c7ebb7220abd508ec397e33c9c851c136553142d04a15e9e4f3f1fcec0960bb0 |
Hashes for pylibCZIrw-4.1.0-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 573c89845e577f4298e3cdca3dd9848fe2c249eb8b675800034a0183cf405e74 |
|
MD5 | c7c9884dd34397871d8ba41362a25c0e |
|
BLAKE2b-256 | 25a567f3d76a0d3a86e1145b8dc83b04f0aeaa099a766a9fdee3dfc5864edb3b |
Hashes for pylibCZIrw-4.1.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0e574f5a2b4974f22d5d48a64f0f2b88f9c5cbea5eac6b2e93a05e0d71402aa |
|
MD5 | deac2223943e98e4b5fd191caf6c4138 |
|
BLAKE2b-256 | 4f10e7afb0bdaf5b38b958781062440d5371b72bf977b16dd1c142b7bd84c014 |