SUMA Colormapping

Hi,

I've created a custom SUMA dset with values ranging from -7 to 16. My goal is to use two spectrums, one from -16 to 0, and another from 0 to 16 to display the scale of the positive values and the scale of the negative values.

In the attached image, you can see that I nearly have what I'm going for, but the white bar that spans both color scales runs from 0 to 16 instead of -16 to 16 and seems to be taking the absolute value of the negative values. To reiterate, I would like 0 to sit at the midpoint between the two color scales.

Any help would be much appreciated, thank you in advance!

Is the Reds_and_Blues_Inv colorscale the one you want?

You can browse the colorscales inside suma, or see this webpage:
https://afni.nimh.nih.gov/pub/dist/doc/htmldoc/educational/all_afni_cbars.html

Hi Daniel,

The Reds_and_Blues_Inv also works well, but I'm still finding that my negative values are mapped to positive values, and that the white bar ranges from 0 to 16, omitting negatives. I'm wondering if there is some intricacy in the way SUMA deals with negative values that I am missing? I am using ConvertDset to turn my 1D file into a .niml.dset, and not sure if the sign is getting lost in translation.

What is throwing me off is that the controller is correctly registering the [-7, 16] range in the 'B' values.

Hi-

Re. "the white bar that spans both color scales runs from 0 to 16 instead of -16 to 16"
Are you referring to the slider bar? That is separate from the colorbar, and that is for setting a threshold value. Thresholds work on absolute values, so that is why it goes from 0.00 upwards. That is a separate consideration from coloration.

The values being mapped for coloration depend on the "I" (intensity) value. Right now, the bottom of your colorbar (dark blue) is mapped to -16, and the top (red) is mapped to sixteen.

I think what you are asking for---positive values with hot coloration and negative values with cold coloration---is pretty common, and should be being accomplished in the current case.

In my image here, I chose the Reds_and_Blues_Inv cmap, with intensity range being -16 to 16, and the ROI values (from left to right) are: -16, -7, 8, 16:


This seems to correspond with what you are getting in your dataset, as well, where the cyan-blue ROI corresponds to your -7 value, I guess?

--pt

I see, I was a bit thrown off by the thresholding on absolute values. Thank you so much for the detailed explanation, it was extremely helpful!

Sure thing, I can see where your question arose. Glad that makes sense.

--pt