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
Built Distribution
File details
Details for the file simplebrainviewer-0.3.2.tar.gz
.
File metadata
- Download URL: simplebrainviewer-0.3.2.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b3e1f01741920c72a4180412e2c65977e9178b13f4da416ad79f2b2d82aa357 |
|
MD5 | e7f47e10629b2426c7a73ad090218be9 |
|
BLAKE2b-256 | 8e7de0d1282a870994fd4f5b843eec64b4e7e309a270952e296698c1a21d4e94 |
File details
Details for the file simplebrainviewer-0.3.2-py3-none-any.whl
.
File metadata
- Download URL: simplebrainviewer-0.3.2-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98bade9266e5e3049c214c2eabbae5f77b4d29ce3a856a46de773f3886260d10 |
|
MD5 | 5c9057090db88757b7a588df0e35045a |
|
BLAKE2b-256 | 51b5b0480529dbc25a98308bba4af91d37fa16574100a3dd81e22ae905ec8ea9 |