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

Refactor remove_background function to use specified median filter size and update tophat filter

parent 78809ff8
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.
from .detection import *
from .filters import *
from .local_thickness import local_thickness
from .operations import *
from .structure_tensor import structure_tensor
from .detection import *
import qim3d
import qim3d.processing.filters as filters
......@@ -17,7 +16,7 @@ def remove_background(vol, **kwargs):
size = kwargs["size"] if "size" in kwargs else 2
# Create a pipeline with a median filter and a tophat filter
pipeline = filter.Pipeline(
pipeline = filters.Pipeline(
filters.Median(size=size),
filters.Tophat(**kwargs)
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment