Commit 989ad53c authored by Vedrana KRIVOKUCA's avatar Vedrana KRIVOKUCA

Modified MaximumCurvature.py and RepeatedLineTracking.py to solve Issue #13

parent a5b20d8d
Pipeline #7725 passed with stages
in 15 minutes and 3 seconds
......@@ -36,11 +36,6 @@ class MaximumCurvature (Extractor):
"""Computes and returns the Maximum Curvature features for the given input
fingervein image"""
# 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)
finger_mask[mask == True] = 1
......
......@@ -55,10 +55,6 @@ class RepeatedLineTracking (Extractor):
# Sets the random seed before starting to process
numpy.random.seed(self.seed)
# Convert image to uint8 - NOT NECESSARY AFTER MODIFICATION TO FingerCrop, which rescales intensities of histogram equalized preprocessed images to range (0, 255)
#if finger_image.dtype != numpy.uint8:
# finger_image = bob.core.convert(finger_image,numpy.uint8,(0,255),(0,1))
finger_mask = numpy.zeros(mask.shape)
finger_mask[mask == True] = 1
......
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