]> Creatis software - clitk.git/commitdiff
removed bug in fusion thresholding
authorRomulo Pinho <romulo.pinho@lyon.unicancer.fr>
Fri, 20 Apr 2012 07:28:56 +0000 (09:28 +0200)
committerRomulo Pinho <romulo.pinho@lyon.unicancer.fr>
Fri, 20 Apr 2012 07:28:56 +0000 (09:28 +0200)
- with arbitrary values of window/level

vv/vvSlicerManager.cxx

index 7cce9dd77f3b0cc5a9c2529d77a94a5f1a386d75..a787370e70629b8d1ec3814ff02b8d9970fad6bc 100644 (file)
@@ -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++) {