comparison 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
comparison
equal deleted inserted replaced
431:26b90b110719 432:4eb96c6b4e96
84 if (useWindowing_) 84 if (useWindowing_)
85 { 85 {
86 float center, width; 86 float center, width;
87 if (scene_.GetWindowing(center, width)) 87 if (scene_.GetWindowing(center, width))
88 { 88 {
89 value = center + width / 2.0f; // TODO: shouldn't it be center alone ? 89 value = center + width / 2.0f; // set it to the maximum pixel value of the image
90 } 90 }
91 } 91 }
92 92
93 for (unsigned int y = 0; y < height; y++) 93 for (unsigned int y = 0; y < height; y++)
94 { 94 {