wide_line_detector.py 445 Bytes
Newer Older
Pedro TOME's avatar
Pedro TOME committed
1 2 3
#!/usr/bin/env python
# vim: set fileencoding=utf-8 :

André Anjos's avatar
André Anjos committed
4
from ...extractors import WideLineDetector
Pedro TOME's avatar
Pedro TOME committed
5

6 7
# Radius of the circular neighbourhood region
RADIUS_NEIGHBOURHOOD_REGION = 5
8
NEIGHBOURHOOD_THRESHOLD = 1
9 10 11

#Sum of neigbourhood threshold
SUM_NEIGHBOURHOOD = 41
Pedro TOME's avatar
Pedro TOME committed
12 13 14
RESCALE = True


15 16 17 18 19 20
feature_extractor = WideLineDetector(
    radius=RADIUS_NEIGHBOURHOOD_REGION,
    threshold=NEIGHBOURHOOD_THRESHOLD,
    g=SUM_NEIGHBOURHOOD,
    rescale=RESCALE
    )