Mercurial > hg > orthanc
diff OrthancServer/FromDcmtkBridge.cpp @ 861:a546b05a43da jpeg
fix PngWriter
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sat, 07 Jun 2014 10:49:00 +0200 |
parents | 80c7e53a69b5 |
children | 3c0d0836f704 |
line wrap: on
line diff
--- a/OrthancServer/FromDcmtkBridge.cpp Sat Jun 07 10:32:15 2014 +0200 +++ b/OrthancServer/FromDcmtkBridge.cpp Sat Jun 07 10:49:00 2014 +0200 @@ -529,14 +529,17 @@ // TODO CONTINUE THIS if (mode == ImageExtractionMode_UInt8) { + printf(">>>>>>>>\n"); ImageBuffer tmp; if (DicomImageDecoder::Decode(tmp, dataset, frame, PixelFormat_Grayscale8, DicomImageDecoder::Mode_Truncate)) { ImageAccessor accessor(tmp.GetAccessor()); PngWriter writer; writer.WriteToMemory(result, accessor); + printf("<<<<<<<< OK\n"); return; } + printf("<<<<<<<< FAILURE\n"); } // See also: http://support.dcmtk.org/wiki/dcmtk/howto/accessing-compressed-data