View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
NRRD Format File Reader

Join the 15-year community celebration.

Play games and win prizes!

» Learn more

4.83333
4.8 | 6 ratings Rate this file 44 Downloads (last 30 days) File Size: 2.67 KB File ID: #34653 Version: 1.1

NRRD Format File Reader

by

Jeff Mather (view profile)

 

18 Jan 2012 (Updated )

Read imagery and metadata from .nrrd medical imaging format files.

| Watch this File

File Information
Description

Read volumetric data from the NRRD (.nrrd) medical imagery file format. This function returns the image volume and all of the metadata stored in the file.

Acknowledgements

This file inspired Nrrd Format File Reader, Nrrd Writer(Filename, Matrix, Pixelspacing, Origin, Encoding), Nrrdmeta2num(Imgh), and Microscopy Image Browser (Mib).

Required Products MATLAB
MATLAB release MATLAB 7.13 (R2011b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (8)
08 Aug 2016 Kalyan Sundar  
21 Feb 2016 Sandeep singh

how to use this please tell me should i unzip and add folder where i have installed my matlab

Comment only
22 Oct 2015 Ibraheem Al-Dhamari

Voxels values are not correct. Voxels values in Slicer3D and MITK are the same but in matlab are different.

Comment only
08 Jul 2015 Ibraheem Al-Dhamari

very useful,
it would be nice if the numeric meta data extracted as numbers instead of characters.

20 May 2015 Ilya Belevich  
28 Feb 2015 Nima Tajbakhsh

Good job! One limitation I encountered is that some temporary files that are created during the code execution are not deleted at the end. It can be a serious problem in the case of medical images where each temporary file is about 200MB. To fix this, I commented out the following line of the code

cleaner = onCleanup(@() fclose(fidTmp));

and added the followings at the end of "case {'gzip', 'gz'}."

fclose(fidTmp);
system(['del ' tmpFile])
system(['del ' tmpBase])

01 Jul 2013 Roi mehrez

you might have a problam in the fopen. fileID in the function readData point the nhdr and the data file

30 Jul 2012 Maxime

Maxime (view profile)

 
Updates
03 Feb 2012 1.1

Removed "author" info.

Contact us