![](https://i-blog.csdnimg.cn/blog_migrate/4bfc235476bdab623940d9b1a4294753.jpeg)
![](https://i-blog.csdnimg.cn/blog_migrate/9553f9e9e60ab67429473969568f21a8.jpeg)
![](https://i-blog.csdnimg.cn/blog_migrate/fd5532b81bed6b58cfdb50752c353ae5.jpeg)
![](https://i-blog.csdnimg.cn/blog_migrate/bdfef203cb198859515748fe14207f2d.jpeg)
文档中错误更正:1. 公式(14)中x3=1
2. A为8x9矩阵
3. reshape后H矩阵需转置
function [ H ] = est_homography(video_pts, logo_pts)
% est_homography estimates the homography to transform each of the
% video_pts into the logo_pts
% Inputs:
% video_pts: a 4x2 matrix of corner points in the video
% logo_pts: a 4x2 matrix of logo point
% est_homography estimates the homography to transform each of the
% video_pts into the logo_pts
% Inputs:
% video_pts: a 4x2 matrix of corner points in the video
% logo_pts: a 4x2 matrix of logo point