Assigning boolean to the feature mask in line suppression

This commit is contained in:
Ankit Agrawal
2013-08-06 20:46:41 +05:30
parent 14411590bf
commit c3e18b0aee
+1 -1
View File
@@ -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