An open API service indexing awesome lists of open source software.

https://github.com/addisonelliott/matnrrd

MATLAB NRRD library that provides easy-to-use functions to load and save NRRD files.
https://github.com/addisonelliott/matnrrd

file-format image-processing matlab-library nrrd

Last synced: about 1 month ago
JSON representation

MATLAB NRRD library that provides easy-to-use functions to load and save NRRD files.

Awesome Lists containing this project

README

        

matnrrd
========
matnrrd is a MATLAB library that provides easy-to-use functions for loading and saving [NRRD](http://teem.sourceforge.net/nrrd/) files. One feature that sets matnrrd apart from other NRRD readers is that it parses the metadata fields into sensible datatypes.

matnrrd can be found on [MATLAB File Exchange](https://www.mathworks.com/matlabcentral/fileexchange/66658-addisonelliott-matnrrd) as well.

Installation
------------

Download this repository and copy/paste nrrdread.m and nrrdwrite.m somewhere in your MATLAB path. You are ready to go!

Running Tests
-------------

Download the entire repository and run test.m script.

Example usage
-------------

```matlab
[data, metadata] = nrrdread('data/test1d_ascii.nrrd');
metadata.encoding = 'raw';

nrrdwrite('test.nrrd', data, metadata);
```

Documentation
-------------
See help of nrrdread and nrrdwrite for more information on how to use these functions.

License
-------

See [LICENSE](https://github.com/addisonElliott/matnrrd/blob/master/LICENSE)