1 | initial version |
I asked the question on another site and someone had a good answer I think so here is a quick summary:
There is a bug report about using RANSAC or Least Median with findhomography() in OpenCV3. It seems to be common that it returns an empty matrix sometime. According to the bug report, it is likely related to a "new" implementation of Levenberg-Marquardt solver.
Meanwhile, I had already implemented the quick fix suggested by the author of the answer on the other site, namely checking if the matrix is empty after using findHomography() then taking appropriate action.
So that's it for now, I'll probably look for another implementation of the solver, maybe the one used in OpenCV 2.4.9-10...