Skip to content
Snippets Groups Projects
Commit 989ad53c authored by Vedrana KRIVOKUCA's avatar Vedrana KRIVOKUCA
Browse files

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

parent a5b20d8d
No related branches found
No related tags found
1 merge request!25Issue #13
Pipeline #
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment