Home > rest_20090422 > rest_spm5_files > @read_nifti > private > empty_hdr.m

empty_hdr

PURPOSE ^

Create an empty NIFTI-1 header

SYNOPSIS ^

function hdr = empty_hdr

DESCRIPTION ^

 Create an empty NIFTI-1 header
 FORMAT hdr = empty_hdr
 _______________________________________________________________________
 Copyright (C) 2005 Wellcome Department of Imaging Neuroscience

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

DOWNLOAD ^

empty_hdr.m

SOURCE CODE ^

0001 function hdr = empty_hdr
0002 % Create an empty NIFTI-1 header
0003 % FORMAT hdr = empty_hdr
0004 % _______________________________________________________________________
0005 % Copyright (C) 2005 Wellcome Department of Imaging Neuroscience
0006 
0007 %
0008 % $Id: empty_hdr.m 253 2005-10-13 15:31:34Z guillaume $
0009 
0010 
0011 org = niftistruc;
0012 for i=1:length(org),
0013     hdr.(org(i).label) = org(i).def;
0014 end;
0015

Generated on Wed 29-Apr-2009 01:06:38 by m2html © 2005