diff Framework/Radiography/RadiographyAlphaLayer.cpp @ 432:4eb96c6b4e96 am-vsol-upgrade

improved handling of MONOCHROME1, background and invertion
author am@osimis.io
date Mon, 03 Dec 2018 13:53:29 +0100
parents b85f635f1eb5
children 77e0eb83ff63
line wrap: on
line diff
--- a/Framework/Radiography/RadiographyAlphaLayer.cpp	Thu Nov 29 19:25:15 2018 +0100
+++ b/Framework/Radiography/RadiographyAlphaLayer.cpp	Mon Dec 03 13:53:29 2018 +0100
@@ -86,7 +86,7 @@
       float center, width;
       if (scene_.GetWindowing(center, width))
       {
-        value = center + width / 2.0f;  // TODO: shouldn't it be center alone ?
+        value = center + width / 2.0f;  // set it to the maximum pixel value of the image
       }
     }