Mercurial > hg > orthanc-stone
diff Framework/Radiography/RadiographyMaskLayer.h @ 876:580dd82e13f5 am-dev
added GetApproximateMemoryUsage
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Wed, 03 Jul 2019 10:15:29 +0200 |
parents | 77e0eb83ff63 |
children | b537002f83a9 a5f2a6b04a31 |
line wrap: on
line diff
--- a/Framework/Radiography/RadiographyMaskLayer.h Wed Jul 03 10:12:09 2019 +0200 +++ b/Framework/Radiography/RadiographyMaskLayer.h Wed Jul 03 10:15:29 2019 +0200 @@ -49,6 +49,18 @@ { } + virtual size_t GetApproximateMemoryUsage() const + { + size_t size = 0; + if (mask_.get() != NULL) + { + size += mask_->GetPitch() * mask_->GetHeight(); + } + + return size; + } + + void SetCorners(const std::vector<Orthanc::ImageProcessing::ImagePoint>& corners); void SetCorner(const Orthanc::ImageProcessing::ImagePoint& corner, size_t index);