Microscopy Image Browser  1.233
All Classes Files Functions Variables Pages
get_nrrd_metadata.m File Reference

Get metadata for a NRRD dataset. More...

Functions

function [ meta ,

datatype ] = 
get_nrrd_metadata (filename)
 Get metadata for a NRRD dataset. More...
 
function
datatype = 
getnrrdmetadata>getDatatype (metaType)
 
function data = getnrrdmetadata>readData (fidIn, meta, datatype)
 
function data = getnrrdmetadata>adjustEndian (data, meta)
 

Detailed Description

Get metadata for a NRRD dataset.

Function Documentation

function [ meta , datatype ] = get_nrrd_metadata (   filename)

Get metadata for a NRRD dataset.

See the format specification online
http://teem.sourceforge.net/nrrd/format.html
Parameters
filenamefilename for NRRD file
Return values
metaa stucture with meta data
  • meta.type: a string with data type, unsigned char
  • meta.dimension: a string with number of dimensions, 3
  • meta.space: a string that describe the orientation of the raster grid relative to some surrounding "space", left-posterior-superior
  • meta.sizes: a string with width x height x thickness information, 521 372 75
  • meta.spacedirections: a string that encode a matrix 3x3 with voxel sizes, (12.999999999999998,0,0) (0,12.999999999999998,0) (0,0,30)
  • meta.kinds: a string with kinds, domain domain domain
  • meta.encoding: a string with encoding, raw, gzip
  • meta.spaceorigin: a string with a shift of the bounding box, (0,0,0)
datatypea string with a datatype, uint8, uint16

Referenced by getImageMetadata().

Here is the caller graph for this function:

function data = getnrrdmetadata>adjustEndian (   data,
  meta 
)
function datatype = getnrrdmetadata>getDatatype (   metaType)
function data = getnrrdmetadata>readData (   fidIn,
  meta,
  datatype 
)