help > Temporal data in mosaic
Showing 1-2 of 2 posts
Results per page:
Dec 14, 2021  11:12 PM | RenĂ© Labounek - Department of Biomedical Engineering, FEEC, Brno University of Technology
Temporal data in mosaic
Dear MRIcroGL users and developers,
I would like to make a 4rowsĂ—5cols mosaic visualization where each row shows temporal data of one specific subject. Colums will show same slice over 5 different time-points. Each subject has his/her own 4D nifti volume. Volumes are in the same space (but not MNI). Is it possible to design automated visualiazation of such image in MRIcroGL? I have been looking into the software, its manual, over internet, etc. but have not found any solution. Neither, I was able to visualize 5 time-points of the same slice for 1 particular subject.
Thanks for any constructive advice,
Dec 15, 2021  01:12 PM | Chris Rorden
RE: Temporal data in mosaic
This is a perfect role for Python scripting. Choose Scripting/New and paste the code below. You can tune the script for the names and intensity thresholds specific to your data.

import gl
#open background image
#open overlay: show positive regions
gl.minmax(1, 4, 4)
#open overlay: show negative regions
gl.minmax(2, -4, -4)
gl.colorname (2,"3blue")
gl.mosaic("A L+ H 0.2 -20 -15 -10 -5 0.1; 5 10 15 20 25; 30 35 40 45 50; 55 60 65 70 75")