Skip to main content

MedicalImageAnalysis

MedicalImageAnalysis is a Python toolkit for reading medical imaging datasets, organizing them into reusable in-memory objects, and building workflows around ROIs, meshes, rigid transforms, and deformable registrations.

Documentation

Documentation

Why use MedicalImageAnalysis?

  • Reader-first workflows for loading DICOM, MetaImage, and mesh data
  • Shared Data registry for images, dose, ROIs, POIs, rigid transforms, and deformables
  • Structure-first design so image-centric workflows live on Image, Roi, Rigid, and Deformable
  • Direct utility access for users who want lower-level control over conversions, meshing, and registration

Installation

README.md

pip install medicalimageanalysis

Or install from source:

git clone https://github.com/caleb-oconnor/MedicalImageAnalysis.git
cd MedicalImageAnalysis
pip install -e .

Quick start

import medicalimageanalysis as mia

mia.read_dicoms(folder_path="C:/Data/Patient01")

print(mia.Data.image_list())
print(mia.Data.roi_list())

image = mia.Data.image[mia.Data.image_list()[0]]
print(image.array.shape)

Common workflows

Read a DICOM study

import medicalimageanalysis as mia

files = mia.file_parser(folder_path="C:/Data/Patient01")
mia.read_dicoms(file_list=files["Dicom"])

Build a mesh from an ROI

import medicalimageanalysis as mia

image = mia.Data.image["CT 01"]
roi = image.roi["Liver"]
roi.create_mesh(reduction=0.5)

print(roi.mesh.n_points)

Run a rigid registration

import medicalimageanalysis as mia

rigid = mia.Rigid(reference_name="CT 01", moving_name="MR 01")
rigid.compute_registration(
    method="icp_point",
    reference_rois=["Liver"],
    moving_rois=["Liver"],
)

Run a deformable registration

import medicalimageanalysis as mia
a
deformable = mia.Deformable()
deformable.compute_registration(
    method="itk_fast_demons",
    reference_name="CT 01",
    moving_name="MR 01",
    reference_rois=["Liver"],
    moving_rois=["Liver"],
)

Project structure

  • medicalimageanalysis.reader — high-level loading entry points
  • medicalimageanalysis.read — format-specific reader classes
  • medicalimageanalysis.structure — image, ROI, dose, rigid, and deformable objects
  • medicalimageanalysis.utils — lower-level conversion, meshing, and registration utilities
  • docs/ — Sphinx documentation source

Documentation publishing note

The repository keeps the documentation source under docs/. The hosted documentation site is generated from those files and published at:

https://caleb-oconnor.github.io/MedicalImageAnalysis/

License

Licensed under the BSD 3-Clause License.

See LICENSE.txt for details.

Metadata

Release files for medicalimageanalysis 3.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 medicalimageanalysis 3.0.2
File Size Uploaded Provenance Actions
medicalimageanalysis-3.0.2.tar.gz 249.2 kB Without provenance Details for medicalimageanalysis-3.0.2.tar.gz

Built distribution (wheel)

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

Total release size: 522.0 kB

Release files / medicalimageanalysis-3.0.2.tar.gz

Download URL medicalimageanalysis-3.0.2.tar.gz
Size 249.2 kB
Tags Source
SHA-256 checksum
How to use checksums
6f55cc18750e627a029777f90db508a805a6c7480f7f692fb9278e30a24c3c07
BLAKE2b-256 checksum
How to use checksums
9122eae971498eb066b52671439f1fe6ecde276ac9c94d0355c32751fb54e284
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.0

Release files / medicalimageanalysis-3.0.2-py3-none-any.whl

Download URL medicalimageanalysis-3.0.2-py3-none-any.whl
Size 272.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7a188ebb2eeed18f57a49bb7e4d03cfd9f1d5fdc2f3955ccded902588cb75926
BLAKE2b-256 checksum
How to use checksums
21e85f0023c3ffd52a7267a694acfa5037d7f568ef3db052d170df3752c07bed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.0

Security for medicalimageanalysis 3.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

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