pwighton / fs2NiiVueColormaps

Convert FreeSurfer Colormaps to NiiVue format

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fs2NiiVueColormaps

NiiVue comes with many built-in colormaps, which you can explore in this live demo. The NiiVue format is described here.

However, FreeSurfer uses a different format for its Color Lookup Tables. This Python script converts files in the FreeSurfer format to NiiVue's format. The script will convert all the text files (*.txt) in the folder to JSON files. The included color tables are from PyROI

git clone https://github.com/niivue/fs2NiiVueColormaps
cd fs2NiiVueColormaps
python fs2niivue.py 

About

Convert FreeSurfer Colormaps to NiiVue format

License:BSD 2-Clause "Simplified" License


Languages

Language:Python 100.0%