help > Clip the VOI of image programmatically MRIcroGL
Apr 30, 2021  10:04 AM | dan1919
Clip the VOI of image programmatically MRIcroGL
Hello, I am using MRIcroGL and I am trying to write a script, that clips the underlying data from images of a VOI I have created. But I can not find a command in the scripting way that does it. It should do the same as when using the GUI Draw->advanced->Mask image->preserve VOI data.
That is my code so far:

gl.resetdefaults()
#open background image
gl.loadimage(dirname+filename)
#open overlay: show positive regions
gl.overlayload(voiname)
gl.minmax(0, 0, 10)


How can I only display (and save later on) the underlying data of my image? Any help would be great!

Threaded View

TitleAuthorDate
Clip the VOI of image programmatically MRIcroGL
dan1919 Apr 30, 2021
Chris Rorden May 16, 2021