Mercurial > hg > orthanc-stone
diff Framework/Volumes/VolumeReslicer.cpp @ 783:cd13a062c9bd
DicomVolumeImage
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 27 May 2019 15:54:53 +0200 |
parents | fa5febe0f0c2 |
children | a7351ad54960 |
line wrap: on
line diff
--- a/Framework/Volumes/VolumeReslicer.cpp Mon May 27 14:21:04 2019 +0200 +++ b/Framework/Volumes/VolumeReslicer.cpp Mon May 27 15:54:53 2019 +0200 @@ -779,6 +779,7 @@ double voxelSize) { Reset(); + pixelSpacing_ = voxelSize; // Firstly, compute the intersection of the source volumetric // image with the reslicing plane. This leads to a polygon with 3 @@ -817,4 +818,17 @@ success_ = true; } + + + double VolumeReslicer::GetPixelSpacing() const + { + if (success_) + { + return pixelSpacing_; + } + else + { + throw Orthanc::OrthancException(Orthanc::ErrorCode_BadSequenceOfCalls); + } + } }