mirror of
https://github.com/opencv/opencv.git
synced 2026-11-21 08:45:29 -06:00
2001806ed262ffdf680db34177834ff2ddee3e10
LightGlueMatcher normalizes each axis by its own image dimension, while the LightGlue reference (cvg/LightGlue normalize_keypoints, kornia) shifts by half the image size and divides both axes by half the longer side. The two only agree for square images, so models exported from the reference forward without normalization (e.g. XFeat's LighterGlue) see a stretched geometry on non-square images. Add LightGlueNormalization with LG_NORM_MODEL (default, unchanged per-axis mapping of the LightGlueType) and LG_NORM_MAX_SIDE (reference mapping), selected with setKeypointNormalization() independently of the model type and kept by clone(). Keypoints passed with an empty image size are still used as given. Fixes #30556
OpenCV: Open Source Computer Vision Library
Resources
- Homepage: https://opencv.org
- Courses: https://opencv.org/courses
- Docs: https://docs.opencv.org/5.x/
- Q&A forum: https://forum.opencv.org
- previous forum (read only): http://answers.opencv.org
- Issue tracking: https://github.com/opencv/opencv/issues
- Additional OpenCV functionality: https://github.com/opencv/opencv_contrib
- Donate to OpenCV: https://opencv.org/support/
Contributing
Please read the contribution guidelines before starting work on a pull request.
Summary of the guidelines:
- One pull request per issue;
- Choose the right base branch;
- Include tests and documentation;
- Clean up "oops" commits before submitting;
- Follow the coding style guide.
Additional Resources
- Submit your OpenCV-based project for inclusion in Community Friday on opencv.org
- Subscribe to the OpenCV YouTube Channel featuring OpenCV Live, an hour-long streaming show
- Follow OpenCV on LinkedIn for daily posts showing the state-of-the-art in computer vision & AI
- Apply to be an OpenCV Volunteer to help organize events and online campaigns as well as amplify them
- Follow OpenCV on Mastodon in the Fediverse
- Follow OpenCV on X
- OpenCV.ai: Computer Vision and AI development services from the OpenCV team.
Description
Languages
C++
87.7%
C
3.1%
Python
2.9%
CMake
2%
Java
1.5%
Other
2.6%