Mercurial > hg > orthanc-stone
comparison Framework/Toolbox/DicomFrameConverter.cpp @ 158:a053ca7fa5c6 wasm
LinearAlgebra toolbox
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 14 Feb 2018 08:58:31 +0100 |
parents | e2fe9352f240 |
children | fccffbf99ba1 |
comparison
equal
deleted
inserted
replaced
157:2309e8d86efe | 158:a053ca7fa5c6 |
---|---|
19 **/ | 19 **/ |
20 | 20 |
21 | 21 |
22 #include "DicomFrameConverter.h" | 22 #include "DicomFrameConverter.h" |
23 | 23 |
24 #include "GeometryToolbox.h" | 24 #include "LinearAlgebra.h" |
25 | 25 |
26 #include <Core/Images/Image.h> | 26 #include <Core/Images/Image.h> |
27 #include <Core/Images/ImageProcessing.h> | 27 #include <Core/Images/ImageProcessing.h> |
28 #include <Core/OrthancException.h> | 28 #include <Core/OrthancException.h> |
29 #include <Core/Toolbox.h> | 29 #include <Core/Toolbox.h> |
46 void DicomFrameConverter::ReadParameters(const Orthanc::DicomMap& dicom) | 46 void DicomFrameConverter::ReadParameters(const Orthanc::DicomMap& dicom) |
47 { | 47 { |
48 SetDefaultParameters(); | 48 SetDefaultParameters(); |
49 | 49 |
50 Vector c, w; | 50 Vector c, w; |
51 if (GeometryToolbox::ParseVector(c, dicom, Orthanc::DICOM_TAG_WINDOW_CENTER) && | 51 if (LinearAlgebra::ParseVector(c, dicom, Orthanc::DICOM_TAG_WINDOW_CENTER) && |
52 GeometryToolbox::ParseVector(w, dicom, Orthanc::DICOM_TAG_WINDOW_WIDTH) && | 52 LinearAlgebra::ParseVector(w, dicom, Orthanc::DICOM_TAG_WINDOW_WIDTH) && |
53 c.size() > 0 && | 53 c.size() > 0 && |
54 w.size() > 0) | 54 w.size() > 0) |
55 { | 55 { |
56 defaultWindowCenter_ = static_cast<float>(c[0]); | 56 defaultWindowCenter_ = static_cast<float>(c[0]); |
57 defaultWindowWidth_ = static_cast<float>(w[0]); | 57 defaultWindowWidth_ = static_cast<float>(w[0]); |