A lightweight toolkit for loading, preprocessing, visualizing, and analysing 3D MRI volumes.
Project description
mrilite
mrilite is a lightweight Python toolkit for handling 3D MRI volumes.
It provides simple and minimal utilities for:
- loading and saving NIfTI files
- basic preprocessing (z-score normalization)
- visualizing MRI slices
- overlaying segmentation masks
Designed to be small, dependency-light, and easy to reuse across many MRI projects.
Installation
Using pip:
pip install mrilite
Or install locally:
pip install -e .
Quick Start
from mrilite import load_nifti, zscore, show_slice_with_overlay
vol = load_nifti("t1.nii.gz")
seg = load_nifti("seg.nii.gz")
vol = zscore(vol)
show_slice_with_overlay(vol, seg, axis=2, index=80)
Features
- Minimal and clean API
- Works with any 3D/4D NIfTI MRI
- Transparent segmentation overlay
- Only essential dependencies (
numpy,nibabel,matplotlib)
License
MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mrilite-0.1.2.tar.gz.
File metadata
- Download URL: mrilite-0.1.2.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
69aaed5e88df3b319f5bc99ae0950564d2e57c103823d066660c3bda07782ed0
|
|
| MD5 |
68000f14bbffa64607a4a5916adcf260
|
|
| BLAKE2b-256 |
db8c6c274b1c7a8eb9faab5d9a714a9efcae50e390b1c3763a7f6a48c62f1048
|
File details
Details for the file mrilite-0.1.2-py3-none-any.whl.
File metadata
- Download URL: mrilite-0.1.2-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c913b3bb9cc37b3cafb81e21419d5ff80be1707dd51a407f0abced46c4b58964
|
|
| MD5 |
1b6da925a38af1dc601e6c52b5aaeaa4
|
|
| BLAKE2b-256 |
0031dde6cc88bccd3d87bcd7980fb26dfce0c675839e31ae3179e1752e0f1df8
|