open-discussion > Bitmap-saving and image smoothing options
Jun 15, 2017 08:06 AM
Translational Neuromodeling Unit, IBT, University of Zurich and ETH Zurich
Bitmap-saving and image smoothing options
I am a big fan of the whole MRIcro*-series - which for my purposes provide the best available viewers. Thank you for making this available to us. Recently, I became very interested in the scripting functionality of MRIcroGL.
I encountered two issues/questions lately:
1) When I choose one axial slice for plotting, use File -> Save or SAVEBMP('filename'), while the Preferences -> Bitmap Zoom is greater than one, I get horizontal black bars in the exported png. E.g., 1 in the center for zoom 2, but 5 parallel ones for zoom 10. My workaround is to set the bitmap zoom level to 1 in mricrogl.ini (or can I change it via scripting?).
2) Compared to other viewers, my 2D axial slices look somehow smoothed (the underlay, not the overlays), i.e. I cannot distinguish the pixels any more. Is there an implicit smoothing performed in 2D as well that I can adjust and switch off via a script?
Thank you very much for your help and once more for this great contribution to the community!
Below you find my system specs and the script, attached the bitmaps I am referring to.
Here are my system specs:
Mac OS Sierra 10.12.5
MRIcroGL, May 5, 2016
MacBook Air 2013 with one external monitor connected (1680x1050)
And here the generating script:
RESETDEFAULTS; SHADERQUALITY1TO10(10); LOADIMAGE('meanaspOutFmri1.nii');
OVERLAYTRANSPARENCYONBACKGROUND(0);OVERLAYCOLORFROMZERO(false);SHADERNAME('minimal'); COLORBARVISIBLE(false);OVERLAYLOAD('spmT_0001.nii');OVERLAYMINMAX(1, 3.7, 5);
OVERLAYLOAD('spmT_0001.nii');OVERLAYMINMAX(2, -5, -3.7);
OVERLAYLOAD('../edge0.10_MultiechoUmpire1mm.nii');OVERLAYMINMAX(3, 0, 2);
OVERLAYLOAD('edge0.10_MultiechoUmpire1mm.nii');OVERLAYMINMAX(4, 0, 2);
OVERLAYLOAD('../edge0.10_MultiechoUmpire1mm.nii');OVERLAYMINMAX(5, 0, 1.5);
OVERLAYLOAD('../edge0.10_MultiechoUmpire1mm.nii');OVERLAYMINMAX(6, 0, 2);
OVERLAYVISIBLE(1, true); OVERLAYVISIBLE(2, true);OVERLAYVISIBLE(3, false);
OVERLAYVISIBLE(4, false);OVERLAYVISIBLE(5, true);OVERLAYVISIBLE(6, false);
OVERLAYMASKEDBYBACKGROUND(false);MOSAIC('L- H -0.1 V 0 A 0.39');SAVEBMP('spOutFmri1_overlay1_preproc1_slicepack3_withEdge.png');
|Bitmap-saving and image smoothing options||Lars Kasper||Jun 15, 2017|
|RE: Bitmap-saving and image smoothing options||Lars Kasper||Jun 18, 2017|
|RE: Bitmap-saving and image smoothing options||Chris Rorden||Jun 22, 2017|