neurolabusc / surf-ice

GLSL surface rendering source code. Compiled versions available from NITRC. Loads 3DS, CTM, DXF, FreeSurfer, GII (GIfTI), GTS, LWO2, MS3D, MZ3, NV (BrainNetViewer), OBJ, OFF, PLY, STL, VTK. Tractography formats include BFloat, PDB, TCK, TRK, and VTK. Also NIfTI format voxelwise images.
https://www.nitrc.org/plugins/mwiki/index.php/surfice:MainPage
BSD 2-Clause "Simplified" License
104 stars 23 forks source link

Add color LUT for turbo #33

Closed witherscp closed 1 year ago

witherscp commented 2 years ago

The turbo colormap is a widely used perceptually-uniform rainbow colormap

neurolabusc commented 2 years ago

@witherscp can you try out this version which reduces the nodes from 86 to 12. This will make modifying the color table with MRIcroGL easier:

[FLT]
min=0
max=0
[INT]
numnodes=12
[BYT]
nodeintensity0=0
nodeintensity1=1
nodeintensity2=16
nodeintensity3=32
nodeintensity4=49
nodeintensity5=83
nodeintensity6=118
nodeintensity7=140
nodeintensity8=164
nodeintensity9=181
nodeintensity10=219
nodeintensity11=255
[RGBA255]
nodergba0=48|18|59|0
nodergba1=48|18|59|22
nodergba2=64|64|162|26
nodergba3=70|107|227|30
nodergba4=65|150|255|34
nodergba5=25|226|187|43
nodergba6=132|255|81|52
nodergba7=195|241|52|57
nodergba8=244|199|58|63
nodergba9=254|158|47|67
nodergba10=218|57|7|77
nodergba11=122|4|3|86

turbo

witherscp commented 2 years ago

The new version looks good to me! I'm not using MRIcroGL, so I wasn't aware that more nodes could be a bad thing.