Skip to main content

geometric-medical-phantoms

Python bindings for the GeometricMedicalPhantoms shared library — a Julia-based toolkit for generating synthetic MRI/CT phantoms.

Supported phantoms

  • Shepp-Logan — classic ellipsoid head phantom (CT and MRI variants)
  • Tubes — cylindrical quality-control phantom
  • Torso — anatomically-motivated torso with respiratory and cardiac motion

Requirements

  • Python ≥ 3.9
  • NumPy ≥ 1.20
  • The pre-built libgeomphantoms shared library (see Releases)

Installation

pip install geometric-medical-phantoms

Then download the pre-built library bundle for your platform from the GitHub Releases page and extract it.

Quick start

from geometric_medical_phantoms import GMPLib

lib = GMPLib("/path/to/build/lib/libgeomphantoms.so")  # .dylib / .dll on other platforms

# Shepp-Logan 3-D phantom
ti = lib.shepp_logan_ct_default()
phantom = lib.create_shepp_logan_phantom_3d(128, 128, 128, ti)
# phantom is a (128, 128, 128) float32 numpy array in Fortran (column-major) order

# Respiratory signal
phys = lib.respiratory_physiology_default()
t, sig = lib.generate_respiratory_signal(60.0, 50.0, 15.0, phys)

# Dynamic torso phantom (4-D cine)
torso = lib.create_torso_phantom_3d(64, 64, 64, resp_signal=sig[:50])
# torso.shape == (64, 64, 64, 50)

Documentation

Full API reference and usage guides are available at https://hakkelt.github.io/GeometricMedicalPhantoms.jl.

License

MIT — see LICENSE.

Metadata

Release files for geometric-medical-phantoms 1.0.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 geometric-medical-phantoms 1.0.2
File Size Uploaded Provenance Actions
geometric_medical_phantoms-1.0.2.tar.gz 10.6 kB With provenance Details for geometric_medical_phantoms-1.0.2.tar.gz

Release files / geometric_medical_phantoms-1.0.2.tar.gz

Download URL geometric_medical_phantoms-1.0.2.tar.gz
Size 10.6 kB
Tags Source
SHA-256 checksum
How to use checksums
290ce956b2c6251a9fdef6575a33db70b38b4e452afbd6fe15cb5130d9649d5d
BLAKE2b-256 checksum
How to use checksums
a4886b1d30b167789edb55ea33f088ff03c1ff64e65d7ebfc317aa0a1b0d451e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 May 17, 2026.

Transparency log

Security for geometric-medical-phantoms 1.0.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

1 file in this release has been uploaded with provenance metadata.

Attestation for geometric_medical_phantoms-1.0.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 May 17, 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.0.2 This release

1 release file 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