open-discussion > Improving visualization of clusters in MRIcroGL - Finding corresponding AFNI colormap "Reds_and_blues_Inv" in MRIcroGL?
Jul 10, 2024  04:07 PM | benedetta cecconi
Improving visualization of clusters in MRIcroGL - Finding corresponding AFNI colormap "Reds_and_blues_Inv" in MRIcroGL?

Hello,


I have completed an analysis in Afni, where my clusters are clearly rendered in their GUI with distinct red and blue colors (colormap "Reds_and_Blues_Inv") - see the attached picture "precuneus":



However, when I plot these clusters in MRIcroGL to have nicer definition/view etc, I can't find a suitable colormap or method to enhance the colors effectively and show the clusters nicely. Clusters look grainy/blurred and the final image is either elegant nor clear, even if this mosaic view would be very nice to visualize our results: 

 


To generate the above image, I used this script in MRIcroGL:


import gl


# Reset default settings and set the background color
gl.resetdefaults()
gl.backcolor(255, 255, 255)


# Load the background image
#gl.loadimage(‘mni152’)  


# Load the overlay containing all clusters
gl.overlayload("/Users/benedetta/3dlmer/results/Model_ROI_gm_SoundsSilence_240709/Clus_allsounds_cc_dc_100+orig.HEAD")


# Set the min and max for the overlay, with the specified range
gl.minmax(1, -1.515, 1.515)


# Set the color map to "blue2red"
gl.colorname(1, "blue2red")


# Set the color bar position
gl.colorbarposition(0)


# Configure the mosaic display for axial, coronal, and sagittal views
gl.mosaic("A R 0 C R 0 S R 0; A R -0 C R -0 S R -0")


I tried adding options "gl.overlayfuzziness" or "gl.overlaydepthpeel" but then it switched to the render view, dropping the mosaic one I need...I also tried to smooth the data in Afni but didn't get the expected results (clusters became way bigger and chunkier)...

Can someone give me some advice on how to improve the visualization of these results? I attach here, in case needed, the Afni HEAD/BRIK files that I'm trying to plot..

Any suggestion would be really appreciated :)

Thanks a lot in advance 

Threaded View

TitleAuthorDate
Improving visualization of clusters in MRIcroGL - Finding corresponding AFNI colormap "Reds_and_blues_Inv" in MRIcroGL?
benedetta cecconi Jul 10, 2024
Chris Rorden Jul 10, 2024
benedetta cecconi Jul 11, 2024