NRRD File Compatibility
NRRD header requirements for 3D medical assets in Ango Hub
Ango Hub supports NRRD files in the 3D Medical labeling editor when they describe a single 3D medical volume with enough spatial information to build the Axial, Coronal, and Sagittal views.
The .nrrd file extension alone does not guarantee that the file can be opened. The NRRD header must also describe a supported volume.
Supported NRRD files
A supported NRRD asset must meet all of the following requirements:
dimension
Must be 3.
sizes
Must contain exactly 3 values, one for each axis.
space
Must be one of left-posterior-superior, LPS, right-anterior-superior, RAS, left-anterior-superior, or LAS.
space directions
Must be a 3x3 matrix. Each of the 3 rows must contain exactly 3 values.
space origin
Must contain exactly 3 values.
space units
Optional. If omitted, Ango Hub uses mm.
Ango Hub supports NRRD files using raw, ascii, txt, text, gzip, or gz encoding.
The voxel data must use a scalar numeric NRRD type, such as signed or unsigned 8-bit, 16-bit, or 32-bit integers, float, or double.
Unsupported NRRD files
Ango Hub does not support NRRD assets with any of the following properties:
2D, 4D, time-series, vector, or multi-component volumes where
dimensionis not3.4D medical volumes with a leading list/vector/time axis, even if only 3 of the axes are spatial.
Scanner-based coordinate systems, including
scanner-xyzand3D-*spaces.Coordinate systems other than LPS, RAS, or LAS.
Files with missing or malformed
sizes,space directions, orspace originvalues.Detached-header NRRD files that use
data fileordatafile.NRRD files using
hex,bzip2, or other encodings outside the supported encodings listed above.NRRD files using
blockor 64-bit integer data types.
If an unsupported NRRD file is opened in Ango Hub, the asset may fail to load and the editor may show warnings such as Only 3D volumes are supported, Space information is missing in the NRRD file, or Space directions matrix is of incorrect shape.
Example supported header
What to do if a file is not supported
Convert the volume before importing it into Ango Hub. The converted file should be a single 3D scalar volume with an LPS, RAS, or LAS coordinate system, 3 values in sizes, a 3x3 space directions matrix, and a 3-value space origin.
Last updated