Correcting a bug in Line Suppression

This commit is contained in:
Ankit Agrawal
2013-08-15 14:59:58 +05:30
parent bea9aa4414
commit 5f46fd01be
+1 -1
View File
@@ -124,7 +124,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)] = 0
return feature_mask