Mercurial > hg > orthanc-stone
comparison OrthancStone/Sources/Toolbox/GeometryToolbox.h @ 2161:e65fe2e50fde dicom-sr tip
integration mainline->dicom-sr
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 27 Sep 2024 22:34:17 +0200 |
parents | 340bde744884 |
children |
comparison
equal
deleted
inserted
replaced
2152:f68f9a8d0d63 | 2161:e65fe2e50fde |
---|---|
115 const Vector& cosines); | 115 const Vector& cosines); |
116 | 116 |
117 bool ComputeNormal(Vector& normal, | 117 bool ComputeNormal(Vector& normal, |
118 const Orthanc::DicomMap& dicom); | 118 const Orthanc::DicomMap& dicom); |
119 | 119 |
120 bool IntersectTwoLines(double& x, | |
121 double& y, | |
122 double ax1, | |
123 double ay1, | |
124 double ax2, | |
125 double ay2, | |
126 double bx1, | |
127 double by1, | |
128 double bx2, | |
129 double by2); | |
130 | |
131 bool IntersectLineAndSegment(double& x, | |
132 double& y, | |
133 double lineX1, | |
134 double lineY1, | |
135 double lineX2, | |
136 double lineY2, | |
137 double segmentX1, | |
138 double segmentY1, | |
139 double segmentX2, | |
140 double segmentY2); | |
141 | |
120 inline float ComputeBilinearInterpolationUnitSquare(float x, | 142 inline float ComputeBilinearInterpolationUnitSquare(float x, |
121 float y, | 143 float y, |
122 float f00, // source(0, 0) | 144 float f00, // source(0, 0) |
123 float f01, // source(1, 0) | 145 float f01, // source(1, 0) |
124 float f10, // source(0, 1) | 146 float f10, // source(0, 1) |