Mercurial > hg > orthanc-stone
comparison Framework/Toolbox/DicomStructureSet.cpp @ 790:9f68155c75b0
speeding up LinearAlgebra::ParseVector()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 28 May 2019 08:29:01 +0200 |
parents | 5aa728500586 |
children | 4fe4b221a31f |
comparison
equal
deleted
inserted
replaced
786:5aa728500586 | 790:9f68155c75b0 |
---|---|
29 #include <Plugins/Samples/Common/FullOrthancDataset.h> | 29 #include <Plugins/Samples/Common/FullOrthancDataset.h> |
30 #include <Plugins/Samples/Common/DicomDatasetReader.h> | 30 #include <Plugins/Samples/Common/DicomDatasetReader.h> |
31 | 31 |
32 #include <limits> | 32 #include <limits> |
33 #include <stdio.h> | 33 #include <stdio.h> |
34 #include <boost/lexical_cast.hpp> | |
35 #include <boost/geometry.hpp> | 34 #include <boost/geometry.hpp> |
36 #include <boost/geometry/geometries/point_xy.hpp> | 35 #include <boost/geometry/geometries/point_xy.hpp> |
37 #include <boost/geometry/geometries/polygon.hpp> | 36 #include <boost/geometry/geometries/polygon.hpp> |
38 #include <boost/geometry/multi/geometries/multi_polygon.hpp> | 37 #include <boost/geometry/multi/geometries/multi_polygon.hpp> |
39 | 38 |
420 << "\" containing " << countSlices << " slices (color: " | 419 << "\" containing " << countSlices << " slices (color: " |
421 << static_cast<int>(structures_[i].red_) << "," | 420 << static_cast<int>(structures_[i].red_) << "," |
422 << static_cast<int>(structures_[i].green_) << "," | 421 << static_cast<int>(structures_[i].green_) << "," |
423 << static_cast<int>(structures_[i].blue_) << ")"; | 422 << static_cast<int>(structures_[i].blue_) << ")"; |
424 | 423 |
425 | |
426 // These temporary variables avoid allocating many vectors in the loop below | 424 // These temporary variables avoid allocating many vectors in the loop below |
427 OrthancPlugins::DicomPath countPointsPath(DICOM_TAG_ROI_CONTOUR_SEQUENCE, i, | 425 OrthancPlugins::DicomPath countPointsPath(DICOM_TAG_ROI_CONTOUR_SEQUENCE, i, |
428 DICOM_TAG_CONTOUR_SEQUENCE, 0, | 426 DICOM_TAG_CONTOUR_SEQUENCE, 0, |
429 DICOM_TAG_NUMBER_OF_CONTOUR_POINTS); | 427 DICOM_TAG_NUMBER_OF_CONTOUR_POINTS); |
430 | 428 |