Skip to content

Commit

Permalink
with comment
Browse files Browse the repository at this point in the history
  • Loading branch information
CPernet committed Feb 15, 2024
1 parent af72121 commit 6ddef86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions matlab/ecat2nii.m
Original file line number Diff line number Diff line change
Expand Up @@ -334,10 +334,10 @@
warning('the json file is BIDS invalid')
end

if mh.calibration_units == 0
if mh.calibration_units == 1 % calibrated
img_temp = single(round(img_temp).*Sca); % just the 16 bit scaling, img_temp is already dose calibrated
warning('it looks like the source data are already dose calibrated - ecat2nii is thus not scaling the data')
else
else % uncalibrated
img_temp = single(round(img_temp).*(Sca*mh.ecat_calibration_factor)); % scale and dose calibrated
warning('it looks like the source data are not dose calibrated - ecat2nii is thus scaling the data')
end
Expand Down

0 comments on commit 6ddef86

Please sign in to comment.