Mercurial > hg > orthanc-stone
comparison Framework/Radiography/RadiographyScene.h @ 481:159a465e27bd am-touch-events
reworked RadiographyScene export to export to an Orthanc::Image too
author | am@osimis.io |
---|---|
date | Thu, 14 Feb 2019 16:23:59 +0100 |
parents | 3c28542229a3 |
children | 29fc066b6f65 |
comparison
equal
deleted
inserted
replaced
480:2f6ecb5037ea | 481:159a465e27bd |
---|---|
22 #pragma once | 22 #pragma once |
23 | 23 |
24 #include "RadiographyLayer.h" | 24 #include "RadiographyLayer.h" |
25 #include "../Toolbox/OrthancApiClient.h" | 25 #include "../Toolbox/OrthancApiClient.h" |
26 #include "Framework/StoneEnumerations.h" | 26 #include "Framework/StoneEnumerations.h" |
27 #include "Core/Images/Image.h" | |
27 | 28 |
28 namespace OrthancStone | 29 namespace OrthancStone |
29 { | 30 { |
30 struct MaskPoint; | 31 struct MaskPoint; |
31 class RadiographyDicomLayer; | 32 class RadiographyDicomLayer; |
201 double pixelSpacingY, | 202 double pixelSpacingY, |
202 bool invert, | 203 bool invert, |
203 ImageInterpolation interpolation, | 204 ImageInterpolation interpolation, |
204 bool usePam); | 205 bool usePam); |
205 | 206 |
206 // temporary version used by VSOL because we need to send the same request at another url | 207 Orthanc::Image* ExportToImage(double pixelSpacingX, |
207 void ExportToCreateDicomRequest(Json::Value& createDicomRequestContent, | 208 double pixelSpacingY, |
208 const Orthanc::DicomMap& dicom, | 209 ImageInterpolation interpolation) |
209 double pixelSpacingX, | 210 { |
210 double pixelSpacingY, | 211 ExportToImage(pixelSpacingX, pixelSpacingY, interpolation, false, 0); |
211 bool invert, | 212 } |
212 ImageInterpolation interpolation, | 213 |
213 bool usePam); | 214 Orthanc::Image* ExportToImage(double pixelSpacingX, |
215 double pixelSpacingY, | |
216 ImageInterpolation interpolation, | |
217 bool invert, | |
218 int64_t maxValue /* for inversion */); | |
214 }; | 219 }; |
215 } | 220 } |