|
From: Gordon K. <gk...@bw...> - 2005-09-09 21:39:39
|
hi,
Just a note to announce that as of this afternoon Steve Haker and I
have wrapped nrrdLoad/nrrdSave as matlab-callable functions (via the
mex interface), so that you can, within matlab, do something like:
vol = nrrdLoad('vol.nrrd');
and:
nrrdSave(vol, 'vol.nrrd');
Within the wrapper code we're mapping between the basic array
properties (dimension, type, size) of matlab arrays and nrrd. So
write now, all things like spacing and other per-array and per-axis
meta-information is lost, but its a good start. On Monday or so
Steve and I are going to clean up the code and check it into Teem.
The converse of this, reading and writing Matlab files into Nrrd
structs, has been done by people at Utah, but the code is in C++ so
it isn't currently in Teem. It would be nice to port that to C and
add it as nrrd functionality sometime.
Gordon
|