From 99973218fe9cf5cb5a07c0e30876696e026336ba Mon Sep 17 00:00:00 2001 From: Vedrana KRIVOKUCA Date: Wed, 8 Mar 2017 16:26:32 +0100 Subject: [PATCH] Modified MaximumCurvature solving bob.core.convert error --- bob/bio/vein/extractor/MaximumCurvature.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bob/bio/vein/extractor/MaximumCurvature.py b/bob/bio/vein/extractor/MaximumCurvature.py index e762716..662b44b 100644 --- a/bob/bio/vein/extractor/MaximumCurvature.py +++ b/bob/bio/vein/extractor/MaximumCurvature.py @@ -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) -- 2.21.0