DIAGNijmegen / rse-panimg

Conversion of medical images to MHA and TIFF.
Apache License 2.0
13 stars 5 forks source link

Add mha voxel-value range #80

Closed chrisvanrun closed 2 years ago

chrisvanrun commented 2 years ago

This PR adds meta-data headers to MHA files:

These are inspired by the similar named DICOM tags but explicitly allow for float and exponent notation.

For viewers (such as CIRRUS) knowing the range of the values present in the image can aid in setting up heuristics for viewing. Without the need to for a slow scan of all values present. For instance, CIRRUS can use (and already does if present) these tags setup the sensitivity of the windowing mouse tool.