Skip to content

Commit 157f291

Browse files
hmaarrfkjni
authored andcommitted
Fix doc for denoise guassian (scikit-image#3869)
* Fix doc for denoise guassian * Fixup the test for the warnings for scipy 1.3 and the matrix subsclass
1 parent c8a437a commit 157f291

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

skimage/filters/rank/bilateral.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def mean_bilateral(image, selem, out=None, mask=None, shift_x=False,
8888
8989
See also
9090
--------
91-
skimage.filters.denoise_bilateral for a Gaussian bilateral filter.
91+
denoise_bilateral
9292
9393
Examples
9494
--------
@@ -205,7 +205,7 @@ def sum_bilateral(image, selem, out=None, mask=None, shift_x=False,
205205
206206
See also
207207
--------
208-
skimage.filters.denoise_bilateral for a Gaussian bilateral filter.
208+
denoise_bilateral
209209
210210
Examples
211211
--------

skimage/segmentation/tests/test_random_walker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
PYAMG_MISSING_WARNING = r'pyamg|\A\Z'
1616
PYAMG_OR_SCIPY_WARNING = SCIPY_RANK_WARNING + '|' + PYAMG_MISSING_WARNING
1717

18-
if (Version(np.__version__) >= '1.15.0'):
18+
if Version(np.__version__) >= '1.15.0' and Version(scipy.__version__) < '1.3':
1919
NUMPY_MATRIX_WARNING = 'matrix subclass'
2020
else:
2121
NUMPY_MATRIX_WARNING = None
@@ -352,7 +352,7 @@ def test_trivial_cases():
352352
output_labels = random_walker(img, markers)
353353
assert np.all(output_labels[markers == 1] == 1)
354354
# Here 0-labeled pixels could not be determined (no connexion to seed)
355-
assert np.all(output_labels[markers == 0] == -1)
355+
assert np.all(output_labels[markers == 0] == -1)
356356
with expected_warnings(["Returning provided labels"]):
357357
test = random_walker(img, markers, return_full_prob=True)
358358

0 commit comments

Comments
 (0)