help > RE: Show all four sagittal images at once (medial LH, RH, and lateral LH, RH)
Dec 11, 2020  01:12 PM | Chris Rorden
RE: Show all four sagittal images at once (medial LH, RH, and lateral LH, RH)
It appears like the image you want to mimic is based on a triangle-based mesh-renderer like Surfice, not a voxel-based volume renderer like MRIcroGL. Assuming your statistical maps are aligned to one of the popular mesh templates, you can create a similar image with surfice. This example script should work with the sample images that come with Surfice


import gl
gl.resetdefaults()
gl.meshloadbilateral(0)
gl.meshload('BrainMesh_ICBM152.rh.mz3')
gl.overlayload('motor_4t95vol.nii.gz')
gl.overlayminmax(1,2,12)
gl.overlayload('motor_4t95vol.nii.gz')
gl.overlayminmax(2,-1,-2)
gl.colorbarvisible(1)
gl.overlaytransparencyonbackground(25)
gl.meshcurv()
gl.azimuthelevation(90, 0)
gl.savebmp('RH.png')
gl.azimuthelevation(270, 0)
gl.savebmp('RH2.png')
#show left hemisphere
gl.meshload('BrainMesh_ICBM152.lh.mz3')
gl.overlayload('motor_4t95vol.nii.gz')
gl.overlayminmax(1,2,12)
gl.overlayload('motor_4t95vol.nii.gz')
gl.overlayminmax(2,-1,-2)
gl.colorbarvisible(1)
gl.overlaytransparencyonbackground(25)
gl.meshcurv()
gl.azimuthelevation(270, 0)
gl.savebmp('LH.png')
gl.azimuthelevation(90, 0)
gl.savebmp('LH2.png')
Attachment: surfice.jpg

Threaded View

TitleAuthorDate
Jamal Williams Dec 10, 2020
RE: Show all four sagittal images at once (medial LH, RH, and lateral LH, RH)
Chris Rorden Dec 11, 2020
Chris Rorden Dec 10, 2020