radmedres / clmedview

An attempt to create a cross-platform medical image viewer specialized in drawing "regions of interests".
GNU General Public License v3.0
3 stars 2 forks source link

BUG: Window width and level aren't working properly. #10

Closed minovations closed 9 years ago

minovations commented 9 years ago

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