From 4dd53575658504999d50150967132ff6e173bc24 Mon Sep 17 00:00:00 2001 From: Romulo Pinho Date: Mon, 5 Nov 2012 17:42:12 +0100 Subject: [PATCH] correctly reading contour colours for GDCM 2.x --- vv/vvMeshReader.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); -- 2.47.1