Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

MedVis

Tools to visualise medical images.

Installation

To install, run

pip install medvis

Example

The following example will plot a PET/CT image with alpha blended PET signal ontop of a grayscale CT image. The outline of two masks are shown with a legend that specifies what the different colours represent.

import matplotlib.pyplot as plt
import medvis


ct_image = ...
pet_image = ...
binary_true_mask = ...
binary_pred_mask = ...

true_colour = "tomato"
pred_colour = "skyblue"

blended_pet_image = medvis.apply_cmap_with_blend(pet_image, 'magma')
true_mask_outline = medvis.create_outline(binary_true_mask, width=2, colour=true_colour)
pred_mask_outline = medvis.create_outline(binary_pred_mask, width=2, colour=pred_colour)

fig, ax = plt.subplots()
ax.imshow(ct_image, cmap='gray')
ax.imshow(blended_pet_image)
ax.imshow(true_mask_outline)
ax.imshow(pred_mask_outline)
medvis.create_legend([true_colour, pred_colour], ["True mask", "Predicted mask"], ax=ax)

plt.show()

Metadata

Release files for medvis 0.0.1

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

Source distribution (sdist)

Source distribution for medvis 0.0.1
File Size Uploaded Provenance
medvis-0.0.1.tar.gz 5.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for medvis 0.0.1
File Interpreter ABI Platform
medvis-0.0.1-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 13.6 kB

Release files / medvis-0.0.1.tar.gz

Download URL medvis-0.0.1.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
1eefa44ddcfa35a28cf9ca911727265336abf90f1df76c8eac9ecd93708b17c1
BLAKE2b-256 checksum
How to use checksums
e4329afb476a15964d16b5c8a162b76c7f4a53283b8909c9e090393cb3e5bb79
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.4

Release files / medvis-0.0.1-py2.py3-none-any.whl

Download URL medvis-0.0.1-py2.py3-none-any.whl
Size 8.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
ac9fbc701ee1a3672816a2fb4cca02e9073f6561718b1242ba997268545c5348
BLAKE2b-256 checksum
How to use checksums
2e58b68575522f4922bf9bdbe3fb8440b0637ea61b623b4f2d65ecc45f7c3699
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.4

Security for medvis 0.0.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.

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.

Release history Release notifications | RSS feed

This release
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