Written and maintained by CASRAI Editorial Board
Last updated
MRIcroGL is a cross-platform neuroimaging visualization application designed for real-time 3D volume rendering and multi-planar orthogonal slice inspection of volumetric medical data. Built on hardware-accelerated graphics engines, the tool enables cognitive neuroscientists, clinical neurologists, and imaging researchers to superimpose statistical parametric maps onto anatomical templates. In contemporary neuroscience workflows, it provides reproducible figure generation, automated volume-of-interest delineation, and seamless integration with standardized formats.
What it is
MRIcroGL is an open-source, standalone software suite developed for visualizing volumetric neuroimaging datasets, including functional magnetic resonance imaging (fMRI), structural MRI, computed tomography (CT), and positron emission tomography (PET). Unlike traditional 2D slice viewers, MRIcroGL utilizes hardware-accelerated single-pass raycasting to render 3D brain volumes with interactive cutouts, clipping planes, and depth-cued surfaces. It acts as both a visual inspection environment for scanner data quality control and a presentation-grade rendering engine for scholarly publications.
The application supports native NIfTI-1 and NIfTI-2 formats (.nii, .nii.gz), while providing direct compatibility with various legacy and specialized formats such as DICOM, NRRD, AFNI (.head/.brik), FreeSurfer (.mgh/.mgz), and ITK MetaImage (.mhd/.mha). By linking volume raycasting with an embedded Python scripting engine, MRIcroGL bridges interactive desktop exploration and scriptable, reproducible batch image processing across macOS, Linux, and Windows platforms.
Who runs it and what it covers
MRIcroGL is authored and maintained by Chris Rorden and colleagues at the McCausland Center for Brain Imaging, University of South Carolina, with ongoing contributions from the open-source neuroimaging community hosted on GitHub and the Neuroimaging Informatics Tools and Resources Clearinghouse (NITRC). Its formal algorithmic foundation and visualization architecture are documented in Nature Methods (Rorden, 2025, DOI: 10.1038/s41592-025-02763-7). The tool is freely distributed under open-source licensing, receiving infrastructure support from academic neuroimaging facilities and research grant consortia.
The platform covers a comprehensive functional scope for human and animal neuroimaging research:
- Hardware-Accelerated Rendering: Real-time volume raycasting implemented via OpenGL 2.1, OpenGL 3.3 Core, and Apple Metal, ensuring responsive rendering on standard consumer GPUs and Apple Silicon hardware.
- Multi-Layer Statistical Overlays: Simultaneous loading of multiple statistical threshold maps, contrast maps, and lesion distributions over standard background templates (such as MNI152).
- Lesion and VOI Delineation: Specialized tools for drawing volumes of interest (VOI), manual lesion tracing, and voxel-based lesion-symptom mapping (VLSM) analysis.
- Format Conversion: Direct bundling and integration of the dcm2niix conversion utility, enabling automated translation of scanner-native DICOM directories into BIDS-compliant NIfTI volumes. Data curated through these workflows frequently feeds public repositories like OpenNeuro BIDS neuroimaging data sharing initiatives.
- Automated Scripting: An internal Python 3 runtime allowing automated slice generation, custom colormap generation, and publication figure scripting without requiring graphical user interaction.
How to search or use it
Researchers operate MRIcroGL through its graphical user interface or via programmatic Python scripts. The standard scientific workflow involves the following sequential steps:
- Load Structural Background Data: Open the anatomical image or standard reference template by selecting
File > Open, using keyboard shortcuts, or dragging a NIfTI file (.nii or .nii.gz) directly onto the canvas. - Import Statistical Overlays: Load functional activation maps, tractography densities, or statistical clusters using
File > Add Overlay. Multiple independent layers can be appended to inspect overlapping contrasts. - Configure Layer Properties and Interpolation: Navigate to the
Layerscontrol panel. Assign dedicated color lookup tables (such as ACTC, Cold-Hot, or Plasma) to each overlay. In theOptionsmenu, toggleLoad Smooth Overlaysto select between linear interpolation (for continuous gradient maps) and nearest-neighbor interpolation (for unblurred, voxel-exact cluster thresholds). - Select Multi-Planar Views: Use the
Displaymenu to toggle between Orthogonal (simultaneous axial, sagittal, and coronal planes), Multi-slice mosaics, or 3D Render modes. In 3D Render mode, interactive clipping planes and cutout sliders reveal subcortical activations. - Set Orientation Conventions: Align visual slice orientation with laboratory standards by toggling
Display > Radiological (FlipLR). Unchecked indicates neurological convention (patient left on screen left), whereas checked flips the 2D display to radiological convention (patient left on screen right) while maintaining 3D coordinate integrity. - Delineate Volumes of Interest (VOI): For lesion tracing or seed extraction, switch to 2D view and select
Draw > Draw Color. Trace voxels manually with the pen tool, apply morphological constraints viaDraw > Advanced > Intensity Filter, or remove jagged planar boundaries withSmooth and Refine Drawing. - Export Publication Figures or Automate: Save high-resolution bitmap graphics through
File > Save Render, or execute scripted figure generation by choosingScripting > Templatesor executing command-line scripts viamricrogl myscript.py. Citing data objects produced in this manner often relies on persistent standard identifiers, including a Crossref DOI, to maintain research reproducibility.
Strengths and limits
Evaluating MRIcroGL within clinical and basic research workflows requires balancing its specialized performance against its analytical boundaries:
- Strengths:
- Rendering Efficiency: Single-pass raycasting provides real-time, interactive volume manipulation even on low-power laptop GPUs, outperforming CPU-based viewers.
- Low Entry Barrier: Standalone executable requires no compilation or heavy dependency chains; portable packages are ready to run out of the box across Linux, macOS, and Windows.
- DICOM Integration: Embedded dcm2niix enables one-step translation from clinical scanner disks to scientific NIfTI files without external utilities.
- Scripting Reproducibility: Built-in Python environment guarantees identical figure generation across large subject cohorts.
- Limits:
- No Statistical Modeling: MRIcroGL is strictly a visualization and VOI drawing package; it does not perform general linear modeling (GLM), motion correction, or statistical inference.
- GPU Driver Dependency: Although compatible with OpenGL 2.1+, virtual machines or headless server environments lacking hardware OpenGL or software rasterizers (such as Mesa llvmpipe) may encounter display failures. In contrasting computational methods within neurology vs neuroscience, researchers require dedicated GPU acceleration for 3D raycasting.
- Surface Mesh Boundaries: While exceptional for voxel-based volumetric data, it is not primarily built for complex triangular cortical surface manipulation (such as FreeSurfer gifti/inflated surfaces), which are better handled in dedicated mesh software.
Alternatives
Researchers select visualization software based on GPU availability, statistical pipeline integration, and specific data formats. The table below traces primary characteristics of established alternatives:
| Platform | Rendering Engine | Primary Formats | Scripting Interface | Best Research Use Case |
|---|---|---|---|---|
| MRIcroGL | Hardware-accelerated single-pass raycasting (OpenGL 2.1+ / Metal) | NIfTI, DICOM, NRRD, AFNI, FreeSurfer MGH | Python 3 | Real-time 3D volume rendering, overlay publication figures, and lesion VOI tracing. |
| MRIcron | CPU-based software rasterization (no OpenGL required) | NIfTI, DICOM, Analyze (.hdr) | Pascal scripting (legacy) | Lightweight 2D slice viewing on older computers or remote server terminals lacking GPUs. |
| FSLeyes | OpenGL-based multi-planar canvas | NIfTI, GIFTI, VTK | Python / IPython shell | Direct inspection of FSL processing outputs, MELODIC ICA components, and FEAT directories. |
| 3D Slicer | VTK-based modular visualization pipeline | NIfTI, DICOM, NRRD, STL, OBJ | Python 3 | Complex multimodal image-guided therapy, surgical planning, and 3D segmentation. |
| Mango | Java-based rendering engine | NIfTI, DICOM, Analyze | Java / Python plugins | Cross-platform desktop and browser-based slice viewing with multi-image ROI analysis. |
FAQ
How does MRIcroGL differ from MRIcron?
MRIcroGL utilizes GPU-accelerated OpenGL and Apple Metal shaders to perform interactive 3D volume raycasting, clipping, and dynamic lighting. MRIcron relies on CPU software rasterization, making it suited for older machines without modern GPUs but incapable of interactive real-time volume rendering. Furthermore, MRIcroGL utilizes modern Python 3 scripting, whereas MRIcron used legacy Pascal scripts.
Can MRIcroGL convert raw scanner DICOM files to NIfTI?
Yes. MRIcroGL includes an integrated distribution of dcm2niix accessible via Import > Convert DICOM to NIfTI. Researchers can select a folder of DICOM files to output compressed NIfTI (.nii.gz) files accompanied by BIDS-compliant JSON sidecars containing acquisition metadata.
How do I switch between neurological and radiological view in MRIcroGL?
You can toggle the viewing orientation under Display > Radiological (FlipLR). When unchecked, images follow neurological convention (left hemisphere is on the left side of the screen). When checked, images follow radiological convention (left hemisphere is on the right side of the screen).
What GPU requirements does MRIcroGL have?
MRIcroGL requires OpenGL 2.1 or later on Linux and Windows, or OpenGL 3.3 Core. On modern macOS systems, it supports native Apple Metal shaders on both Intel and Apple Silicon (ARM) architectures. If run on headless systems or virtual desktops, hardware acceleration or Mesa software drivers must be configured.
Sources
- Rorden, C. (2025). MRIcroGL: voxel-based visualization for neuroimaging. Nature Methods. https://doi.org/10.1038/s41592-025-02763-7 (Read 2026-11-08)
- Rorden Lab. (2026). MRIcroGL GitHub Repository Documentation and Release Specifications. https://github.com/rordenlab/MRIcroGL (Read 2026-11-08)
- Neuroimaging Informatics Tools and Resources Clearinghouse (NITRC). (2026). MRIcroGL Documentation and Wiki Manual. https://www.nitrc.org/plugins/mwiki/index.php/mricrogl:MainPage (Read 2026-11-08)







