Mercurial > hg > orthanc
comparison Core/DicomFormat/DicomIntegerPixelAccessor.cpp @ 369:4632a044746e
simplification of the code
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 19 Feb 2013 12:09:03 +0100 |
parents | 80011cd589e6 |
children | bdd72233b105 |
comparison
equal
deleted
inserted
replaced
368:80011cd589e6 | 369:4632a044746e |
---|---|
119 { | 119 { |
120 // Not available, as the accessor internally uses int32_t values | 120 // Not available, as the accessor internally uses int32_t values |
121 throw OrthancException(ErrorCode_NotImplemented); | 121 throw OrthancException(ErrorCode_NotImplemented); |
122 } | 122 } |
123 | 123 |
124 if (samplesPerPixel_ != 1 && | 124 if (samplesPerPixel_ == 0) |
125 samplesPerPixel_ != 3) | |
126 { | 125 { |
127 throw OrthancException(ErrorCode_NotImplemented); | 126 throw OrthancException(ErrorCode_NotImplemented); |
128 } | 127 } |
129 | 128 |
130 bytesPerPixel_ = bitsAllocated / 8; | 129 bytesPerPixel_ = bitsAllocated / 8; |