Function HomographyHO::homographyHO

Function Documentation

void HomographyHO::homographyHO(cv::InputArray srcPoints, cv::InputArray targPoints, cv::OutputArray H)

Computes the best-fitting homography matrix from source to target points using Harker and O’Leary’s method: Harker, M., O’Leary, P., Computation of Homographies, Proceedings of the British Machine Vision Conference 2005, Oxford, England. This is not the author’s implementation.

Parameters:
  • srcPoints – Array of source points: 1xN/Nx1 2-channel (float or double) where N is the number of points

  • targPoints – Array of target points: 1xN/Nx1 2-channel (float or double)

  • H – Homography from source to target: 3x3 1-channel (double)