Mercurial > hg > orthanc
comparison Core/DicomFormat/DicomIntegerPixelAccessor.cpp @ 537:2890721b0f57 laaw
comment
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 12 Aug 2013 10:56:35 +0200 |
parents | 7a966b440f19 |
children | b8f738685ad2 |
comparison
equal
deleted
inserted
replaced
534:31f1b7d5d7d2 | 537:2890721b0f57 |
---|---|
138 /*printf("%d %d %d %d %d %d %d %d\n", width_, height_, samplesPerPixel_, bitsAllocated, | 138 /*printf("%d %d %d %d %d %d %d %d\n", width_, height_, samplesPerPixel_, bitsAllocated, |
139 bitsStored, highBit, pixelRepresentation, numberOfFrames_);*/ | 139 bitsStored, highBit, pixelRepresentation, numberOfFrames_);*/ |
140 | 140 |
141 if (pixelRepresentation) | 141 if (pixelRepresentation) |
142 { | 142 { |
143 // Pixels are signed | |
143 mask_ = (1 << (bitsStored - 1)) - 1; | 144 mask_ = (1 << (bitsStored - 1)) - 1; |
144 signMask_ = (1 << (bitsStored - 1)); | 145 signMask_ = (1 << (bitsStored - 1)); |
145 } | 146 } |
146 else | 147 else |
147 { | 148 { |
149 // Pixels are unsigned | |
148 mask_ = (1 << bitsStored) - 1; | 150 mask_ = (1 << bitsStored) - 1; |
149 signMask_ = 0; | 151 signMask_ = 0; |
150 } | 152 } |
151 | 153 |
152 if (planarConfiguration_ == 0) | 154 if (planarConfiguration_ == 0) |