1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-31 00:03:03 +04:00

Extracted matches_confindece_thresh as stitching matcher parameter.

This commit is contained in:
Alexander Smorkalov
2022-09-12 17:13:43 +03:00
parent adb916ce82
commit 784dd55d88
2 changed files with 12 additions and 7 deletions
@@ -180,19 +180,22 @@ public:
estimation used in the inliers classification step
@param num_matches_thresh2 Minimum number of matches required for the 2D projective transform
re-estimation on inliers
@param matches_confindece_thresh Matching confidence threshold to take the match into account.
The threshold was determined experimentally and set to 3 by default.
*/
CV_WRAP BestOf2NearestMatcher(bool try_use_gpu = false, float match_conf = 0.3f, int num_matches_thresh1 = 6,
int num_matches_thresh2 = 6);
int num_matches_thresh2 = 6, double matches_confindece_thresh = 3.);
CV_WRAP void collectGarbage() CV_OVERRIDE;
CV_WRAP static Ptr<BestOf2NearestMatcher> create(bool try_use_gpu = false, float match_conf = 0.3f, int num_matches_thresh1 = 6,
int num_matches_thresh2 = 6);
int num_matches_thresh2 = 6, double matches_confindece_thresh = 3.);
protected:
void match(const ImageFeatures &features1, const ImageFeatures &features2, MatchesInfo &matches_info) CV_OVERRIDE;
int num_matches_thresh1_;
int num_matches_thresh2_;
double matches_confindece_thresh_;
Ptr<FeaturesMatcher> impl_;
};