fMRI-Volumetric-Renderer
A volumetric fMRI renderer for jupyter notebook. Built using WebGL.
This project presents a method for visualizing volumetric MRI and fMRI data based on a discrete raytracing algorithm and OpenGL. Data is pre-processed and then attached to the html template document, the renderer itself is written in html. This method presents a lightweight renderer that can be used to visualize fMRI data in the output of a jupyter notebook.
Interactive example: Here
Python Render Pipeline Usage
Get the package from the pip repository using the python pip command
pip install fMRI-Volumetric-Renderer
Display volume from file
import nibabel as nib
import torch
from volume_plot_utils import plotter
#load an example nifti file
brainData = nib.load("data/sub-0x/func/subject-data-file.nii.gz")
#load the nifti data into a pytorch tensor
activationSequence = torch.tensor(brainData.get_fdata().T)
#use the displayVolume function to display the volumetric data in ipynb
plotter.displayVolume(activationSequence)
General HTML Template Usage
The example python shows usage with pytroch and nibabel but html displays can be created from a template by substituting keywords from the template file: see plotter.py for more information
Interactive example: Here
Metadata
Release files for fMRI-Volumetric-Renderer 0.2.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| fMRI Volumetric Renderer-0.2.7.tar.gz | 7.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fMRI_Volumetric_Renderer-0.2.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.7 kB
Release files / fMRI Volumetric Renderer-0.2.7.tar.gz
| Download URL | fMRI Volumetric Renderer-0.2.7.tar.gz |
|---|---|
| Size | 7.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cb7da1e6d62438549bd73ea25ed0bb746dfc81de3d9387d5a03bc1c93d105c24
|
|
BLAKE2b-256 checksum How to use checksums |
eb35d54b1ab4a8f728d02bee49fa4504b60b1d3e083654719c7ae84322402e18
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.7
|
Release files / fMRI_Volumetric_Renderer-0.2.7-py3-none-any.whl
| Download URL | fMRI_Volumetric_Renderer-0.2.7-py3-none-any.whl |
|---|---|
| Size | 8.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8287f1ab5d01446fc87db4ce2638711e1070345bde74435eb60c6f773e4a6c4d
|
|
BLAKE2b-256 checksum How to use checksums |
2ee02c331772e2686a855f5e58a5f3deb53af88d0a8b2bf80365b97ff4ee4a5d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.7
|