From: Romulo Pinho Date: Fri, 20 Apr 2012 07:28:56 +0000 (+0200) Subject: removed bug in fusion thresholding X-Git-Tag: v1.3.0~49 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=9f6ca3c7210f16a577eb64cabb4a78a5e9f0d13e;p=clitk.git removed bug in fusion thresholding - with arbitrary values of window/level --- diff --git a/vv/vvSlicerManager.cxx b/vv/vvSlicerManager.cxx index 7cce9dd..a787370 100644 --- a/vv/vvSlicerManager.cxx +++ b/vv/vvSlicerManager.cxx @@ -1237,8 +1237,8 @@ void vvSlicerManager::SetColorMap(int colormap) double v[4]; // set color table transparency - double alpha_range=(double)mFusionThresOpacity/10; - double range_end = frange[0] + (double)mFusionThresOpacity*(frange[1] - frange[0])/100; + //double alpha_range=(double)mFusionThresOpacity/10; + double range_end = fusRange[0] + (double)mFusionThresOpacity*(fusRange[1] - fusRange[0])/100; double curr_value = fusRange[0]; int nvalues = fusLUT->GetNumberOfTableValues(); for (double i = 0; curr_value < range_end; i++) {