Mercurial > hg > orthanc-stone
diff Framework/Toolbox/DicomFrameConverter.cpp @ 34:a865c7992a87
refactoring
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 19 Dec 2016 11:34:18 +0100 |
parents | 12987d11be33 |
children | 7207a407bcd8 |
line wrap: on
line diff
--- a/Framework/Toolbox/DicomFrameConverter.cpp Mon Dec 19 11:29:23 2016 +0100 +++ b/Framework/Toolbox/DicomFrameConverter.cpp Mon Dec 19 11:34:18 2016 +0100 @@ -79,14 +79,12 @@ Vector c, w; if (GeometryToolbox::ParseVector(c, dicom, OrthancPlugins::DICOM_TAG_WINDOW_CENTER) && - GeometryToolbox::ParseVector(w, dicom, OrthancPlugins::DICOM_TAG_WINDOW_WIDTH)) + GeometryToolbox::ParseVector(w, dicom, OrthancPlugins::DICOM_TAG_WINDOW_WIDTH) && + c.size() > 0 && + w.size() > 0) { - if (c.size() > 0 && - w.size() > 0) - { - defaultWindowCenter_ = static_cast<float>(c[0]); - defaultWindowWidth_ = static_cast<float>(w[0]); - } + defaultWindowCenter_ = static_cast<float>(c[0]); + defaultWindowWidth_ = static_cast<float>(w[0]); } OrthancPlugins::DicomDatasetReader reader(dicom);