dcimg
This module provides the DCIMGFile class for accessing Hamamatsu DCIMG
files.
Installation
pip install dcimg
Documentation
The DCIMGFile class provides an interface for reading 3D Hamamatsu DCIMG
files.
Usage is pretty straightforward. First of all, create a DCIMGFile object:
>>> my_file = DCIMGFile('input_file.dcimg')
>>> my_file
<DCIMGFile shape=2450x2048x2048 dtype=<class 'numpy.uint16'> file_name=input_file.dcimg>
Image data can then be accessed using NumPy's basic indexing:
>>> my_file[-10, :5, :5]
array([[101, 104, 100, 99, 89],
[103, 102, 103, 99, 102],
[101, 104, 99, 108, 98],
[102, 111, 99, 111, 95],
[103, 98, 99, 104, 106]], dtype=uint16)
Other convenience methods for accessing image data are: zslice, zslice_idx,
frame and whole.
DCIMGFile supports context managers:
with DCIMGFile('input_file.dcimg') as f:
a = f[800, ...]
To access the whole file as a Dask Array, use as_dask_array():
my_file = DCIMGFile('input_file.dcimg')
da = my_file.as_dask_array()
For further details refer to: https://lens-biophotonics.github.io/dcimg/
Metadata
Release files for dcimg 0.7.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dcimg-0.7.0.tar.gz | 10.6 kB | With provenance | Details for dcimg-0.7.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dcimg-0.7.0-py3-none-any.whl | Python 3 | none | any | Details for dcimg-0.7.0-py3-none-any.whl |
Total release size: 19.1 kB
Release files / dcimg-0.7.0.tar.gz
| Download URL | dcimg-0.7.0.tar.gz |
|---|---|
| Size | 10.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
49419cf0dcb05eccd6a80adaf5eaa83d7220c56907e8c2b7882dcea30d4ccb6e
|
|
BLAKE2b-256 checksum How to use checksums |
145999d19d869a3c290f387d7c6bd0ee7b2580439f07260d835dbd5fa372563d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.
Transparency logRelease files / dcimg-0.7.0-py3-none-any.whl
| Download URL | dcimg-0.7.0-py3-none-any.whl |
|---|---|
| Size | 8.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dd730c59ea481512626980795ffd0ad1b20ba3f9fd90474aa1b182e66aebbca5
|
|
BLAKE2b-256 checksum How to use checksums |
bec8b521e7d78fae7871ae6410ce21ad878496f75f0d63beb8fadbec70a52646
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.
Transparency logSecurity for dcimg 0.7.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for dcimg-0.7.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.