Commit 99973218 authored by Vedrana KRIVOKUCA's avatar Vedrana KRIVOKUCA

Modified MaximumCurvature solving bob.core.convert error

parent 42265bef
Pipeline #7697 passed with stages
in 12 minutes and 26 seconds
......@@ -36,8 +36,9 @@ class MaximumCurvature (Extractor):
"""Computes and returns the Maximum Curvature features for the given input
fingervein image"""
if image.dtype != numpy.uint8:
image = bob.core.convert(image,numpy.uint8,(0,255),(0,1))
# Convert image to uint8 - NOT NECESSARY AFTER MODIFICATION TO FingerCrop, which rescales intensities of histogram equalized preprocessed images to range (0, 255)
#if image.dtype != numpy.uint8:
# image = bob.core.convert(image,numpy.uint8,(0,255),(0,1))
#No es necesario pasarlo a uint8, en matlab lo dejan en float64. Comprobar si varian los resultados en vera database y ajustar.
finger_mask = numpy.zeros(mask.shape)
......
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