Skip to content

Commit 7da56c5

Browse files
Update structure tensor eigenvalue
1 parent 79fdfeb commit 7da56c5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

synapse_net/ground_truth/shape_refinement.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)