From c3e18b0aeeb945cf1a73422ebc25d2f09e72793c Mon Sep 17 00:00:00 2001 From: Ankit Agrawal Date: Tue, 6 Aug 2013 20:46:41 +0530 Subject: [PATCH] Assigning boolean to the feature mask in line suppression --- skimage/feature/censure.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skimage/feature/censure.py b/skimage/feature/censure.py index 6e403e49..774250bd 100644 --- a/skimage/feature/censure.py +++ b/skimage/feature/censure.py @@ -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