From: Romulo Pinho Date: Mon, 5 Nov 2012 16:42:12 +0000 (+0100) Subject: correctly reading contour colours for GDCM 2.x X-Git-Tag: v1.4.0~277^2~1 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=4dd53575658504999d50150967132ff6e173bc24;p=clitk.git correctly reading contour colours for GDCM 2.x --- diff --git a/vv/vvMeshReader.cxx b/vv/vvMeshReader.cxx index 1da14a1..040ba50 100644 --- a/vv/vvMeshReader.cxx +++ b/vv/vvMeshReader.cxx @@ -162,9 +162,9 @@ std::vector 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);