wide_line_detector.py 521 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
#!/usr/bin/env python
# vim: set fileencoding=utf-8 :
# Pedro Tome <Pedro.Tome@idiap.ch>

import bob.fingervein

# Parameters
RADIUS_NEIGHBOURHOOD_REGION = 5 # Radius of the circular neighbourhood region
NEIGHBOURHOOD_THRESHOLD = 1 
SUM_NEIGHBOURHOOD = 41 		#Sum of neigbourhood threshold
RESCALE = True

#Define feature extractor
feature_extractor = bob.fingervein.features.WideLineDetector(
	radius = RADIUS_NEIGHBOURHOOD_REGION,
      threshold = NEIGHBOURHOOD_THRESHOLD,
	g = SUM_NEIGHBOURHOOD,
	rescale = RESCALE
)