X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FclitkDicomRTDoseIO.cxx;h=da66a01a066e1162db5575495cdbdb3b5a298698;hb=855ed0b05cfa18a1839baffdea01a49b024dbf2d;hp=02d953e3a74eebadba37025b7d510f8257691437;hpb=495aeaf7af1cb34b0a87edf7f8de51440e0c2236;p=clitk.git diff --git a/common/clitkDicomRTDoseIO.cxx b/common/clitkDicomRTDoseIO.cxx index 02d953e..da66a01 100644 --- a/common/clitkDicomRTDoseIO.cxx +++ b/common/clitkDicomRTDoseIO.cxx @@ -3,7 +3,7 @@ Authors belong to: - University of LYON http://www.universite-lyon.fr/ - - Léon Bérard cancer center http://oncora1.lyon.fnclcc.fr + - Léon Bérard cancer center http://www.centreleonberard.fr - CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr This software is distributed WITHOUT ANY WARRANTY; without even @@ -14,7 +14,7 @@ - BSD See included LICENSE.txt file - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html -======================================================================-====*/ +===========================================================================**/ // clitk include #include "clitkDicomRTDoseIO.h" @@ -22,6 +22,10 @@ // itk include #if GDCM_MAJOR_VERSION == 2 +// IMPLEMENTATION NOTE: +// The following has been done without the use of vtkGDCMImageReader which directly +// handle RTDOSE image. Another approach would have been to use gdcm::ImageReader +// which also properly recognize RTDOSE #include #include #else @@ -278,6 +282,9 @@ void clitk::DicomRTDoseIO::Read(void * buffer) #if GDCM_MAJOR_VERSION == 2 gdcm::Image &i = m_GdcmImageReader.GetImage(); i.GetBuffer((char*)buffer); + // WARNING: GetBuffer return the pixel values as stored on disk not the real pixel value + // we still need to multiply by m_DoseScaling + // An alternate solution would be to use vtkGDCMImageReader... #else float *img = (float*) buffer;