finger_crop_None_CircGabor.py 847 Bytes
Newer Older
Pedro TOME's avatar
Pedro TOME committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/env python
# vim: set fileencoding=utf-8 :
# Pedro Tome <Pedro.Tome@idiap.ch>

import bob.fingervein

# Contour localization mask 
CONTOUR_MASK_HEIGHT = 4 # Height of the mask
CONTOUR_MASK_WIDTH = 40 # Width of the mask

PADDING_OFFSET = 5
PADDING_THRESHOLD = 0.2 #Threshold for padding black zones

PREPROCESSING = None
FINGERCONTOUR = 'leemaskMod' # Options: 'leemaskMatlab', 'konomask' 
POSTPROCESSING = 'CircGabor' # Options: None, 'HE', 'HFE', 'CircGabor'

GPU_ACCELERATION = False

# define the preprocessor
preprocessor = bob.fingervein.preprocessing.FingerCrop(
	mask_h =CONTOUR_MASK_HEIGHT,
  	mask_w =CONTOUR_MASK_WIDTH,
	padding_offset = PADDING_OFFSET,
	padding_threshold = PADDING_THRESHOLD,
	preprocessing = PREPROCESSING,
    fingercontour = FINGERCONTOUR,
    postprocessing = POSTPROCESSING,
	gpu = GPU_ACCELERATION
)