Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.bio.vein
Commits
e83cbc12
Commit
e83cbc12
authored
Sep 01, 2017
by
André Anjos
💬
Browse files
Remove useless mask(); Update comments
parent
b4fa451f
Changes
1
Hide whitespace changes
Inline
Side-by-side
bob/bio/vein/database/fv3d.py
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
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment