Add SIFT feature detector TypeScript definitions and enable NONFREE build flag #101
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds TypeScript type definitions for SIFT (Scale-Invariant Feature Transform) feature detector. SIFT patent expired in 2020 but requires OpenCV built with
OPENCV_ENABLE_NONFREE=ON.Changes
Type Definitions (
src/types/opencv/SIFT.ts)SIFTclass extendingFeature2Dwith 5 optional constructor parameters matching OpenCV 4.12 API_types.tsBuild Configuration (
.github/workflows/build-opencv.yml)--cmake_option="-DOPENCV_ENABLE_NONFREE=ON"to enable SIFT in future opencv.js buildsDocumentation (
README.md)Tests (
test/SIFT.test.ts)Usage
Note: Full SIFT functionality requires rebuilding opencv.js binary with updated workflow. TypeScript definitions work immediately.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.