Skip to main content

A simple brain viewer using matplotlib

Project description

SimpleBrainViewer

A simple brain viewer using matplotlib

What is this?

Pretty self-explanatory... It's a simple brain viewer written with matplotlib. Useful if you just want to view a volume quickly directly in python.

Usage

You can call the BrainViewer from python or the command line (via nifti file or any other nibabel compatible format):

import nibabel as nib
import simplebrainviewer as sbv

# load a volume
img = nib.load('/a/nifti/file')

# plot the img
sbv.plot_brain(img)

# you can also display numpy arrays
sbv.plot_brain(img.get_fdata())
Command Line Usage
usage: sbv [-h] volume

View a brain volume

positional arguments:
  volume      brain volume to view

options:
  -h, --help  show this help message and exit

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

simplebrainviewer-0.3.2.tar.gz (5.8 kB view hashes)

Uploaded source

Built Distribution

simplebrainviewer-0.3.2-py3-none-any.whl (6.4 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page