Commit 42265bef authored by Vedrana KRIVOKUCA's avatar Vedrana KRIVOKUCA

Modified RepeatedLineTracking solving bob.core.convert error

parent 66b6e50b
Pipeline #7695 passed with stages
in 12 minutes and 30 seconds
......@@ -55,9 +55,9 @@ class RepeatedLineTracking (Extractor):
# Sets the random seed before starting to process
numpy.random.seed(self.seed)
#Convert image to uint8
if finger_image.dtype != numpy.uint8:
finger_image = bob.core.convert(finger_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 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