Hello
I would like to create a figure that illustrates the ROIs that were analysed.
I found an example where the region color is determined by statistical values, but can it be just freely assigned via rgb value?
my example:
import gl
gl.resetdefaults()
gl.azimuthelevation(240, 15)
gl.azimuthelevation(240, 15);
gl.meshload('aal.mz3')
gl.atlasstatmap('aal.mz3',
'surficetemp.mz3',
(23,24,31,32,37,38,39,40,45,46,85,86,89,90),
(0.5, 0.5, 1,1, 2, 2,3, 3, 4,4,5,5, 10,10))
gl.meshload('BrainMesh_ICBM152.mz3')
gl.shaderxray(0.5, 0.5)
gl.overlayload('surficetemp.mz3');
Many thanks in advance
Tom
I think currently the RGB value is the default color for the atlas. We have added support for allowing each label to have a custom transparency (Alpha) and RGB in NiiVue, and it is on the roadmap to back port these colormaps to Surfice and MRIcroGL
The NiiVue colormaps are described here:
https://github.com/niivue/niivue/blob/main/docs/development-notes/colormaps.md
You can try this out in the live demo:
https://niivue.github.io/niivue/features/segment.html
Note in the live demo you can paste and apply a custom color table. For example, to make gray matter opaque and the other labels transparent you would set the "A"lpha like this:
let cmap = {
R: [0, 0, 120, 175],
G: [0, 90, 60, 185],
B: [0, 120, 60, 175],
A: [0, 0, 255, 0],
labels: ["air","CSF","gray","white"],
};