File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ def edge_filter(
4444 - "sobel": Edges are found by smoothing the data and then applying a sobel filter.
4545 - "laplace": Edges are found with a laplacian of gaussian filter.
4646 - "ggm": Edges are found with a gaussian gradient magnitude filter.
47- - "structure-tensor": Edges are found based on the 2nd eigenvalue of the structure tensor.
47+ - "structure-tensor": Edges are found based on the 1st eigenvalue of the structure tensor.
4848 - "sato": Edges are found with a sato-filter, followed by smoothing and leveling.
4949 per_slice: Compute the filter per slice instead of for the whole volume.
5050 n_threads: Number of threads for parallel computation over the slices.
@@ -74,7 +74,7 @@ def edge_filter(
7474 inner_scale , outer_scale = sigma , sigma * 0.5
7575 edge_map = bic .filters .structure_tensor_eigenvalues (
7676 data .astype ("float32" ), inner_scale , outer_scale
77- )[..., 1 ]
77+ )[..., 0 ]
7878 elif method == "sato" :
7979 edge_map = _sato_filter (data , sigma )
8080
You can’t perform that action at this time.
0 commit comments