ORB samples and ic_angle TSDoc use detector border 17, below describe()'s 20 px edge margin
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 92/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- typescript
- Domain
- computer-vision
Research direction
Inspect the three documented calls in examples/sample_orb.html, examples/sample_orb_pinball.html, and the ic_angle TSDoc example in src/orb/orb.ts. Change each detection border from 17 to 20, optionally preserving the rationale in the samples, then verify that no affected example still uses the smaller border.
Written by the indexing model from the issue text.
Description
Summary
The ORB samples and the orb.ic_angle() TSDoc example still detect keypoints with border = 17, which is below the ≥ 20 px edge margin that orb.describe() requires (documented in #146, closing #110). Keypoints detected 17–19 px from an edge therefore get descriptors partly built from rectify_patch's constant fill of 128 rather than image content — the exact silent contamination #110 describes.
Where
| File | Line | Code |
|---|---|---|
examples/sample_orb.html |
311 | var count = yape06.detect(img, corners, 17); |
examples/sample_orb_pinball.html |
348 | var count = yape06.detect(img, corners, 17); |
src/orb/orb.ts (TSDoc of ic_angle) |
107 | const count = jsfeatNext.yape06.detect(img, corners, 17); |
(Checked at 2dfc8ab.)
Why 17 is not enough
From the describe() TSDoc added in #146: the furthest sample of the rotated pattern sits 13·√2 ≈ 18.4 px from the centre, plus the bilinear neighbour, so the safe margin is 20 px. The 360° rotation sweep measured contamination up to distance 18, vanishing from 19. A border of 17 sits inside the contaminated band.
ic_angle() itself only needs 15 px, so 17 is fine for orientation — the problem is only the describe() call that follows.
The TSDoc example is the most important one to fix: it is the snippet people copy, and it currently contradicts the margin note in the same class.
Proposed fix
Change the three occurrences from 17 to 20. No library behaviour changes; the samples lose a 3-px band of keypoints along each edge.
Optionally, for the samples: a short comment next to the call pointing at the describe() margin note, so the value doesn't drift again.
Related
- #110 — the underlying silent-degradation issue
- #146 — documented the 20 px margin (the samples were not updated)
- #83 — where the optional runtime guard was folded
Generated by Claude Code
- Dominant language
- TypeScript
- Stars
- 12
- Forks
- 4
- Avg merge
- 1d 17m
- Merged PRs (30d)
- 28
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from webarkit/jsfeatNext
-
Difficulty 4/5 3-5 days Newbie friendliness 52/100
webarkit/jsfeatNext#219 ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
webarkit/jsfeatNext#179 ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 72/100
webarkit/jsfeatNext#171 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 68/100
webarkit/jsfeatNext#168 ·
Maintainers usually reply within 1 day
-
code design enhancement npm Vite bundler
Difficulty 4/5 3-5 days Newbie friendliness 52/100
webarkit/jsfeatNext#137 ·
Maintainers usually reply within 1 day
All issues in webarkit/jsfeatNext
Similar issues
-
bug via-triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
pingdotgg/t3code#14452 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
solana-foundation/program-examples#747 · 1 comment ·
Maintainers usually reply within 9 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
remotion-dev/remotion#11847 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
openwatersio/slackwater#355 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
melgarafael/DeskcommCRM#1998 · 3 comments ·
Maintainers usually reply within 1 day