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

Refactor select_reference_point to pick the centroid of high-coherence candidate pixels #535

Merged

Conversation

scottstanie
Copy link
Collaborator

@scottstanie scottstanie commented Feb 3, 2025

The default choice right now uses argmax, which, by numpy ordering, will be the edge of the possible pixels:
image

A safe one is more toward the center of the biggest connected component intersection.
Scipy has the center_of_mass function, with the caveat being that the exact centroid may not one of the candidate pixels.

@scottstanie scottstanie merged commit 0752570 into isce-framework:main Feb 3, 2025
1 of 2 checks passed
@scottstanie scottstanie deleted the reference-point-refactor branch February 3, 2025 19:58
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.

1 participant