A lightweigt html5 renderer for fmri volumes
Reason this release was yanked:
old naming conventions
Project description
fMRI-Volumetric-Renderer
A volumetric fMRI renderer for the web. 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 a browser as well as in the output of a jupyter notebook.
Python Render Pipeline Usage
import nibabel as nib
import torch
import volume_plot_utils
#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
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 volume_plot_utils.py for more information
Interactive example: https://kappnkrunch.github.io/fMRI-Volumetric-Renderer/example1.html
Project details
Release history Release notifications | RSS feed
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
Hashes for fMRI Volumetric Renderer-0.2.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17febd9415e8a6f714cf8b9f1c0703cb9c31d48ab296d09e415eeaa89edb3749 |
|
MD5 | 09b37a94abe45f02575b36d274931393 |
|
BLAKE2b-256 | a9ef2f216600aa5e33f0b5bb98addb8cae5b51265aab4859af314b2db422acdd |
Hashes for fMRI_Volumetric_Renderer-0.2.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6fe659fff1dfaac391d938986c5924c0c49ccf8f8c53e8e55f0a742e47f35e67 |
|
MD5 | f8dc042154a16ec1d3742970c867e17e |
|
BLAKE2b-256 | 8042ba1e42d8e28d9e59214ffa1928cc655cf0542bae043066ffb4ee29fd84e6 |