I am not sure whether this belongs on stackoverflow or another stackexchange site - input very welcome here.
I have used python OpenCV to match a target image's BRISK keypoint descriptors to - in turn - three different templates.
What is a practical, robust, statistically-sound way to decide which template is the best-fitting one?
Right now I calculate the number of cv2.RANSAC
inliers returned by cv2.findHomography
(which incidentally doesn't return a goodness-of-fit statistic) and take the template that has the highest number.
I have looked at histograms of descriptor distances, which always seem to be gaussians centred (weirdly) at about 105 (units?).
https://en.wikipedia.org/wiki/Random_sample_consensus seems quite useful.
Guidance much appreciated - thanks!
H
matrix etc. -findHomography
must calculate a likelihood internally but does not return it. – Pore