Skip to content

Issue #13

Vedrana KRIVOKUCA requested to merge Issue#13 into master

Wrote 3 new functions in test.py:

test_max_curvature_HE
test_repeated_line_tracking_HE
test_wide_line_detector_HE

to test the MC, RLT and WLD extractors when the Histogram Equalization postprocessing option is applied to the FingerCrop preprocessor. The tests test_max_curvature_HE and test_repeated_line_tracking_HE fail, as expected, due to the reasons outlined in Issue #13 (closed):

bob.bio.vein.tests.test.test_finger_crop ... ok
bob.bio.vein.tests.test.test_max_curvature ... ok
bob.bio.vein.tests.test.test_max_curvature_HE ... ERROR
bob.bio.vein.tests.test.test_repeated_line_tracking ... ok
bob.bio.vein.tests.test.test_repeated_line_tracking_HE ... ERROR
bob.bio.vein.tests.test.test_wide_line_detector ... ok
bob.bio.vein.tests.test.test_wide_line_detector_HE ... ok
bob.bio.vein.tests.test.test_miura_match ... ok
bob.bio.vein.tests.test.test_assert_points ... ok
bob.bio.vein.tests.test.test_fix_points ... ok
bob.bio.vein.tests.test.test_poly_to_mask ... ok
bob.bio.vein.tests.test.test_mask_to_image ... ok
bob.bio.vein.tests.test.test_jaccard_index ... ok
bob.bio.vein.tests.test.test_intersection_ratio ... ok
bob.bio.vein.tests.test.test_correlation ... ok
bob.bio.vein.tests.test_databases.test_utfvp ... ok
bob.bio.vein.tests.test_databases.test_verafinger ... ok

======================================================================
ERROR: bob.bio.vein.tests.test.test_max_curvature_HE
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/idiap/group/torch5spro/conda/envs/bob-2.6.2-py27_0/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/remote/idiap.svm/user.active/vkrivokuca/Code/biohash_exp/vein/src/bob.bio.vein/bob/bio/vein/tests/test.py", line 101, in test_max_curvature_HE
    extr_data = MC(preproc_data)
  File "/remote/idiap.svm/user.active/vkrivokuca/Code/biohash_exp/vein/src/bob.bio.vein/bob/bio/vein/extractor/MaximumCurvature.py", line 263, in __call__
    return self.maximum_curvature(finger_image, finger_mask)
  File "/remote/idiap.svm/user.active/vkrivokuca/Code/biohash_exp/vein/src/bob.bio.vein/bob/bio/vein/extractor/MaximumCurvature.py", line 41, in maximum_curvature
    image = bob.core.convert(image,numpy.uint8,(0,255),(0,1))
RuntimeError: convert: C++ exception caught: 'src[62,71] = 30.023723 is above the maximum 1.000000 of input range'

======================================================================
ERROR: bob.bio.vein.tests.test.test_repeated_line_tracking_HE
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/idiap/group/torch5spro/conda/envs/bob-2.6.2-py27_0/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/remote/idiap.svm/user.active/vkrivokuca/Code/biohash_exp/vein/src/bob.bio.vein/bob/bio/vein/tests/test.py", line 150, in test_repeated_line_tracking_HE
    extr_data = RLT(preproc_data)
  File "/remote/idiap.svm/user.active/vkrivokuca/Code/biohash_exp/vein/src/bob.bio.vein/bob/bio/vein/extractor/RepeatedLineTracking.py", line 243, in __call__
    return self.repeated_line_tracking(finger_image, finger_mask)
  File "/remote/idiap.svm/user.active/vkrivokuca/Code/biohash_exp/vein/src/bob.bio.vein/bob/bio/vein/extractor/RepeatedLineTracking.py", line 60, in repeated_line_tracking
    finger_image = bob.core.convert(finger_image,numpy.uint8,(0,255),(0,1))
RuntimeError: convert: C++ exception caught: 'src[62,71] = 30.023723 is above the maximum 1.000000 of input range'

----------------------------------------------------------------------
Ran 17 tests in 63.379s

FAILED (errors=2)

Closes #13 (closed)

Merge request reports