Mercurial > hg > orthanc-stone
comparison OrthancStone/Sources/Loaders/DicomVolumeLoader.cpp @ 2076:990f396484b1
fix rendering of RT-DOSE with negative GridFrameOffsetVector
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 11 Jul 2023 15:58:16 +0200 |
parents | 7053b8a0aaec |
children | 07964689cb0b |
comparison
equal
deleted
inserted
replaced
2075:d84bdcbd8bf1 | 2076:990f396484b1 |
---|---|
55 geometry.SetAxialGeometry(plane); | 55 geometry.SetAxialGeometry(plane); |
56 | 56 |
57 double spacing; | 57 double spacing; |
58 if (parameters.GetSopClassUid() == SopClassUid_RTDose) | 58 if (parameters.GetSopClassUid() == SopClassUid_RTDose) |
59 { | 59 { |
60 if (!parameters.ComputeRegularSpacing(spacing)) | 60 if (!parameters.ComputeFrameOffsetsSpacing(spacing)) |
61 { | 61 { |
62 LOG(WARNING) << "Unable to compute the spacing in a RT-DOSE instance"; | 62 LOG(WARNING) << "Unable to compute the spacing in a RT-DOSE instance"; |
63 spacing = frames.GetSpacingBetweenSlices(); | 63 spacing = frames.GetSpacingBetweenSlices(); |
64 } | 64 } |
65 } | 65 } |