Creating cmap for SUMA

Hello everyone,

I am trying to create a cmap that will allow me to colour in a ROI overlap image in surface. I was able to set unique values to all three ROIs as well as all possible combinations of overlap. I would like to set a colour scale where a value of 1 is red, 2 is blue, etc etc. I tried using MakeColorMap but have had no luck so far. Any help would be much appreciated.


I’m still having trouble with this, if anyone can help I would greatly appreciate it

MakeColorMap should work, but there are a couple other choices.

Load a dataset using the “New” button in the suma object controller interface next to the “Cmp” colormap button. Here you would select your colormap. You can make the colormap with MakeColorMap to make a NIML (XML-like) format file or just use a simple text file with three columns of numbers. The colors are defined in fractional RGB values as fractions of 1, so white is “1.0 1.0 1.0” and black is “0.0 0.0 0.0”. You can see what this format looks like for any of suma’s colormaps by clicking the ‘w’ key over the colorbar in the controller. That writes the colormap to a file. Modify it as you like and read it back in with the “New” key.

You don’t actually have to make your own colormap in this case because there are other colorscales that have bands for a value. Select something like the ROI_32 colormaps. You may want to choose the “Direct” colormapping instead of the “NN” or “Integer”. You can also scale the range to the maximum (7).

Hi Daniel,

Thanks to your help I was able to get this working yesterday. I appreciate your help!