rordenlab / MRIcroGL

v1.2 GLSL volume rendering. Able to view NIfTI, DICOM, MGH, MHD, NRRD, AFNI format images.

Home Page:https://www.nitrc.org/plugins/mwiki/index.php/mricrogl:MainPage

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python option to adjust overlay depth

JeffreyWardman opened this issue · comments

Is it possible to include the following option:

gl.overlaydepth(depthPct)  -> depth percentage of overlay

I assume you want to change the overlayDepth property of the render shader. For shader properties, you can call them by name:

import gl
gl.resetdefaults()
gl.loadimage('spm152')
gl.overlayload('spmMotor')
gl.minmax(1, 4, 4)
gl.opacity(1,10)
gl.shaderadjust('overlayDepth', 0.2)

Thanks @neurolabusc! That's exactly what I was after. Cheers!

That's exactly what I was need, which could be added in the command.md.