This is a Header-Only implementation of the NRRD Image file format. It supports all basic C-types and automatically converts to the type you want. It is templated and allows reading and writing user-defined meta-information to the NRRD-header.
It implements "the most important" parts of the following standard:
http://teem.sourceforge.net/nrrd/format.html
- Does not implement: line skip, byte skip, orientations, encodings other than raw, kinds other than domain.
- Converts all type strings to C-type equivalent i.e. "uint8" to "unsigned char"
- Always writes "endian" tag (required for FIJI/ImageJ loading)
- Can open files of Big and little endian but saves files only in native format.
It is compatible with ImageJ/Fiji
http://fiji.sc/Fiji
The library has been used in dozens of projects and is well tested.
Features
- NRRD file loading
- NRRD file saving
- Templated to support all basic C types
- Automatically convert between types
- Optional tools to convert all types supported by ITK including DICOM, TIFF etc.