Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
bob.bio.vein
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bob
bob.bio.vein
Commits
2274b531
Commit
2274b531
authored
Jul 07, 2017
by
André Anjos
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't need to do poly_to_mask() anymore
parent
8ef7a589
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
bob/bio/vein/database/fv3d.py
bob/bio/vein/database/fv3d.py
+2
-3
bob/bio/vein/database/verafinger.py
bob/bio/vein/database/verafinger.py
+1
-2
No files found.
bob/bio/vein/database/fv3d.py
View file @
2274b531
...
...
@@ -41,7 +41,7 @@ class File(BioFile):
image
=
super
(
File
,
self
).
load
(
*
args
,
**
kwargs
)
image
=
numpy
.
rot90
(
image
,
3
)
if
not
self
.
has_roi
():
if
not
self
.
__f
.
has_roi
():
return
image
else
:
...
...
@@ -50,9 +50,8 @@ class File(BioFile):
# calculates the 90 degrees anti-clockwise rotated RoI points
w
,
h
=
image
.
shape
roi
=
[(
x
,
h
-
y
)
for
(
y
,
x
)
in
roi
]
mask
=
poly_to_mask
(
image
.
shape
,
roi
)
return
AnnotatedArray
(
image
,
metadata
=
dict
(
mask
=
mask
,
roi
=
roi
))
return
AnnotatedArray
(
image
,
metadata
=
dict
(
roi
=
roi
))
class
Database
(
BioDatabase
):
...
...
bob/bio/vein/database/verafinger.py
View file @
2274b531
...
...
@@ -32,8 +32,7 @@ class File(BioFile):
image
=
super
(
File
,
self
).
load
(
*
args
,
**
kwargs
)
roi
=
self
.
__f
.
roi
()
mask
=
poly_to_mask
(
image
.
shape
,
roi
)
return
AnnotatedArray
(
image
,
metadata
=
dict
(
mask
=
mask
,
roi
=
roi
))
return
AnnotatedArray
(
image
,
metadata
=
dict
(
roi
=
roi
))
class
Database
(
BioDatabase
):
...
...
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