pmi-viewer
pmi-viewer is a simple medical image viewer for 2D and 3D NumPy arrays. It supports scrolling through images in
orthogonal directions and adjusting the display range, similar to other medical image viewers. The arrays are expected
to use LPS (radiological) orientation and row-major ordering.
In a notebook environment, the viewer is displayed in a new output cell (ipympl required). In other environments, it opens in a Qt window.
This viewer is used in the course Programming for Medical Imaging.
Installation
pip install pmi-viewer
Usage
import numpy as np
from pmi_viewer import view
image = np.random.rand(32, 128, 128)
image[:8, :24] = np.nan
view(image, orientation='sag', spacing=(0.7, 0.7, 2.4), title="Random values")
License
pmi-viewer is distributed under the terms of the MIT license.
Release files for pmi-viewer 1.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pmi_viewer-1.0.7.tar.gz | 6.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pmi_viewer-1.0.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.6 kB
Release files / pmi_viewer-1.0.7.tar.gz
| Download URL | pmi_viewer-1.0.7.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cc2035b76e2d40b508aa89c04135cf201bac461a63e542bf59bfe66ef5295217
|
|
BLAKE2b-256 checksum How to use checksums |
70ee183e7e644f11cd62bd7a135a6e94e5897aea5f7cfe8b5733b6f8dd8a066c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Hatch/1.18.0 {"ci":null,"cpu":"AMD64","implementation":{"name":"CPython","version":"3.14.5"},"installer":{"name":"hatch","version":"1.18.0"},"openssl_version":"OpenSSL 3.0.20 7 Apr 2026","python":"3.14.5","system":{"name":"Windows","release":"11"}} HTTPX2/2.12.0
|
Release files / pmi_viewer-1.0.7-py3-none-any.whl
| Download URL | pmi_viewer-1.0.7-py3-none-any.whl |
|---|---|
| Size | 7.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c2a2131b864a4881558c710e5fa0453b8771c223de4a68cae1421923abfd3366
|
|
BLAKE2b-256 checksum How to use checksums |
2adc096e627a8b11feafc5ee273c75950e6116120938e6eb371430566410c367
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Hatch/1.18.0 {"ci":null,"cpu":"AMD64","implementation":{"name":"CPython","version":"3.14.5"},"installer":{"name":"hatch","version":"1.18.0"},"openssl_version":"OpenSSL 3.0.20 7 Apr 2026","python":"3.14.5","system":{"name":"Windows","release":"11"}} HTTPX2/2.12.0
|