Quantitative Imaging in 3D
The qim3d (kɪm θriː diː) library is designed to make it easier to work with 3D imaging data in Python. It offers a range of features, including data loading and manipulation, image processing and filtering, visualization of 3D data, and analysis of imaging results.
You can easily load and process 3D image data from various file formats, apply filters and transformations to the data, visualize the results using interactive plots and 3D rendering, and perform quantitative analysis on the images.
Documentation available at https://docs.qim.dk/qim3d/
For more information on the QIM center visit https://qim.dk/
Installation
qim3d is distributed via pypi and can be installed easily with several methods.
Choose one of the methods below:
# pip
pip install qim3d
# conda
conda create -n myqim3d python=3.14
conda activate myqim3d
pip install qim3d
# uv
uv add qim3d
# pixi
pixi add --pypi qim3d
Note that some features require you to install extra dependencies — you can use qim3d[all] to install all features. For more detailed instructions and troubleshooting, please refer to the documentation.
qim3d follows the SPEC-0 recommendation for supported Python versions, currently: Python 3.12 – 3.14.
Examples
Interactive volume slicer
import qim3d
vol = qim3d.examples.bone_128x128x128
qim3d.viz.slicer(vol)
Line profile
import qim3d
vol = qim3d.examples.bone_128x128x128
qim3d.viz.line_profile(vol)
Threshold exploration
import qim3d
# Load a sample volume
vol = qim3d.examples.bone_128x128x128
# Visualize interactive thresholding
qim3d.viz.threshold(vol)
Synthetic data generation
import qim3d
# Generate synthetic collection of volumes
num_volumes = 15
volume_collection, labels = qim3d.generate.volume_collection(num_volumes=num_volumes)
# Visualize the collection
qim3d.viz.volumetric(volume_collection)
Structure tensor analysis
import qim3d
vol = qim3d.examples.fibers_150x150x150
val, vec = qim3d.processing.structure_tensor(vol, visualize=True, axis=1)
Contributing
Please see the Contributor Guide.
Support
The development of the qim3d is supported by the Infrastructure for Quantitative AI-based Tomography QUAITOM which is supported by a Novo Nordisk Foundation Data Science Programme grant (Grant number NNF21OC0069766).
Metadata
Release files for qim3d 1.6.1
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 |
|---|---|---|---|---|
| qim3d-1.6.1.tar.gz | 12.3 MB | With provenance | Details for qim3d-1.6.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| qim3d-1.6.1-py3-none-any.whl | Python 3 | none | any | Details for qim3d-1.6.1-py3-none-any.whl |
Total release size: 24.8 MB
Release files / qim3d-1.6.1.tar.gz
| Download URL | qim3d-1.6.1.tar.gz |
|---|---|
| Size | 12.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9e531d02a907ec38102229c0c6b83bfbc5a45323a19aab6de0bcce2097b5fbe5
|
|
BLAKE2b-256 checksum How to use checksums |
ea4348ac09b871e374281b6c26e8a7c601841a593ace1aceb74caad358fe550f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
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 28, 2026.
Transparency logRelease files / qim3d-1.6.1-py3-none-any.whl
| Download URL | qim3d-1.6.1-py3-none-any.whl |
|---|---|
| Size | 12.4 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8c8d645e2f8c8d5a07ce4d461619d871950f3bc0a642354c3b342508ca31a8d2
|
|
BLAKE2b-256 checksum How to use checksums |
a2525a52c80a2de010f5a6c3296344141182c58b94e72a79d89274411c4a8f45
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
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 28, 2026.
Transparency logSecurity for qim3d 1.6.1
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 qim3d-1.6.1.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 28, 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.