Class cv::detail::LightGlueFeaturesMatcher#
Features matcher that adapts LightGlueMatcher (DescriptorMatcher) to the stitching pipeline's FeaturesMatcher interface. View details
#include <opencv2/stitching/detail/matchers.hpp>Collaboration diagram for cv::detail::LightGlueFeaturesMatcher:
Public Member Functions#
Public Member Functions inherited from cv::detail::FeaturesMatcher
Return |
Name |
Description |
|---|---|---|
|
Frees unused memory allocated before if there is any. |
|
|
||
|
||
|
Performs images matching. |
Additional Inherited Members#
Protected Member Functions inherited from cv::detail::FeaturesMatcher
Return |
Name |
Description |
|---|---|---|
|
This method must implement matching logic in order to make the wrappers detail::FeaturesMatcher::operator()_ work. |
|
|
This method implements logic to match features between arbitrary number of features. By default this checks every pair of inputs in the input, but the behaviour can be changed by subclasses. |
Protected Attributes inherited from cv::detail::FeaturesMatcher
Return |
Name |
Description |
|---|---|---|
|
Detailed Description#
Features matcher that adapts LightGlueMatcher (DescriptorMatcher) to the stitching pipeline’s FeaturesMatcher interface.
This matcher uses DNN-based LightGlue for feature matching, requiring ALIKED-style keypoints with spatial context for positional encoding.
See also
cv::detail::FeaturesMatcher cv::LightGlueMatcher
- Examples
- samples/cpp/stitching_detailed.cpp.
Constructor & Destructor Documentation#
LightGlueFeaturesMatcher()#
cv::detail::LightGlueFeaturesMatcher::LightGlueFeaturesMatcher(
Ptr< LightGlueMatcher > lgMatcher,
int num_matches_thresh1 = 6,
int num_matches_thresh2 = 6,
double matches_confidence_thresh = 3.0 )
Python:
cv.detail.LightGlueFeaturesMatcher(lgMatcher[, num_matches_thresh1[, num_matches_thresh2[, matches_confidence_thresh]]]) -> <detail_LightGlueFeaturesMatcher object>
Constructs a LightGlue features matcher.
Parameters
lgMatcher— LightGlueMatcher instance for DNN-based matchingnum_matches_thresh1— Minimum number of matches required for the 2D projective transform estimation used in the inliers classification stepnum_matches_thresh2— Minimum number of matches required for the 2D projective transform re-estimation on inliersmatches_confidence_thresh— Matching confidence threshold to take the match into account.
Member Function Documentation#
setScoreThreshold()#
void cv::detail::LightGlueFeaturesMatcher::setScoreThreshold(float thresh)
Python:
cv.detail.LightGlueFeaturesMatcher.setScoreThreshold(thresh)
Sets the LightGlue confidence threshold for filtering matches.
match()#
void cv::detail::LightGlueFeaturesMatcher::match(
const ImageFeatures & features1,
const ImageFeatures & features2,
MatchesInfo & matches_info )
This method must implement matching logic in order to make the wrappers detail::FeaturesMatcher::operator()_ work.
Parameters
features1— first image featuresfeatures2— second image featuresmatches_info— found matches
Member Data Documentation#
lg_score_thresh_#
float cv::detail::LightGlueFeaturesMatcher::lg_score_thresh_
lgMatcher_#
Ptr< LightGlueMatcher > cv::detail::LightGlueFeaturesMatcher::lgMatcher_
matches_confidence_thresh_#
double cv::detail::LightGlueFeaturesMatcher::matches_confidence_thresh_
num_matches_thresh1_#
int cv::detail::LightGlueFeaturesMatcher::num_matches_thresh1_
num_matches_thresh2_#
int cv::detail::LightGlueFeaturesMatcher::num_matches_thresh2_
Source file#
The documentation for this class was generated from the following file:
opencv2/stitching/detail/matchers.hpp