Skip to main content

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, ...]

For further details refer to: https://lens-biophotonics.github.io/dcimg/

Release files for dcimg 0.6.0.post1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dcimg 0.6.0.post1
File Size Uploaded
dcimg-0.6.0.post1.tar.gz 7.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dcimg 0.6.0.post1
File Interpreter ABI Platform
dcimg-0.6.0.post1-py3-none-any.whl Python 3 none any Details

Total release size: 16.2 kB

Release files / dcimg-0.6.0.post1.tar.gz

Download URL dcimg-0.6.0.post1.tar.gz
Size 7.9 kB
Tags Source
SHA-256 checksum
How to use checksums
10274111137e0473e4dab6f723a21a33164f50a0a8ac0129ba8229ff98daa2d9
BLAKE2b-256 checksum
How to use checksums
fc77be95224f25c8187764dc70520c2f6ad1b8650d4f5ea80aaa16d43e8763db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6

Release files / dcimg-0.6.0.post1-py3-none-any.whl

Download URL dcimg-0.6.0.post1-py3-none-any.whl
Size 8.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
835fd033901df8c2c03cc1bc44c88c6fe08697c7d730c048094f68f9a104f498
BLAKE2b-256 checksum
How to use checksums
b4e5a1ac11815ec15800a1a44e3387d2212a47a0b42901cca6524a08511a1610
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6

Release history Release notifications | RSS feed

This release

0.6.0.post1 This release

2 release files

0.6.0

2 release files

0.5.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page