Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions matlab/ecat2nii.m
Original file line number Diff line number Diff line change
Expand Up @@ -211,12 +211,16 @@
Sca = Sca*MinImg/(-32768);
end

% % save scaling factor to file located at ecat_save_steps_dir/8.5_sca_matlab.txt
% fid = fopen([ecat_save_steps_dir filesep '8.5_sca_matlab.txt'],'w');
% fprintf(fid,'Scaling factor: %10e\n',Sca);
% x = mh.ecat_calibration_factor * Sca;
% fprintf(fid,'Scaling factor * ECAT Cal Factor: %10.10f\n',x);
% fclose(fid);
if (ecat_save_steps == '1')
save scaling factor to file located at ecat_save_steps_dir/8.5_sca_matlab.txt
fid = fopen([ecat_save_steps_dir filesep '8.5_sca_matlab.txt'],'w');
fclose(fid);
end

fprintf(fid,'Scaling factor: %10e\n',Sca);
x = mh.ecat_calibration_factor * Sca;
fprintf(fid,'Scaling factor * ECAT Cal Factor: %10.10f\n',x);

end

% save debugging step 8 - rescale to 16 bits
Expand Down
Loading