You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the function skimage.exposure.adjust_gamma with an uint8 image with a gain superior to 1, the integers can overflow and return false results. A value bigger than 255 should be set to 255.
Description
When using the function skimage.exposure.adjust_gamma with an uint8 image with a gain superior to 1, the integers can overflow and return false results. A value bigger than 255 should be set to 255.
Way to reproduce
This returns a value of
24
which is wrong.The problem is in the definition of the lut in the function
_adjust_gamma_u8
(l443):Before recasting as 'uint8' a max(255, lut) should probably be applied.
Version information
The text was updated successfully, but these errors were encountered: