0001 function GE_dumpHeader(IFileName, OutFile)
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015 [su_hdr,ex_hdr,se_hdr,im_hdr,pix_hdr] = GE_readHeader(IFileName);
0016
0017
0018 if nargin == 2
0019 outid = fopen(OutFile,'w');
0020 else
0021 outid = 1;
0022 end
0023
0024
0025 fprintf(outid,'Exam Header Section:\n');
0026 fprintf(outid,GE_dumpExamHeader(ex_hdr));
0027 fprintf(outid,'\n\n');
0028
0029
0030 fprintf(outid,'Series Header Section:\n');
0031 fprintf(outid,GE_dumpSeriesHeader(se_hdr));
0032 fprintf(outid,'\n\n');
0033
0034
0035 fprintf(outid,'Image Header Section:\n');
0036 fprintf(outid,GE_dumpImageHeader(im_hdr));
0037
0038
0039 if outid ~= 1
0040 fclose(outid);
0041 end
0042
0043 return