open-discussion > Overlayload in MRIcroGL
Showing 1-2 of 2 posts
Display:
Results per page:
May 27, 2017  10:05 PM | SUDHAKAR MISHRA - Indian Institute of Information Technology Allahabad
Overlayload in MRIcroGL
What is this overlayload in MRIcroGL. In the example scripts 'Motor' is given. If I put some other brain region it throws error. If anyone has any clue about how to put this entry, please post it. 

Any help would be great.
May 31, 2017  05:05 PM | Chris Rorden
RE: Overlayload in MRIcroGL
You can find out what MRIcroGL scripting functions do by reading the included PDF manual, or by selecting the command in the scripting window. When you insert a command using the scripting window you will see usage notes appear at the bottom of the window. For example, if you choose the Insert/Overlay/Overlayload menu item you will see:

OVERLAYLOAD (lFilename: string): integer; Will add the overlay named filename and return the number of the overlay.

The software comes with a sample NIfTI image named "motor.nii.gz" which shows motor activation as observed in an fMRI task. If you want to load a different image you will need to provide its name, for example OverlayLoad('c:\mydir\myimg.nii'). You could shorten this to OverlayLoad('myimg') if the image is in the same folder as the MRIcroGL executable.