Mercurial > hg > orthanc-stone
diff OrthancStone/Sources/Loaders/OrthancMultiframeVolumeLoader.h @ 1757:28979b77ce90
Suppressed one pass on the dose distribution computation
author | bgo@SHARKNADO.localdomain |
---|---|
date | Mon, 26 Apr 2021 17:37:54 +0200 |
parents | 9ac2a65d4172 |
children | 3889ae96d2e9 |
line wrap: on
line diff
--- a/OrthancStone/Sources/Loaders/OrthancMultiframeVolumeLoader.h Mon Apr 26 12:05:40 2021 +0200 +++ b/OrthancStone/Sources/Loaders/OrthancMultiframeVolumeLoader.h Mon Apr 26 17:37:54 2021 +0200 @@ -41,6 +41,12 @@ class LoadTransferSyntax; class LoadUncompressedPixelData; + struct PixelCount + { + uint64_t count_; + PixelCount() { count_ = 0; } + }; + boost::shared_ptr<DicomVolumeImage> volume_; std::string instanceId_; std::string transferSyntaxUid_; @@ -81,11 +87,11 @@ /** Service method for CopyPixelDataAndComputeMinMax*/ template <typename T> void CopyPixelDataAndComputeDistribution(const std::string& pixelData, - std::map<T, uint64_t>& distribution); + std::map<T, PixelCount>& distribution); /** Service method for CopyPixelDataAndComputeMinMax*/ template <typename T> - void ComputeMinMaxWithOutlierRejection(const std::map<T, uint64_t>& distribution); + void ComputeMinMaxWithOutlierRejection(const std::map<T, PixelCount>& distribution); void SetUncompressedPixelData(const std::string& pixelData);