Skip to content

Fix doc for denoise guassian - #3869

Merged
jni merged 2 commits into
scikit-image:masterfrom
hmaarrfk:fix_denoise_guassian
May 1, 2019
Merged

jni merged 2 commits into
scikit-image:masterfrom
hmaarrfk:fix_denoise_guassian

Conversation

@hmaarrfk

Copy link
Copy Markdown
Member

Description

Checklist

For reviewers

  • Check that the PR title is short, concise, and will make sense 1 year
    later.
  • Check that new functions are imported in corresponding __init__.py.
  • Check that new features, API changes, and deprecations are mentioned in
    doc/release/release_dev.rst.
  • Consider backporting the PR with @meeseeksdev backport to v0.14.x

Comment thread skimage/filters/rank/bilateral.py Outdated
See also
--------
skimage.filters.denoise_bilateral for a Gaussian bilateral filter.
skimage.filters.gaussian for a Gaussian bilateral filter.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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'

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are you changing this in this PR?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trying to get green again. Will rollback.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@hmaarrfk
hmaarrfk force-pushed the fix_denoise_guassian branch from d5d561c to db5f1d7 Compare April 30, 2019 12:02
rfezzani added a commit to rfezzani/scikit-image that referenced this pull request Apr 30, 2019
@rfezzani

Copy link
Copy Markdown
Member

Your fix is is correct, I tested it in #3850 and CI gone green again. THX

@hmaarrfk
hmaarrfk force-pushed the fix_denoise_guassian branch from db5f1d7 to 0fc57bb Compare April 30, 2019 13:19
@soupault soupault added this to the 0.15.1 milestone May 1, 2019
@soupault soupault added action: mrg+1 🔧 type: Maintenance Refactoring and maintenance of internals labels May 1, 2019
@jni

jni commented May 1, 2019

Copy link
Copy Markdown
Member

Boom! =) Thanks @hmaarrfk

@jni
jni merged commit 157f291 into scikit-image:master May 1, 2019
stefanv pushed a commit that referenced this pull request May 1, 2019
* Fix doc for denoise guassian

* scipy doesn't emit warnings about the matrix subclalss anymore

* fixup scipy version check
@hmaarrfk

Copy link
Copy Markdown
Member Author

@meeseeksdev backport to v0.15.x

meeseeksmachine pushed a commit to meeseeksmachine/scikit-image that referenced this pull request May 13, 2019
hmaarrfk added a commit that referenced this pull request May 13, 2019
…9-on-v0.15.x

Backport PR #3869 on branch v0.15.x (Fix doc for denoise guassian)
emmanuelle pushed a commit that referenced this pull request May 7, 2020
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🔧 type: Maintenance Refactoring and maintenance of internals

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants