Skip to main content

Quantitative Imaging in 3D

qim3d logo

PyPI version Downloads

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)

viz slicer

Line profile

import qim3d

vol = qim3d.examples.bone_128x128x128
qim3d.viz.line_profile(vol)

line profile

Threshold exploration

import qim3d

# Load a sample volume
vol = qim3d.examples.bone_128x128x128

# Visualize interactive thresholding
qim3d.viz.threshold(vol)

threshold exploration

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)

synthetic collection

Structure tensor analysis

import qim3d

vol = qim3d.examples.fibers_150x150x150
val, vec = qim3d.processing.structure_tensor(vol, visualize=True, axis=1)

structure tensor

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).

NNF

Metadata

Release files for qim3d 1.6.2

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

Source distribution (sdist)

Source distribution for qim3d 1.6.2
File Size Uploaded Provenance Actions
qim3d-1.6.2.tar.gz 12.3 MB With provenance Details for qim3d-1.6.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for qim3d 1.6.2
File Interpreter ABI Platform Actions
qim3d-1.6.2-py3-none-any.whl Python 3 none any Details for qim3d-1.6.2-py3-none-any.whl

Total release size: 24.8 MB

Release files / qim3d-1.6.2.tar.gz

Download URL qim3d-1.6.2.tar.gz
Size 12.3 MB
Tags Source
SHA-256 checksum
How to use checksums
44ab23c4ae8593a7ff3646f2dfeede219de1715b286868683560825992f9a969
BLAKE2b-256 checksum
How to use checksums
c55c1b710bf8ab98b48715acbc1959f2d4c7bfae65a6f29bf4998fdc6dc2a5c4
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 Nov 24, 2026.

Transparency log

Release files / qim3d-1.6.2-py3-none-any.whl

Download URL qim3d-1.6.2-py3-none-any.whl
Size 12.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
536eb2da1bb5225973357083857a7ebec088130c3652aee7cc6f203d20866816
BLAKE2b-256 checksum
How to use checksums
b559c16ef47188668c8a2cab49767b57c4f03572a4a034c9d83b4051acd2e3d9
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 Nov 24, 2026.

Transparency log

Security for qim3d 1.6.2

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.

Select from 2 files

Attestation for qim3d-1.6.2.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 Nov 24, 2026.

Transparency log

A 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.

Release history Release notifications | RSS feed

This release

1.6.2 This release

2 release files Full provenance

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