Repository navigation
Fix doc for denoise guassian - #3869
Conversation
| See also | ||
| -------- | ||
| skimage.filters.denoise_bilateral for a Gaussian bilateral filter. | ||
| skimage.filters.gaussian for a Gaussian bilateral filter. |
There was a problem hiding this comment.
This is incorrect. filters.gaussian is a standard Gaussian filter. See wikipedia for the definition of a bilateral filter.
Probably this is meant to point to skimage.restoration.denoise_bilateral?
There was a problem hiding this comment.
good catch. I've been looking at my computer screen too long today.
| else: | ||
| NUMPY_MATRIX_WARNING = None | ||
| # Certain version of numpy add this matrix warning, and others remove it. | ||
| NUMPY_MATRIX_WARNING = r'matrix subclass|\A\Z' |
There was a problem hiding this comment.
Why are you changing this in this PR?
There was a problem hiding this comment.
Trying to get green again. Will rollback.
There was a problem hiding this comment.
The value of these maintenance PRs goes WAYYYYYYYYYYYY down if you don't want multiple fixes to come in the same PR.
Individually, these PRs are low priority, but the value they give to contributors is much higher if you consider them to be part of "getting automated tests to pass again". I ask that you reconsider your request to have seperated
There was a problem hiding this comment.
Are you advocating for the VW approach to testing? ;)
I'm happy to have big bundled "let's fix everything" PRs. But every change needs to be the right change, not just masking all errors and warnings.
da9edbf to
054bb1f
Compare
d5d561c to
db5f1d7
Compare
|
Your fix is is correct, I tested it in #3850 and CI gone green again. THX |
db5f1d7 to
0fc57bb
Compare
|
Boom! =) Thanks @hmaarrfk |
|
@meeseeksdev backport to v0.15.x |
…9-on-v0.15.x Backport PR #3869 on branch v0.15.x (Fix doc for denoise guassian)
* Add get_mask_segments and get_grid_segments * Add centroid update option * Add mask support to SLIC * Fix mask support for SLIC * Add tests for SLIC mask option * Add ValueError if mask is not 2D * Add support for mask SLIC 3D * Add SLIC mask 3D tests * Fix PEP8 E226 * Change mask dtype from int to bool boolean array is not supported by Cython (see https://cython-docs2.readthedocs.io/en/latest/src/tutorial/numpy.html) Thats why it is declared as uint8 in _slic.pyx * Change segments type and Fix mask condition * Add benchmark for mask SLIC * Fix mask slic behavior Masked areas are now labeled 0. When no mask is provided, current behavior (labelling starting from 0) is deprecated. * Update test results for mask SLIC * Remove the masked_value argument * Fix the behavior induced by start_label * Add galery example * Fix CI example generation * Refactor mask slic example * Add fix from #3870 * Add fix from #3869 * Fix scipy version test * Add review suggestions * Add comments to _get_mask_centroids and a Note describing slic behaviour according to spacing value * Fix test results for maskSLIC * Revert test_slic modifications * Fix test results for maskSLIC * Fix test results for maskSLIC * Address reviewer comments * Move mask creation to setup in benchmark * Add start_label parameter to slic * Fix Raise section in slic docstring * Add deprecation cycle for start_label management * Set deprecation warning to FutureWarning * Remove warning filtering in the tests * Remove mask initialization if not used * Remove the numpy array buffer syntax to use cython memoryview * Fix TODO list * Fix PEP8 Co-Authored-By: Stefan van der Walt <[email protected]> * Update skimage/segmentation/slic_superpixels.py Co-Authored-By: Stefan van der Walt <[email protected]> * Update skimage/segmentation/slic_superpixels.py Co-Authored-By: Stefan van der Walt <[email protected]> * Update skimage/segmentation/slic_superpixels.py Co-Authored-By: Stefan van der Walt <[email protected]> * Update skimage/segmentation/slic_superpixels.py Co-Authored-By: Stefan van der Walt <[email protected]> * Fix docstrings * Use clustering for mask centroids initialization * Fix tests * Update skimage/segmentation/_slic.pyx Co-authored-by: Gregory R. Lee <[email protected]> * Update skimage/segmentation/_slic.pyx Co-authored-by: Gregory R. Lee <[email protected]> * Update skimage/segmentation/slic_superpixels.py Co-authored-by: Gregory R. Lee <[email protected]> * Update doc/examples/segmentation/plot_mask_slic.py Co-authored-by: Gregory R. Lee <[email protected]> * Update doc/examples/segmentation/plot_mask_slic.py Co-authored-by: Gregory R. Lee <[email protected]> * Update skimage/segmentation/slic_superpixels.py Co-authored-by: Gregory R. Lee <[email protected]> * Update skimage/segmentation/slic_superpixels.py Co-authored-by: Gregory R. Lee <[email protected]> Co-authored-by: Riadh <[email protected]> Co-authored-by: Stefan van der Walt <[email protected]> Co-authored-by: Gregory R. Lee <[email protected]>
Description
Checklist
./doc/examples(new features only)./benchmarks, if your changes aren't covered by anexisting benchmark
For reviewers
later.
__init__.py.doc/release/release_dev.rst.@meeseeksdev backport to v0.14.x