Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify sort-by-absolute-value in ridge filters. #6440

Merged
merged 1 commit into from Jul 17, 2022

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Jul 15, 2022

Using np.take_along_axis is explicitly mentioned in the docstring of
np.argsort, so let's use that rather than a hand-rolled version (which
predates np.take_along_axis).

Description

Checklist

  • Docstrings for all functions
  • Gallery example in ./doc/examples (new features only)
  • Benchmark in ./benchmarks, if your changes aren't covered by an
    existing benchmark
  • Unit tests
  • Clean style in the spirit of PEP8
  • Descriptive commit messages (see below)

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.
  • There is a bot to help automate backporting a PR to an older branch. For
    example, to backport to v0.19.x after merging, add the following in a PR
    comment: @meeseeksdev backport to v0.19.x
  • To run benchmarks on a PR, add the run-benchmark label. To rerun, the label
    can be removed and then added again. The benchmark output can be checked in
    the "Actions" tab.

Using np.take_along_axis is explicitly mentioned in the docstring of
np.argsort, so let's use that rather than a hand-rolled version (which
predates np.take_along_axis).
Copy link
Member

@mkcor mkcor left a comment

Choose a reason for hiding this comment

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

Great! Thank you for this contribution.

@alexdesiqueira alexdesiqueira merged commit 2663efb into scikit-image:main Jul 17, 2022
@alexdesiqueira
Copy link
Member

Thank you @anntzer!

@anntzer anntzer deleted the sba branch July 17, 2022 20:21
@jarrodmillman jarrodmillman added this to the 0.20 milestone Oct 4, 2022
grlee77 added a commit to grlee77/cucim that referenced this pull request Oct 28, 2022
rapids-bot bot pushed a commit to rapidsai/cucim that referenced this pull request Nov 16, 2022
…y footprint) (#423)

related to #419

A large overhaul of the ridge filters, addressing inaccuracies and errors has been implemented for scikit-image 0.20. This PR ports the same changes to these functions to cuCIM.

upstream PRs: 
 - scikit-image/scikit-image#6149
 - scikit-image/scikit-image#6440 
 - scikit-image/scikit-image#6446
 - scikit-image/scikit-image#6509

These fix various bugs, simplify the implementation and reduce the memory footprint

Authors:
  - Gregory Lee (https://github.com/grlee77)

Approvers:
  - Gigon Bae (https://github.com/gigony)

URL: #423
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants