Window width and level aren't working properly.
The minimum and maximum calculation to determine a window width and level is performed
(completely) wrong. This results in a range which is always 0-255.
FIX:
The functionality is rewritten. This causes several changes. Gui related operations are now
stored in lib-viewer, pixel related operation are stored in lib-pixeldata.
The fix causes the changes in:
include/lib-common.h
Removed Range struct
include/lib-pixeldata.h
Added WWWL struct
Added WWWL in pixeldata struct
Added function pixeldata_calculate_window_width_level
Removed function pixeldata_set_window_width_window_level
include/lib-viewer.h
Changed interface function viewer_set_window_level_for_serie
Window width and level aren't working properly. The minimum and maximum calculation to determine a window width and level is performed (completely) wrong. This results in a range which is always 0-255.
FIX: The functionality is rewritten. This causes several changes. Gui related operations are now stored in lib-viewer, pixel related operation are stored in lib-pixeldata.
The fix causes the changes in: include/lib-common.h
include/lib-pixeldata.h
include/lib-viewer.h
lib/lib-pixeldata/lib-pixeldata.c
lib/lib-viewer/lib-viewer.c