Mercurial > hg > orthanc
changeset 537:2890721b0f57 laaw
comment
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 12 Aug 2013 10:56:35 +0200 |
parents | 31f1b7d5d7d2 |
children | eaca3d38b2aa |
files | Core/DicomFormat/DicomIntegerPixelAccessor.cpp |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/Core/DicomFormat/DicomIntegerPixelAccessor.cpp Fri Jul 19 17:17:36 2013 +0200 +++ b/Core/DicomFormat/DicomIntegerPixelAccessor.cpp Mon Aug 12 10:56:35 2013 +0200 @@ -140,11 +140,13 @@ if (pixelRepresentation) { + // Pixels are signed mask_ = (1 << (bitsStored - 1)) - 1; signMask_ = (1 << (bitsStored - 1)); } else { + // Pixels are unsigned mask_ = (1 << bitsStored) - 1; signMask_ = 0; }