# HG changeset patch # User Benjamin Golinvaux # Date 1613124547 -3600 # Node ID 730604db88b83df355c142931e1006c42b8a0cca # Parent 4bedae500652c4b374ba5deb2dafc6eabafa00ab# Parent 9b69970fbdb55d9a71d96a7a7090aad74053d847 merge diff -r 4bedae500652 -r 730604db88b8 Applications/Resources/Colormaps/GenerateColormaps.py --- a/Applications/Resources/Colormaps/GenerateColormaps.py Fri Feb 12 10:41:17 2021 +0100 +++ b/Applications/Resources/Colormaps/GenerateColormaps.py Fri Feb 12 11:09:07 2021 +0100 @@ -37,9 +37,9 @@ colormap += map(lambda k: int(round(color[k] * 255)), range(3)) - colormap[0] = 0 - colormap[1] = 0 - colormap[2] = 0 + #colormap[0] = 0 + #colormap[1] = 0 + #colormap[2] = 0 return array.array('B', colormap).tostring() diff -r 4bedae500652 -r 730604db88b8 Applications/Resources/Colormaps/hot.lut Binary file Applications/Resources/Colormaps/hot.lut has changed diff -r 4bedae500652 -r 730604db88b8 Applications/Resources/Colormaps/jet.lut Binary file Applications/Resources/Colormaps/jet.lut has changed diff -r 4bedae500652 -r 730604db88b8 Applications/Samples/README.md --- a/Applications/Samples/README.md Fri Feb 12 10:41:17 2021 +0100 +++ b/Applications/Samples/README.md Fri Feb 12 11:09:07 2021 +0100 @@ -231,6 +231,7 @@ ./RtViewerSdl --orthanc http://localhost:8042 --ctseries a04ecf01-79b2fc33-58239f7e-ad9db983-28e81afa --rtdose 830a69ff-8e4b5ee3-b7f966c8-bccc20fb-d322dceb --rtstruct 54460695-ba3885ee-ddf61ac0-f028e31d-a6e474d9 ``` + RtViewer --------------- diff -r 4bedae500652 -r 730604db88b8 OrthancStone/Sources/Loaders/SeriesThumbnailsLoader.cpp --- a/OrthancStone/Sources/Loaders/SeriesThumbnailsLoader.cpp Fri Feb 12 10:41:17 2021 +0100 +++ b/OrthancStone/Sources/Loaders/SeriesThumbnailsLoader.cpp Fri Feb 12 11:09:07 2021 +0100 @@ -508,19 +508,16 @@ dynamic_cast(message.GetOrigin()); const ThumbnailInformation& info = dynamic_cast(origin.GetPayload()); - std::string tmp; Orthanc::DicomTransferSyntax transferSyntax; - if (!message.GetDicom().LookupTransferSyntax(tmp)) - { - + if (!message.GetDicom().LookupTransferSyntax(transferSyntax)) + { throw Orthanc::OrthancException(Orthanc::ErrorCode_BadFileFormat, "DICOM instance without a transfer syntax: " + origin.GetSopInstanceUid()); } - else if (!Orthanc::LookupTransferSyntax(transferSyntax, tmp) || - !ImageToolbox::IsDecodingSupported(transferSyntax)) + else if (!ImageToolbox::IsDecodingSupported(transferSyntax)) { LOG(INFO) << "Asking the DICOMweb server to transcode, " - << "as I don't support this transfer syntax: " << tmp; + << "as I don't support this transfer syntax: " << Orthanc::GetTransferSyntaxUid(transferSyntax); Schedule(ParseDicomFromWadoCommand::Create( origin.GetSource(), info.GetStudyInstanceUid(), info.GetSeriesInstanceUid(),