Mercurial > hg > orthanc-stone
comparison OrthancStone/Sources/Loaders/DicomVolumeLoader.cpp @ 2078:fdb012c86a75 deep-learning
integration mainline->deep-learning
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 12 Jul 2023 21:21:11 +0200 |
parents | 07964689cb0b |
children | c23eef785569 |
comparison
equal
deleted
inserted
replaced
2070:82dbe2729b69 | 2078:fdb012c86a75 |
---|---|
1 /** | 1 /** |
2 * Stone of Orthanc | 2 * Stone of Orthanc |
3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics | 3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics |
4 * Department, University Hospital of Liege, Belgium | 4 * Department, University Hospital of Liege, Belgium |
5 * Copyright (C) 2017-2022 Osimis S.A., Belgium | 5 * Copyright (C) 2017-2023 Osimis S.A., Belgium |
6 * Copyright (C) 2021-2022 Sebastien Jodogne, ICTEAM UCLouvain, Belgium | 6 * Copyright (C) 2021-2023 Sebastien Jodogne, ICTEAM UCLouvain, Belgium |
7 * | 7 * |
8 * This program is free software: you can redistribute it and/or | 8 * This program is free software: you can redistribute it and/or |
9 * modify it under the terms of the GNU Lesser General Public License | 9 * modify it under the terms of the GNU Lesser General Public License |
10 * as published by the Free Software Foundation, either version 3 of | 10 * as published by the Free Software Foundation, either version 3 of |
11 * the License, or (at your option) any later version. | 11 * the License, or (at your option) any later version. |
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 } |