# HG changeset patch # User Alain Mazy # Date 1548106884 -3600 # Node ID e3a6e3bf5c7c55b95402f184aa3a29f4a22b16ed # Parent 50229f6eb4cde6937b794cfa15cfcd2b6d886772 changed the windowing tracker sensitivity. It was not usable with 16bits full range diff -r 50229f6eb4cd -r e3a6e3bf5c7c Framework/Radiography/RadiographyWindowingTracker.cpp --- a/Framework/Radiography/RadiographyWindowingTracker.cpp Fri Jan 18 11:52:10 2019 +0100 +++ b/Framework/Radiography/RadiographyWindowingTracker.cpp Mon Jan 21 22:41:24 2019 +0100 @@ -137,21 +137,9 @@ assert(minValue <= maxValue); - float tmp; - float delta = (maxValue - minValue); - if (delta <= 1) - { - tmp = 0; - } - else - { - // NB: Visual Studio 2008 does not provide "log2f()", so we - // implement it by ourselves - tmp = logf(delta) / logf(2.0f); - } + strength_ = delta / 1000.0f; // 1px move will change the ww/wc by 0.1% - strength_ = tmp - 7; if (strength_ < 1) { strength_ = 1;