Skip to content

Commit

Permalink
bringing back case 6: int16=>int16
Browse files Browse the repository at this point in the history
  • Loading branch information
CPernet committed Feb 26, 2024
1 parent 48abce0 commit 9beee53
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions matlab/readECAT7.m
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,7 @@
warning('old matlab version, using int16 to read')
data{m} = int16(fread(fid, [sz(1)*sz(2) sz(3)],'int16'));
else
% REALLY MAKE IT A UINT16
data{m} = fread(fid, [sz(1)*sz(2) sz(3)], 'uint16');
data{m} = fread(fid, [sz(1)*sz(2) sz(3)],'int16=>int16');
end
otherwise
warning('readECAT7: unrecognized data type');
Expand Down

3 comments on commit 9beee53

@bendhouseart
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bendhouseart needs to do the same for python, tagging himself.

@CPernet
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

of course, get negative photon count

@noahg-neuroimage
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Thanks for investigating this!

Please sign in to comment.