annotate OrthancStone/Sources/Toolbox/DicomStructuredReport.h @ 2123:538c7b7c6e46 deep-learning

integration mainline->deep-learning
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 22 Mar 2024 16:11:42 +0100
parents c23eef785569
children 48a7f05c3bd5 16c01cc201e7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2085
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1 /**
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
2 * Stone of Orthanc
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
4 * Department, University Hospital of Liege, Belgium
2114
c23eef785569 update year to 2024
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2099
diff changeset
5 * Copyright (C) 2017-2024 Osimis S.A., Belgium
c23eef785569 update year to 2024
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2099
diff changeset
6 * Copyright (C) 2021-2024 Sebastien Jodogne, ICTEAM UCLouvain, Belgium
2085
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
7 *
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
8 * This program is free software: you can redistribute it and/or
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
9 * modify it under the terms of the GNU Lesser General Public License
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
10 * as published by the Free Software Foundation, either version 3 of
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
11 * the License, or (at your option) any later version.
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
12 *
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
13 * This program is distributed in the hope that it will be useful, but
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
16 * Lesser General Public License for more details.
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
17 *
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
18 * You should have received a copy of the GNU Lesser General Public
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
19 * License along with this program. If not, see
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
20 * <http://www.gnu.org/licenses/>.
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
21 **/
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
22
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
23
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
24 #pragma once
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
25
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
26 #if !defined(ORTHANC_ENABLE_DCMTK)
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
27 # error The macro ORTHANC_ENABLE_DCMTK must be defined
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
28 #endif
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
29
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
30 #if ORTHANC_ENABLE_DCMTK != 1
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
31 # error Support for DCMTK must be enabled
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
32 #endif
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
33
2099
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
34 #include "../Scene2D/ScenePoint2D.h"
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
35
2085
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
36 #include <DicomParsing/ParsedDicomFile.h>
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
37
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
38 #include <dcmtk/dcmdata/dcitem.h>
2099
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
39 #include <deque>
2087
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2085
diff changeset
40 #include <list>
2094
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
41 #include <set>
2085
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
42
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
43 namespace OrthancStone
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
44 {
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
45 class DicomStructuredReport : public boost::noncopyable
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
46 {
2099
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
47 public:
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
48 enum StructureType
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
49 {
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
50 StructureType_Point,
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
51 StructureType_Polyline
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
52 };
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
53
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
54 class Structure : public boost::noncopyable
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
55 {
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
56 private:
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
57 std::string sopInstanceUid_;
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
58 bool hasFrameNumber_;
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
59 unsigned int frameNumber_;
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
60 bool hasProbabilityOfCancer_;
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
61 float probabilityOfCancer_;
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
62
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
63 protected:
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
64 void Copy(const Structure& other);
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
65
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
66 public:
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
67 Structure(const std::string& sopInstanceUid);
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
68
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
69 virtual ~Structure()
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
70 {
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
71 }
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
72
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
73 virtual Structure* Clone() const = 0;
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
74
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
75 virtual StructureType GetType() const = 0;
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
76
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
77 const std::string& GetSopInstanceUid() const
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
78 {
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
79 return sopInstanceUid_;
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
80 }
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
81
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
82 void SetFrameNumber(unsigned int frame);
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
83
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
84 void SetProbabilityOfCancer(float probability);
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
85
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
86 bool HasFrameNumber() const
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
87 {
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
88 return hasFrameNumber_;
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
89 }
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
90
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
91 bool HasProbabilityOfCancer() const
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
92 {
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
93 return hasProbabilityOfCancer_;
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
94 }
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
95
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
96 unsigned int GetFrameNumber() const;
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
97
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
98 float GetProbabilityOfCancer() const;
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
99 };
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
100
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
101
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
102 class Point : public Structure
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
103 {
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
104 private:
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
105 ScenePoint2D point_;
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
106
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
107 public:
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
108 Point(const std::string& sopInstanceUid,
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
109 double x,
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
110 double y);
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
111
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
112 virtual Structure* Clone() const ORTHANC_OVERRIDE;
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
113
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
114 virtual StructureType GetType() const ORTHANC_OVERRIDE
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
115 {
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
116 return StructureType_Point;
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
117 }
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
118
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
119 const ScenePoint2D& GetPoint() const
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
120 {
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
121 return point_;
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
122 }
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
123 };
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
124
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
125
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
126 class Polyline : public Structure
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
127 {
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
128 private:
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
129 std::vector<ScenePoint2D> points_;
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
130
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
131 public:
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
132 Polyline(const std::string& sopInstanceUid,
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
133 const float* points,
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
134 unsigned long pointsCount);
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
135
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
136 Polyline(const std::string& sopInstanceUid,
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
137 const std::vector<ScenePoint2D>& points);
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
138
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
139 virtual Structure* Clone() const ORTHANC_OVERRIDE;
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
140
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
141 virtual StructureType GetType() const ORTHANC_OVERRIDE
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
142 {
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
143 return StructureType_Polyline;
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
144 }
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
145
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
146 size_t GetSize() const
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
147 {
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
148 return points_.size();
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
149 }
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
150
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
151 const ScenePoint2D& GetPoint(size_t i) const;
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
152 };
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
153
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
154
2085
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
155 private:
2099
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
156 class ReferencedInstance
2085
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
157 {
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
158 private:
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
159 std::string studyInstanceUid_;
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
160 std::string seriesInstanceUid_;
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
161 std::string sopClassUid_;
2094
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
162 std::set<unsigned int> frames_;
2085
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
163
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
164 public:
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
165 ReferencedInstance(const std::string& studyInstanceUid,
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
166 const std::string& seriesInstanceUid,
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
167 const std::string& sopClassUid) :
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
168 studyInstanceUid_(studyInstanceUid),
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
169 seriesInstanceUid_(seriesInstanceUid),
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
170 sopClassUid_(sopClassUid)
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
171 {
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
172 }
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
173
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
174 const std::string& GetStudyInstanceUid() const
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
175 {
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
176 return studyInstanceUid_;
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
177 }
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
178
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
179 const std::string& GetSeriesInstanceUid() const
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
180 {
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
181 return seriesInstanceUid_;
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
182 }
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
183
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
184 const std::string& GetSopClassUid() const
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
185 {
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
186 return sopClassUid_;
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
187 }
2094
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
188
2099
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
189 void AddFrame(unsigned int frame)
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
190 {
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
191 frames_.insert(frame);
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
192 }
2094
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
193
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
194 const std::set<unsigned int>& GetFrames() const
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
195 {
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
196 return frames_;
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
197 }
2085
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
198 };
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
199
2094
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
200
2085
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
201 void AddStructure(const std::string& sopInstanceUid,
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
202 DcmItem& group,
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
203 bool hasFrameNumber,
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
204 unsigned int frameNumber,
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
205 bool hasProbabilityOfCancer,
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
206 float probabilityOfCancer);
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
207
2094
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
208 std::string studyInstanceUid_;
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
209 std::string seriesInstanceUid_;
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
210 std::string sopInstanceUid_;
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
211 std::map<std::string, ReferencedInstance*> instancesInformation_;
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
212 std::vector<std::string> orderedInstances_;
2099
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
213 std::deque<Structure*> structures_;
2085
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
214
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
215 public:
2094
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
216 class ReferencedFrame
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
217 {
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
218 private:
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
219 std::string studyInstanceUid_;
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
220 std::string seriesInstanceUid_;
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
221 std::string sopInstanceUid_;
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
222 std::string sopClassUid_;
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
223 unsigned int frameNumber_;
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
224
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
225 public:
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
226 ReferencedFrame(const std::string& studyInstanceUid,
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
227 const std::string& seriesInstanceUid,
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
228 const std::string& sopInstanceUid,
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
229 const std::string& sopClassUid,
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
230 unsigned int frameNumber) :
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
231 studyInstanceUid_(studyInstanceUid),
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
232 seriesInstanceUid_(seriesInstanceUid),
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
233 sopInstanceUid_(sopInstanceUid),
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
234 sopClassUid_(sopClassUid),
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
235 frameNumber_(frameNumber)
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
236 {
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
237 }
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
238
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
239 const std::string& GetStudyInstanceUid() const
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
240 {
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
241 return studyInstanceUid_;
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
242 }
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
243
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
244 const std::string& GetSeriesInstanceUid() const
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
245 {
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
246 return seriesInstanceUid_;
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
247 }
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
248
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
249 const std::string& GetSopInstanceUid() const
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
250 {
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
251 return sopInstanceUid_;
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
252 }
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
253
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
254 const std::string& GetSopClassUid() const
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
255 {
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
256 return sopClassUid_;
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
257 }
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
258
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
259 unsigned int GetFrameNumber() const
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
260 {
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
261 return frameNumber_;
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
262 }
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
263 };
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
264
2085
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
265 DicomStructuredReport(Orthanc::ParsedDicomFile& dicom);
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
266
2099
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
267 DicomStructuredReport(const DicomStructuredReport& other); // Copy constructor
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
268
2085
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
269 ~DicomStructuredReport();
2094
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
270
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
271 const std::string& GetStudyInstanceUid() const
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
272 {
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
273 return studyInstanceUid_;
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
274 }
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
275
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
276 const std::string& GetSeriesInstanceUid() const
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
277 {
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
278 return seriesInstanceUid_;
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
279 }
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
280
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
281 const std::string& GetSopInstanceUid() const
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
282 {
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
283 return sopInstanceUid_;
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
284 }
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
285
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
286 size_t GetReferencedInstancesCount() const
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
287 {
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
288 return orderedInstances_.size();
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
289 }
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
290
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
291 void GetReferencedInstance(std::string& studyInstanceUid,
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
292 std::string& seriesInstanceUid,
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
293 std::string& sopInstanceUid,
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
294 std::string& sopClassUid,
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
295 size_t i) const;
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
296
7c3d65166c26 partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2087
diff changeset
297 void ExportReferencedFrames(std::list<ReferencedFrame>& frames) const;
2099
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
298
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
299 size_t GetStructuresCount() const
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
300 {
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
301 return structures_.size();
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
302 }
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
303
67db5afb305d partial integration dicom-sr->mainline
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 2094
diff changeset
304 const Structure& GetStructure(size_t index) const;
2085
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
305 };
554bc96e7508 added DicomStructuredReport
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
306 }