Commit 66b6e50b authored by Vedrana KRIVOKUCA's avatar Vedrana KRIVOKUCA

Modified FingerCrop solving Histogram Equalization

parent 7a916c8f
Pipeline #7692 passed with stages
in 13 minutes and 24 seconds
......@@ -454,8 +454,9 @@ class FingerCrop (Preprocessor):
from skimage.exposure import equalize_hist
from skimage.exposure import rescale_intensity
retval = equalize_hist(image, mask=mask)
retval = rescale_intensity(equalize_hist(image, mask=mask), out_range = (0, 255))
# make the parts outside the mask totally black
retval[~mask] = 0
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment