Skip to content

Move corner_peaks implementation from ski2 to ski - #8248

Draft
lagru wants to merge 6 commits into
scikit-image:mainfrom
lagru:mv-back-corner-peaks
Draft

lagru wants to merge 6 commits into
scikit-image:mainfrom
lagru:mv-back-corner-peaks

Conversation

@lagru

@lagru lagru commented Jul 8, 2026 •

Copy link
Copy Markdown
Member

Replaces the pre-megamove PR #8057. I thought it was easier to manually pull out those changes and adapt them to the new tree,

We decided that we want to drop corner_peaks in favor of peak_local_max in skimage2. This PR realizes that.

It seems peak_local_max can't fully replicate behavior of corner_peaks when it comes to the min_distance parameter. #8057 (comment) goes into more detail. We may need to vendor the old implementation of corner_peaks if they truly care about replicating the behavior exactly.

  • Investigate a bit further and decide what to do here.
  • Look for issues & PRs that are relevant to this one.

Release note (optional)

...

lagru added 5 commits July 8, 2026 23:30
We don't want to keep corner_peaks around in skimage2.
Technically, we'd need to explicitly set `exclude_border=`, `p_norm=`
to reproduce the exact behavior. However as long as doctests and tests
are passing it's fine I think. But make sure to reproduce exact behavior
in actual source code like in `orb.py::ORB._detect_octave` to avoid
unexpected consequences!
This message is copied from scikit-image#8057 which this PR replaces.
These changes are copied from scikit-image#8057 which this PR replaces.
@lagru lagru self-assigned this Jul 8, 2026
@lagru lagru added the 🥾 Path to skimage2 A step towards the new "API 2.0" label Jul 8, 2026
@github-project-automation github-project-automation Bot moved this to Pitched in Work pitches Jul 8, 2026
@lagru lagru moved this from Pitched to Doing in Work pitches Jul 8, 2026
@greptile-apps

greptile-apps Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Reviews (1): Last reviewed commit: "Fix missing import" | Re-trigger Greptile

@greptile-apps

greptile-apps Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Reviews (2): Last reviewed commit: "Rename skimage2/feature/corner.py to pri..." | Re-trigger Greptile

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🥾 Path to skimage2 A step towards the new "API 2.0"

Projects

Status: Doing

Development

Successfully merging this pull request may close these issues.

1 participant