Skip to content

refactor(yape06): de-duplicate yape06 module (#47)#68

Merged
kalwalt merged 1 commit into
feat/refactor-jsfeat-nextfrom
refactor/47-dedup-yape06
Jul 8, 2026
Merged

refactor(yape06): de-duplicate yape06 module (#47)#68
kalwalt merged 1 commit into
feat/refactor-jsfeat-nextfrom
refactor/47-dedup-yape06

Conversation

@kalwalt

@kalwalt kalwalt commented Jul 8, 2026

Copy link
Copy Markdown
Member

Seventh slice of #47, fresh off the integration branch.

What changed

  • src/yape06/yape06.ts — type-only stub replaced by the real implementation, verbatim from the monolith (detect, laplacian_threshold / min_eigen_value_threshold fields). Imports compute_laplacian / hessian_min_eigen_value from ./yape06_utils, already a real module. No aggregator references needed.
  • src/jsfeatNext.ts — ~85 lines removed. Only motion_estimator (+ inline kernels) and optical_flow_lk remain inline.

Verification

  • tsc --noEmit → clean
  • npm test57/57 (the yape06 parity test pins detect() against original jsfeat)
  • UMD bundle smoke-checked: instanceof chain, default thresholds (30/25), detection on a synthetic image
  • dist//types/ untouched (rebuilt when the integration branch merges to dev)

Advances #47. Remaining: motion_estimator (+ motion_model/affine2d/homography2d, which also tightens the any slots in core.ts) → optical_flow_lk.

🤖 Generated with Claude Code

Seventh de-duplication step of #47, following the established pattern.

- src/yape06/yape06.ts: replace the type-only stub with the REAL
  implementation moved verbatim from the monolith (detect + laplacian /
  min-eigen-value thresholds). Imports compute_laplacian and
  hessian_min_eigen_value from ./yape06_utils (already a real module).
- src/jsfeatNext.ts: shrinks by ~85 lines.

Verified behavior-preserving: tsc --noEmit clean; npm test 57/57 (the yape06
parity test pins detect() against original jsfeat); UMD bundle smoke-checked
(instanceof, default thresholds, detection on a synthetic image).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@kalwalt kalwalt added this to the Parity & Modernization milestone Jul 8, 2026
@kalwalt kalwalt self-assigned this Jul 8, 2026
@kalwalt kalwalt added enhancement New feature or request Typescript all about Typescript code design javascript tests labels Jul 8, 2026
@kalwalt kalwalt merged commit 34ba982 into feat/refactor-jsfeat-next Jul 8, 2026
4 checks passed
@kalwalt kalwalt deleted the refactor/47-dedup-yape06 branch July 10, 2026 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code design enhancement New feature or request javascript tests Typescript all about Typescript

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant