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
2bbaa2db
Commit
2bbaa2db
authored
7 years ago
by
André Anjos
Browse files
Options
Downloads
Patches
Plain Diff
Ensures input image has dtype==float64 before anything else
parent
a8586e10
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!35
3DFV and multiple fixes
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bob/bio/vein/extractor/MaximumCurvature.py
+2
-5
2 additions, 5 deletions
bob/bio/vein/extractor/MaximumCurvature.py
bob/bio/vein/tests/test.py
+1
-0
1 addition, 0 deletions
bob/bio/vein/tests/test.py
with
3 additions
and
5 deletions
bob/bio/vein/extractor/MaximumCurvature.py
+
2
−
5
View file @
2bbaa2db
...
@@ -158,8 +158,6 @@ class MaximumCurvature (Extractor):
...
@@ -158,8 +158,6 @@ class MaximumCurvature (Extractor):
image_g2_45
=
0.5
*
image_g2_0
+
fxy
+
0.5
*
image_g2_90
image_g2_45
=
0.5
*
image_g2_0
+
fxy
+
0.5
*
image_g2_90
image_g2_m45
=
0.5
*
image_g2_0
-
fxy
+
0.5
*
image_g2_90
image_g2_m45
=
0.5
*
image_g2_0
-
fxy
+
0.5
*
image_g2_90
img_h
,
img_w
=
image
.
shape
#Image height and width
# ######################################################################
# ######################################################################
# [Step 1-1] Calculation of curvature profiles
# [Step 1-1] Calculation of curvature profiles
# ######################################################################
# ######################################################################
...
@@ -469,7 +467,7 @@ class MaximumCurvature (Extractor):
...
@@ -469,7 +467,7 @@ class MaximumCurvature (Extractor):
def
__call__
(
self
,
image
):
def
__call__
(
self
,
image
):
finger_image
=
image
[
0
]
finger_image
=
image
[
0
]
.
astype
(
'
float64
'
)
finger_mask
=
image
[
1
]
finger_mask
=
image
[
1
]
#import time
#import time
...
@@ -484,8 +482,7 @@ class MaximumCurvature (Extractor):
...
@@ -484,8 +482,7 @@ class MaximumCurvature (Extractor):
V
=
self
.
eval_vein_probabilities
(
kappa
)
V
=
self
.
eval_vein_probabilities
(
kappa
)
#self._view_four(V, "Center Probabilities - $V_i$")
#self._view_single(V, "Accumulated Probabilities - V")
#self._view_single(V.sum(axis=2), "Accumulated Probabilities - V")
#print('probabilities took %.2f seconds' % (time.time() - start))
#print('probabilities took %.2f seconds' % (time.time() - start))
#start = time.time()
#start = time.time()
...
...
This diff is collapsed.
Click to expand it.
bob/bio/vein/tests/test.py
+
1
−
0
View file @
2bbaa2db
...
@@ -125,6 +125,7 @@ def test_max_curvature_HE():
...
@@ -125,6 +125,7 @@ def test_max_curvature_HE():
from
bob.bio.vein.extractor.MaximumCurvature
import
MaximumCurvature
from
bob.bio.vein.extractor.MaximumCurvature
import
MaximumCurvature
MC
=
MaximumCurvature
(
sigma
=
5
)
MC
=
MaximumCurvature
(
sigma
=
5
)
extr_data
=
MC
(
preproc_data
)
extr_data
=
MC
(
preproc_data
)
#preprocessor_utils.show_image((255.*extr_data).astype('uint8'))
def
test_repeated_line_tracking
():
def
test_repeated_line_tracking
():
...
...
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