comparison OrthancServer/FromDcmtkBridge.cpp @ 465:7a966b440f19

signed images to PNG
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 12 Jul 2013 11:15:27 +0200
parents 5987dd8e0776
children b22312081388 08eca5d86aad
comparison
equal deleted inserted replaced
464:5987dd8e0776 465:7a966b440f19
1309 case ImageExtractionMode_UInt16: 1309 case ImageExtractionMode_UInt16:
1310 supported = true; 1310 supported = true;
1311 format = PixelFormat_Grayscale16; 1311 format = PixelFormat_Grayscale16;
1312 break; 1312 break;
1313 1313
1314 case ImageExtractionMode_Int16:
1315 supported = true;
1316 format = PixelFormat_SignedGrayscale16;
1317 break;
1318
1314 default: 1319 default:
1315 supported = false; 1320 supported = false;
1316 break; 1321 break;
1317 } 1322 }
1318 } 1323 }
1358 ExtractPngImageTruncate<uint8_t>(result, *accessor, format); 1363 ExtractPngImageTruncate<uint8_t>(result, *accessor, format);
1359 break; 1364 break;
1360 1365
1361 case ImageExtractionMode_UInt16: 1366 case ImageExtractionMode_UInt16:
1362 ExtractPngImageTruncate<uint16_t>(result, *accessor, format); 1367 ExtractPngImageTruncate<uint16_t>(result, *accessor, format);
1368 break;
1369
1370 case ImageExtractionMode_Int16:
1371 ExtractPngImageTruncate<int16_t>(result, *accessor, format);
1363 break; 1372 break;
1364 1373
1365 default: 1374 default:
1366 throw OrthancException(ErrorCode_NotImplemented); 1375 throw OrthancException(ErrorCode_NotImplemented);
1367 } 1376 }