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
- BSD See included LICENSE.txt file
- CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
-======================================================================-====*/
+===========================================================================**/
// clitk include
#include "clitkDicomRTDoseIO.h"
// 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 <gdcmReader.h>
#include <gdcmAttribute.h>
#else
while (1) {
int len;
gfov = (double*) realloc (gfov, (gfov_len + 1) * sizeof(double));
- rc = sscanf (gfov_str, "%g%n", &gfov[gfov_len], &len);
+ rc = sscanf (gfov_str, "%lf%n", &gfov[gfov_len], &len);
if (rc != 1) {
break;
}
#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;