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
82ceffb4
Commit
82ceffb4
authored
Nov 11, 2016
by
André Anjos
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve documentation with links to used resources
parent
91b5f8fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
13 deletions
+22
-13
bob/bio/vein/preprocessor/utils.py
bob/bio/vein/preprocessor/utils.py
+22
-13
No files found.
bob/bio/vein/preprocessor/utils.py
View file @
82ceffb4
...
...
@@ -165,7 +165,12 @@ def mask_to_image(mask, dtype=numpy.uint8):
def
show_image
(
image
):
"""Shows a single image
"""Shows a single image using :py:meth:`PIL.Image.Image.show`
.. warning::
This function opens a new window. You must be operating interactively in a
windowing system for it to work properly.
Parameters:
...
...
@@ -208,7 +213,12 @@ def draw_mask_over_image(image, mask, color='red'):
def
show_mask_over_image
(
image
,
mask
,
color
=
'red'
):
"""Plots the mask over the image of a finger, for debugging purposes
"""Plots the mask over the image of a finger using :py:meth:`PIL.Image.Image.show`
.. warning::
This function opens a new window. You must be operating interactively in a
windowing system for it to work properly.
Parameters:
...
...
@@ -254,12 +264,12 @@ def jaccard_index(a, b):
def
intersect_ratio
(
a
,
b
):
"""Calculates the intersection ratio between
a probe and ground-truth
"""Calculates the intersection ratio between
the ground-truth and a probe
This function calculates the intersection ratio between a
probe
mask
(:math:`
B`) and a ground-truth mask (:math:`A`; probably generated from an
annotation), and returns the ratio of overlap when the probe is compared to
the
ground-truth data:
This function calculates the intersection ratio between a
ground-truth
mask
(:math:`
A`; probably generated from an annotation) and a probe mask
(:math:`B`), returning the ratio of overlap when the probe is compared to the
ground-truth data:
.. math::
...
...
@@ -293,13 +303,12 @@ def intersect_ratio(a, b):
def
intersect_ratio_of_complement
(
a
,
b
):
"""Calculates the intersection ratio between a probe and the ground-truth
complement
"""Calculates the intersection ratio between the complement of ground-truth and a probe
This function calculates the intersection ratio between
a probe mask
(:math:`B`) and *the complement* of a ground-truth mask (:math:`A`; probably
generated from an annotation), and returns the ratio of overlap when the
probe is
compared to the ground-truth data:
This function calculates the intersection ratio between
*the complement* of a
ground-truth mask (:math:`A`; probably generated from an annotation) and a
probe mask (:math:`B`), returning the ratio of overlap when the probe is
compared to the ground-truth data:
.. math::
...
...
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