comparison OrthancServer/Internals/DicomImageDecoder.cpp @ 1206:f5b0207967bc

Fix issue #19 (YBR_FULL are decoded incorrectly)
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 03 Nov 2014 15:19:02 +0100
parents 851a55d183c9
children 6e7e5ed91c2d
comparison
equal deleted inserted replaced
1205:bb1ad2fbf914 1206:f5b0207967bc
316 if (!info.ExtractPixelFormat(format)) 316 if (!info.ExtractPixelFormat(format))
317 { 317 {
318 LOG(WARNING) << "Unsupported DICOM image: " << info.GetBitsStored() 318 LOG(WARNING) << "Unsupported DICOM image: " << info.GetBitsStored()
319 << "bpp, " << info.GetChannelCount() << " channels, " 319 << "bpp, " << info.GetChannelCount() << " channels, "
320 << (info.IsSigned() ? "signed" : "unsigned") 320 << (info.IsSigned() ? "signed" : "unsigned")
321 << (info.IsPlanar() ? ", planar" : ", non-planar"); 321 << (info.IsPlanar() ? ", planar, " : ", non-planar, ")
322 << EnumerationToString(info.GetPhotometricInterpretation())
323 << " photometric interpretation";
322 throw OrthancException(ErrorCode_NotImplemented); 324 throw OrthancException(ErrorCode_NotImplemented);
323 } 325 }
324 326
325 target.SetHeight(info.GetHeight()); 327 target.SetHeight(info.GetHeight());
326 target.SetWidth(info.GetWidth()); 328 target.SetWidth(info.GetWidth());