Mercurial > hg > orthanc
comparison OrthancServer/FromDcmtkBridge.cpp @ 860:80c7e53a69b5 jpeg
bugfix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sat, 07 Jun 2014 10:32:15 +0200 |
parents | 610a9a1ed855 |
children | a546b05a43da |
comparison
equal
deleted
inserted
replaced
859:610a9a1ed855 | 860:80c7e53a69b5 |
---|---|
530 if (mode == ImageExtractionMode_UInt8) | 530 if (mode == ImageExtractionMode_UInt8) |
531 { | 531 { |
532 ImageBuffer tmp; | 532 ImageBuffer tmp; |
533 if (DicomImageDecoder::Decode(tmp, dataset, frame, PixelFormat_Grayscale8, DicomImageDecoder::Mode_Truncate)) | 533 if (DicomImageDecoder::Decode(tmp, dataset, frame, PixelFormat_Grayscale8, DicomImageDecoder::Mode_Truncate)) |
534 { | 534 { |
535 printf("%d %d %d\n", tmp.GetWidth(), tmp.GetHeight(), tmp.GetFormat()); | |
536 ImageAccessor accessor(tmp.GetAccessor()); | 535 ImageAccessor accessor(tmp.GetAccessor()); |
537 PngWriter writer; | 536 PngWriter writer; |
538 writer.WriteToMemory(result, accessor); | 537 writer.WriteToMemory(result, accessor); |
539 return; | 538 return; |
540 } | 539 } |