Mercurial > hg > orthanc
comparison OrthancServer/ParsedDicomFile.cpp @ 1015:f009f7c75069
fix integration tests
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 10 Jul 2014 11:24:25 +0200 |
parents | af014624dac1 |
children | 564e39d6df13 |
comparison
equal
deleted
inserted
replaced
1014:40e5255e7dc5 | 1015:f009f7c75069 |
---|---|
1170 bool ok = false; | 1170 bool ok = false; |
1171 | 1171 |
1172 switch (mode) | 1172 switch (mode) |
1173 { | 1173 { |
1174 case ImageExtractionMode_UInt8: | 1174 case ImageExtractionMode_UInt8: |
1175 ok = DicomImageDecoder::DecodeAndTruncate(result, dataset, frame, PixelFormat_Grayscale8); | 1175 ok = DicomImageDecoder::DecodeAndTruncate(result, dataset, frame, PixelFormat_Grayscale8, false); |
1176 break; | 1176 break; |
1177 | 1177 |
1178 case ImageExtractionMode_UInt16: | 1178 case ImageExtractionMode_UInt16: |
1179 ok = DicomImageDecoder::DecodeAndTruncate(result, dataset, frame, PixelFormat_Grayscale16); | 1179 ok = DicomImageDecoder::DecodeAndTruncate(result, dataset, frame, PixelFormat_Grayscale16, false); |
1180 break; | 1180 break; |
1181 | 1181 |
1182 case ImageExtractionMode_Int16: | 1182 case ImageExtractionMode_Int16: |
1183 ok = DicomImageDecoder::DecodeAndTruncate(result, dataset, frame, PixelFormat_SignedGrayscale16); | 1183 ok = DicomImageDecoder::DecodeAndTruncate(result, dataset, frame, PixelFormat_SignedGrayscale16, false); |
1184 break; | 1184 break; |
1185 | 1185 |
1186 case ImageExtractionMode_Preview: | 1186 case ImageExtractionMode_Preview: |
1187 ok = DicomImageDecoder::DecodePreview(result, dataset, frame); | 1187 ok = DicomImageDecoder::DecodePreview(result, dataset, frame); |
1188 break; | 1188 break; |