Skip to content

AFNI/NIfTI Server

Sections
Personal tools
You are here: Home » AFNI » Documentation

Doxygen Source Code Documentation


GE_dumpHeader.m

Go to the documentation of this file.
00001 function GE_dumpHeader(IFileName, OutFile)
00002 %
00003 % GE_dumpHeader(IFileName,OutFile)
00004 % Dumps much of the header from a GE lx2 or 5.X file to
00005 % OutFile.  If OutFile is not specified, the output goes
00006 % to stdout.
00007 %
00008 % Souheil J. Inati, PhD
00009 % Dartmouth College
00010 % May 2000
00011 % souheil.inati@dartmouth.edu
00012 %
00013 
00014 %%%% Call GE_readHeader %%%%
00015 [su_hdr,ex_hdr,se_hdr,im_hdr,pix_hdr] = GE_readHeader(IFileName);
00016 
00017 % Open the output file
00018 if nargin == 2
00019   outid = fopen(OutFile,'w');
00020 else
00021   outid = 1;  % stdout
00022 end
00023 
00024 %%%% Exam Header %%%%
00025 fprintf(outid,'Exam Header Section:\n');
00026 fprintf(outid,GE_dumpExamHeader(ex_hdr));
00027 fprintf(outid,'\n\n');
00028 
00029 %%%% Series Header %%%%
00030 fprintf(outid,'Series Header Section:\n');
00031 fprintf(outid,GE_dumpSeriesHeader(se_hdr));
00032 fprintf(outid,'\n\n');
00033 
00034 %%%% Image Header %%%%
00035 fprintf(outid,'Image Header Section:\n');
00036 fprintf(outid,GE_dumpImageHeader(im_hdr));
00037 
00038 % Close the File if not stdout
00039 if outid ~= 1
00040   fclose(outid);
00041 end
00042 
00043 return
 

Powered by Plone

This site conforms to the following standards: