Microscopy Image Browser 2.91
MIB
Loading...
Searching...
No Matches
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.
 
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

◆ get_nrrd_metadata()

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 mibGetImageMetadata().

Here is the caller graph for this function:

◆ getnrrdmetadata>adjustEndian()

function data = getnrrdmetadata>adjustEndian ( data,
meta )

◆ getnrrdmetadata>getDatatype()

function datatype = getnrrdmetadata>getDatatype ( metaType)

◆ getnrrdmetadata>readData()

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