Grid3 is a small, open source, header-only C++ library for processing volume image data. It supports reading and writing of files in the following formats:
Additionally, loading of DICOM files is supported through the GDCM library. The software is released under the MIT license.
Browse the online documentation here. Release notes for all versions of the library can be found here.
Matlab MEX-functions that use the Grid3 library for reading and writing volume image data: