help > Need of a cyclic corolmap
Showing 1-4 of 4 posts
Display:
Results per page:
Jun 17, 2020  09:06 AM | makis
Need of a cyclic corolmap
Hi all,


I am using MRIcroGL in order to create some brain visualizations.

I have an activation map and I need to use a cyclic colormap such as the HSV colormap. however, such option is not available.

Any tip?
Jun 17, 2020  10:06 AM | rtransform
RE: Need of a cyclic corolmap
In your MRIcroGL directory, there is a folder Resources/lut, containing the files for the colormaps. (e.g. 'x_rain.clut')

Those files can be opened and edited in your text editor. e.g. I used x_rain.clut as a basis for the following color map:

[FLT]
min=0
max=0
[INT]
numnodes=7
[BYT]
nodeintensity0=0
nodeintensity1=32
nodeintensity2=64
nodeintensity3=96
nodeintensity4=160
nodeintensity5=192
nodeintensity6=255
[RGBA255]
nodergba0=3|0|0|0
nodergba1=64|0|128|8
nodergba2=0|0|255|16
nodergba3=0|255|0|24
nodergba4=255|255|0|32
nodergba5=255|192|0|52
nodergba6=3|0|0|0

By setting the last line to match the first line, the color map becomes circular in a way, as maximum and minimum values have the same color.
Any .clut - file (or text file with the appropriate file extension) saved in the aforementioned folder will show up in MRIcroGL, so you can easily add custom color maps

Hope this hleped.
Kind regards

Jun 17, 2020  11:06 AM | makis
RE: Need of a cyclic corolmap
Great! Thank you
Jun 17, 2020  12:06 PM | Chris Rorden
RE: Need of a cyclic corolmap