comparison OrthancServer/Internals/DicomImageDecoder.cpp @ 874:87791ebc1f50

download matlab images
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 11 Jun 2014 12:23:02 +0200
parents 3c0d0836f704
children e21d1a5f5934
comparison
equal deleted inserted replaced
873:fc34356283e1 874:87791ebc1f50
75 75
76 =========================================================================*/ 76 =========================================================================*/
77 77
78 78
79 79
80 #include "../PrecompiledHeadersServer.h"
81 #include "DicomImageDecoder.h"
82
80 #include "../../Core/OrthancException.h" 83 #include "../../Core/OrthancException.h"
81 #include "../../Core/ImageFormats/ImageProcessing.h" 84 #include "../../Core/ImageFormats/ImageProcessing.h"
82 #include "../../Core/ImageFormats/PngWriter.h" // TODO REMOVE THIS 85 #include "../../Core/ImageFormats/PngWriter.h" // TODO REMOVE THIS
83 #include "../../Core/DicomFormat/DicomIntegerPixelAccessor.h" 86 #include "../../Core/DicomFormat/DicomIntegerPixelAccessor.h"
84 #include "../ToDcmtkBridge.h" 87 #include "../ToDcmtkBridge.h"
321 << "bpp, " << info.GetChannelCount() << " channels, " 324 << "bpp, " << info.GetChannelCount() << " channels, "
322 << (info.IsSigned() ? "signed" : "unsigned") 325 << (info.IsSigned() ? "signed" : "unsigned")
323 << (info.IsPlanar() ? ", planar" : ", non-planar"); 326 << (info.IsPlanar() ? ", planar" : ", non-planar");
324 throw OrthancException(ErrorCode_NotImplemented); 327 throw OrthancException(ErrorCode_NotImplemented);
325 } 328 }
326 329
327 target.SetHeight(info.GetHeight()); 330 target.SetHeight(info.GetHeight());
328 target.SetWidth(info.GetWidth()); 331 target.SetWidth(info.GetWidth());
329 target.SetFormat(format); 332 target.SetFormat(format);
330 } 333 }
331 334