Mercurial > hg > orthanc-stone
diff Framework/Volumes/DicomVolumeImageMPRSlicer.cpp @ 1297:6ab03e429f06 broker
integration mainline->broker
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sun, 23 Feb 2020 15:32:24 +0100 |
parents | 7ec8fea061b9 f037422f3a66 |
children | c38c89684d83 |
line wrap: on
line diff
--- a/Framework/Volumes/DicomVolumeImageMPRSlicer.cpp Tue Feb 04 15:24:03 2020 +0100 +++ b/Framework/Volumes/DicomVolumeImageMPRSlicer.cpp Sun Feb 23 15:32:24 2020 +0100 @@ -23,6 +23,8 @@ #include "../StoneException.h" +#include "../Toolbox/ImageToolbox.h" + #include <Core/OrthancException.h> //#include <Core/Images/PngWriter.h> #include <Core/Images/JpegWriter.h> @@ -79,6 +81,7 @@ { const DicomInstanceParameters& parameters = volume_.GetDicomParameters(); ImageBuffer3D::SliceReader reader(volume_.GetPixelData(), projection_, sliceIndex_); + texture.reset(dynamic_cast<TextureBaseSceneLayer*> (configurator->CreateTextureFromDicom(reader.GetAccessor(), parameters))); } @@ -102,7 +105,7 @@ { texture->SetAngle(atan2(dy, dx)); } - + Vector tmp = volume_.GetGeometry().GetVoxelDimensions(projection_); texture->SetPixelSpacing(tmp[0], tmp[1]);