[Master Index]
[Index for export/brede]
brede_write_mricro_roi
(export/brede/brede_write_mricro_roi.m)
Function Synopsis
brede_write_mricro_roi(V, varargin)
Help text
brede_write_mricro_roi - Write a MRIcro 'roi' file
brede_write_mricro_roi(V)
Input: V 'Vol' structure
Property: Filename [ {tmp.roi} ] Filename for written roi
file
Writes a volume mask in the MRIcro's "unique and fairly
unusual [roi] format".
The format is a kind of slice-based run length encoding:
[ sliceIndex wordsInSlice beginIndex runLength beginIndex
runLength ... sliceIndex wordsInSlice beginIndex runLength
beginIndex runLength ... ]
Indices seem to start from left posterior inferior (if the
volume is oriented in the SPM99-ANALYZE way). Indices and
lengths seem to be stored as 16-bit little endians, thus the
format seems not able to store large 512x512 slices.
There is no stereotaxic information store in the file, - only
voxel indices.
Example:
V.volume = zeros(3,3,3);
V.origin = [ 2 2 2 ];
V.voxelSize = [ 0.003 0.003 0.003 ];
V.volume(2,2,2) = 1;
brede_write_mricro_roi(V, 'filename', 'test')
See also BREDE, BREDE_WRITE, BREDE_WRITE_ANALYZE.
$Id: brede_write_mricro_roi.m,v 1.3 2007/11/21 13:35:06 fn Exp $
Cross-Reference Information
This function calls
Produced by mat2html on Fri Jun 20 17:43:05 2008
Cross-Directory links are: OFF