Mercurial > hg > orthanc-stone
comparison Framework/Toolbox/GeometryToolbox.h @ 32:517c46f527cd
sync
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 19 Dec 2016 11:00:23 +0100 |
parents | 351ab0da0150 |
children | 7207a407bcd8 |
comparison
equal
deleted
inserted
replaced
31:9aace933cb64 | 32:517c46f527cd |
---|---|
32 | 32 |
33 #pragma once | 33 #pragma once |
34 | 34 |
35 #include <boost/numeric/ublas/vector.hpp> | 35 #include <boost/numeric/ublas/vector.hpp> |
36 | 36 |
37 #include "../../Resources/Orthanc/Plugins/Samples/Common/DicomDatasetReader.h" | |
37 | 38 |
38 namespace OrthancStone | 39 namespace OrthancStone |
39 { | 40 { |
40 typedef boost::numeric::ublas::vector<double> Vector; | 41 typedef boost::numeric::ublas::vector<double> Vector; |
41 | 42 |
42 namespace GeometryToolbox | 43 namespace GeometryToolbox |
43 { | 44 { |
44 void Print(const Vector& v); | 45 void Print(const Vector& v); |
45 | 46 |
46 bool ParseVector(Vector& target, | 47 bool ParseVector(Vector& target, |
47 const std::string& value); | 48 const std::string& s); |
49 | |
50 bool ParseVector(Vector& target, | |
51 const OrthancPlugins::IDicomDataset& dataset, | |
52 const OrthancPlugins::DicomPath& tag); | |
48 | 53 |
49 void AssignVector(Vector& v, | 54 void AssignVector(Vector& v, |
50 double v1, | 55 double v1, |
51 double v2); | 56 double v2); |
52 | 57 |
105 const double by, | 110 const double by, |
106 const double& xmin, // Coordinates of the rectangle (in) | 111 const double& xmin, // Coordinates of the rectangle (in) |
107 const double& ymin, | 112 const double& ymin, |
108 const double& xmax, | 113 const double& xmax, |
109 const double& ymax); | 114 const double& ymax); |
115 | |
116 void GetPixelSpacing(double& spacingX, | |
117 double& spacingY, | |
118 const OrthancPlugins::IDicomDataset& dicom); | |
110 }; | 119 }; |
111 } | 120 } |