Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
bob.bio.vein
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bob
bob.bio.vein
Commits
e83cbc12
Commit
e83cbc12
authored
Sep 01, 2017
by
André Anjos
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove useless mask(); Update comments
parent
b4fa451f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
9 deletions
+3
-9
bob/bio/vein/database/fv3d.py
bob/bio/vein/database/fv3d.py
+3
-9
No files found.
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
Markdown
is supported
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