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
e83cbc12
Commit
e83cbc12
authored
7 years ago
by
André Anjos
Browse files
Options
Downloads
Patches
Plain Diff
Remove useless mask(); Update comments
parent
b4fa451f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!35
3DFV and multiple fixes
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/bio/vein/database/fv3d.py
+3
-9
3 additions, 9 deletions
bob/bio/vein/database/fv3d.py
with
3 additions
and
9 deletions
bob/bio/vein/database/fv3d.py
+
3
−
9
View file @
e83cbc12
...
...
@@ -13,7 +13,7 @@ from ..preprocessor.utils import poly_to_mask
class
File
(
BioFile
):
"""
Implements extra properties of vein files for the
Vera
Fingervein database
Implements extra properties of vein files for the
3D
Fingervein database
Parameters:
...
...
@@ -29,17 +29,11 @@ class File(BioFile):
self
.
__f
=
f
def
mask
(
self
,
shape
):
"""
Returns the binary mask from the ROI annotations available
"""
return
poly_to_mask
(
shape
,
self
.
__f
.
roi
())
def
load
(
self
,
*
args
,
**
kwargs
):
"""
(Overrides base method) Loads both image and mask
"""
image
=
super
(
File
,
self
).
load
(
*
args
,
**
kwargs
)
image
=
numpy
.
rot90
(
image
,
3
)
image
=
numpy
.
rot90
(
image
,
-
1
)
if
not
self
.
__f
.
has_roi
():
return
image
...
...
@@ -56,7 +50,7 @@ class File(BioFile):
class
Database
(
BioDatabase
):
"""
Implements verification API for querying
Vera
Fingervein database.
Implements verification API for querying
the 3D
Fingervein database.
"""
def
__init__
(
self
,
**
kwargs
):
...
...
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