Question

The OpenCV function findhomography() finds a homographic transformation between matching points of two images. (See Definition)

For finding matching subsets of points RANSAC can be used.

Here's the catch: In contrast to other function in OpenCV which use RANSAC (e.g. findfundamentalMat (See Definition)) the RANSAC parameter for confidence cannot be changed. Only the reprojection threshold can be passed as an argument.

I looked in the OpenCV source, and for findhomography() the confidence is hardcoded to 0.995.

For my purposes I need to increase this. Is there a way to do this without changing the value in the OpenCV source itself?

Is there a reason why this should be hardcoded?

PS: I added a change request under Ticket 1557 for the next subversion.

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top