Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.bio.vein
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bob
bob.bio.vein
Commits
85745824
There was a problem fetching the pipeline summary.
Commit
85745824
authored
8 years ago
by
André Anjos
Browse files
Options
Downloads
Patches
Plain Diff
Fix tests after massive update
parent
2ae1c1ed
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!13
Annotation experiments
Pipeline
#
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bob/bio/vein/tests/test.py
+5
-5
5 additions, 5 deletions
bob/bio/vein/tests/test.py
bob/bio/vein/tests/test_databases.py
+1
-17
1 addition, 17 deletions
bob/bio/vein/tests/test_databases.py
with
6 additions
and
22 deletions
bob/bio/vein/tests/test.py
+
5
−
5
View file @
85745824
...
@@ -75,7 +75,7 @@ def test_finger_crop():
...
@@ -75,7 +75,7 @@ def test_finger_crop():
img
=
bob
.
io
.
base
.
load
(
input_filename
)
img
=
bob
.
io
.
base
.
load
(
input_filename
)
from
bob.bio.vein.preprocessor
s
.FingerCrop
import
FingerCrop
from
bob.bio.vein.preprocessor.FingerCrop
import
FingerCrop
preprocess
=
FingerCrop
(
fingercontour
=
'
leemaskMatlab
'
,
padding_width
=
0
)
preprocess
=
FingerCrop
(
fingercontour
=
'
leemaskMatlab
'
,
padding_width
=
0
)
preproc
,
mask
=
preprocess
(
img
)
preproc
,
mask
=
preprocess
(
img
)
...
@@ -105,7 +105,7 @@ def test_miuramax():
...
@@ -105,7 +105,7 @@ def test_miuramax():
input_fvr
=
bob
.
io
.
base
.
load
(
input_fvr_filename
)
input_fvr
=
bob
.
io
.
base
.
load
(
input_fvr_filename
)
# Apply Python implementation
# Apply Python implementation
from
bob.bio.vein.extractor
s
.MaximumCurvature
import
MaximumCurvature
from
bob.bio.vein.extractor.MaximumCurvature
import
MaximumCurvature
MC
=
MaximumCurvature
(
5
)
MC
=
MaximumCurvature
(
5
)
output_img
=
MC
((
input_img
,
input_fvr
))
output_img
=
MC
((
input_img
,
input_fvr
))
...
@@ -130,7 +130,7 @@ def test_miurarlt():
...
@@ -130,7 +130,7 @@ def test_miurarlt():
input_fvr
=
bob
.
io
.
base
.
load
(
input_fvr_filename
)
input_fvr
=
bob
.
io
.
base
.
load
(
input_fvr_filename
)
# Apply Python implementation
# Apply Python implementation
from
bob.bio.vein.extractor
s
.RepeatedLineTracking
import
RepeatedLineTracking
from
bob.bio.vein.extractor.RepeatedLineTracking
import
RepeatedLineTracking
RLT
=
RepeatedLineTracking
(
3000
,
1
,
21
,
False
)
RLT
=
RepeatedLineTracking
(
3000
,
1
,
21
,
False
)
output_img
=
RLT
((
input_img
,
input_fvr
))
output_img
=
RLT
((
input_img
,
input_fvr
))
...
@@ -155,7 +155,7 @@ def test_huangwl():
...
@@ -155,7 +155,7 @@ def test_huangwl():
input_fvr
=
bob
.
io
.
base
.
load
(
input_fvr_filename
)
input_fvr
=
bob
.
io
.
base
.
load
(
input_fvr_filename
)
# Apply Python implementation
# Apply Python implementation
from
bob.bio.vein.extractor
s
.WideLineDetector
import
WideLineDetector
from
bob.bio.vein.extractor.WideLineDetector
import
WideLineDetector
WL
=
WideLineDetector
(
5
,
1
,
41
,
False
)
WL
=
WideLineDetector
(
5
,
1
,
41
,
False
)
output_img
=
WL
((
input_img
,
input_fvr
))
output_img
=
WL
((
input_img
,
input_fvr
))
...
@@ -178,7 +178,7 @@ def test_miura_match():
...
@@ -178,7 +178,7 @@ def test_miura_match():
probe_gen_vein
=
bob
.
io
.
base
.
load
(
probe_gen_filename
)
probe_gen_vein
=
bob
.
io
.
base
.
load
(
probe_gen_filename
)
probe_imp_vein
=
bob
.
io
.
base
.
load
(
probe_imp_filename
)
probe_imp_vein
=
bob
.
io
.
base
.
load
(
probe_imp_filename
)
from
bob.bio.vein.algorithm
s
.MiuraMatch
import
MiuraMatch
from
bob.bio.vein.algorithm.MiuraMatch
import
MiuraMatch
MM
=
MiuraMatch
(
ch
=
18
,
cw
=
28
)
MM
=
MiuraMatch
(
ch
=
18
,
cw
=
28
)
score_gen
=
MM
.
score
(
template_vein
,
probe_gen_vein
)
score_gen
=
MM
.
score
(
template_vein
,
probe_gen_vein
)
...
...
This diff is collapsed.
Click to expand it.
bob/bio/vein/tests/test_databases.py
+
1
−
17
View file @
85745824
#!/usr/bin/env python
#!/usr/bin/env python
# vim: set fileencoding=utf-8 :
# vim: set fileencoding=utf-8 :
# @author: Manuel Guenther <Manuel.Guenther@idiap.ch>
# Thu May 24 10:41:42 CEST 2012
# @date: Thu May 24 10:41:42 CEST 2012
#
# Copyright (C) 2011-2012 Idiap Research Institute, Martigny, Switzerland
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 3 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from
nose.plugins.skip
import
SkipTest
from
nose.plugins.skip
import
SkipTest
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment