Skip to content
Snippets Groups Projects
Commit 43a488f4 authored by Christian Kento Rasmussen's avatar Christian Kento Rasmussen
Browse files

Update default radius in tophat filter to 3

parent 87a51e28
No related branches found
No related tags found
1 merge request!683d removal of background
This commit is part of merge request !68. Comments created here will be created in the context of that merge request.
......@@ -223,12 +223,12 @@ def tophat(vol, **kwargs):
Remove background from the volume
Args:
vol: The volume to remove background from
radius: The radius of the structuring element (default: 1)
radius: The radius of the structuring element (default: 3)
background: color of the background, 'dark' or 'bright' (default: 'dark'). If 'bright', volume will be inverted.
Returns:
vol: The volume with background removed
"""
radius = kwargs["radius"] if "radius" in kwargs else 1
radius = kwargs["radius"] if "radius" in kwargs else 3
background = kwargs["background"] if "background" in kwargs else "dark"
if background == "bright":
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment