Skip to content

Sample distinct correspondences for homography fitting - #53

Open
xia-chao wants to merge 1 commit into
mainfrom
fix/homography-distinct-samples
Open

xia-chao wants to merge 1 commit into
mainfrom
fix/homography-distinct-samples

Conversation

@xia-chao

Copy link
Copy Markdown
Contributor

Changes

  • Draw correspondence indices without replacement, preserving uniform selection and repeatability for a fixed seed.
  • Keep the existing geometry checks for samples that do not support a homography.

Validation

  • With the GUI's sampler settings, an exact three-by-four target previously returned three distinct indices for a four-point fit. The same fixture now produces four distinct points and fits to numerical precision.
  • Verified that sampling the full population returns each index once. All nine tests in the homography test target passed on Linux.

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