Commit a1c39a80 authored by André Anjos's avatar André Anjos 💬

Merge branch 'btp' into 'master'

Modified version of FingerCrop to solve the Histogram Equalization issue

Closes #12

See merge request !23
parents 7a916c8f 66b6e50b
Pipeline #7709 passed with stages
in 12 minutes and 57 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
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment