open-discussion > RE: use the package of MRIcroGL in common python coding and problem about remove haze in scripting
Jun 28, 2020  12:06 PM | Chris Rorden
RE: use the package of MRIcroGL in common python coding and problem about remove haze in scripting
By the way, you can always use the Scripting Editor in MRIcroGL as a kind of command line, entering one or more commands at a time. Consider paste this script into the scripting editor and choose Control-R to run the command:
import gl
gl.resetdefaults()
gl.loadimage('spm152')
You can now add one or more commands to change the image (e.g. new instructions are applied to the exisiting state machine). So you could run the command:

gl.minmax(0, 24, 84)

And it will change image intensity without any other effects. You can add effects one at a time. The one special command is gl.resetdefaults(), which sets many settings back to their default settings. You only want to use this at the very start of a script to ensure that all scripts start with in a common state.

Threaded View

TitleAuthorDate
Lance Liu Jun 26, 2020
Chris Rorden Jun 26, 2020
Lance Liu Jun 28, 2020
RE: use the package of MRIcroGL in common python coding and problem about remove haze in scripting
Chris Rorden Jun 28, 2020
Lance Liu Aug 2, 2020
Chris Rorden Aug 2, 2020
Lance Liu Aug 3, 2020
Chris Rorden Aug 3, 2020
Chris Rorden Jun 28, 2020