]> Creatis software - clitk.git/commitdiff
correctly reading contour colours for GDCM 2.x
authorRomulo Pinho <romulo.pinho@lyon.unicancer.fr>
Mon, 5 Nov 2012 16:42:12 +0000 (17:42 +0100)
committerRomulo Pinho <romulo.pinho@lyon.unicancer.fr>
Mon, 5 Nov 2012 16:42:12 +0000 (17:42 +0100)
vv/vvMeshReader.cxx

index 1da14a15b4e6eabd5f9eed4e1d307917b9b05273..040ba50142526d6ae2f5939949b8fb3e69626162 100644 (file)
@@ -162,9 +162,9 @@ std::vector<vvMesh::Pointer> vvMeshReader::readSelectedContours()
       gdcm::Attribute<0x3006,0x2a> trgb;
       trgb.SetFromDataSet(ds_rois);
       vvMesh::Pointer current_roi=vvMesh::New();
-      current_roi->r = trgb[0] / 255;
-      current_roi->g = trgb[1] / 255;
-      current_roi->b = trgb[2] / 255;
+      current_roi->r = trgb[0] / 255.0;
+      current_roi->g = trgb[1] / 255.0;
+      current_roi->b = trgb[2] / 255.0;
 
       gdcm::Attribute<0x3006,0x26> tstructure_name;
       tstructure_name.SetFromDataSet(ds_roi_info);