+#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;
+