Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mrilite-0.1.1.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mrilite-0.1.1-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file mrilite-0.1.1.tar.gz.

File metadata

  • Download URL: mrilite-0.1.1.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

Hashes for mrilite-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b35c24af12f3c69fc659b97910759d4e20460e4375e404b78ca66fd0c7428f9b
MD5 fa499d324a8116379a63494a3a77a742
BLAKE2b-256 5f106360737acf2e2e22c176169b9e5f2f04e52231dad821402b1ca4c86b60b9

See more details on using hashes here.

File details

Details for the file mrilite-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: mrilite-0.1.1-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

Hashes for mrilite-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6cffd354327f6ba7a9534ccdf74a9e52688f558a85cbfd9f0d1277635ceb1971
MD5 fe8be29ee730b8009d9a2f6855447a01
BLAKE2b-256 793e22c623dd77ced486b994098944983eeb2848ff70d2f011fdbe78050195d0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page