Skip to main content

A lightweight toolkit for loading, preprocessing, and visualizing 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.0.tar.gz (4.1 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.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mrilite-0.1.0.tar.gz
  • Upload date:
  • Size: 4.1 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.0.tar.gz
Algorithm Hash digest
SHA256 c74c6173a96632836c054ac96b5a6cacd600dd47602c5cd727c549b71184d8b1
MD5 26b356abfe6d2221da76208caed7d165
BLAKE2b-256 3e7d571e080c52bc66904d5558df6d1e19ac466f6a192789690d6ea9536faa02

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mrilite-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.3 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4d2900dadc0e772db715900924fabfca28a4efb8b85d5bc8c103434303610195
MD5 2a10c470069e2225316000980ba6b763
BLAKE2b-256 8e72522890fd5b73f8a84f4e3ba0fb1f9efcfba53bf6b046df11bdea0140f4fc

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