mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-08 09:51:14 +08:00
Assigning boolean to the feature mask in line suppression
This commit is contained in:
@@ -126,7 +126,7 @@ def _star_filter_kernel(m, n):
|
||||
def _suppress_lines(feature_mask, image, sigma, line_threshold):
|
||||
Axx, Axy, Ayy = _compute_auto_correlation(image, sigma)
|
||||
feature_mask[(Axx + Ayy) * (Axx + Ayy)
|
||||
> line_threshold * (Axx * Ayy - Axy * Axy)] = 0
|
||||
> line_threshold * (Axx * Ayy - Axy * Axy)] = False
|
||||
return feature_mask
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user