% Returns the homography from the image corresponding to the camera matrix P and the plane
% to which the 3D points p1,p2,p3,p4 belong:
function [H] = getImg2PlaneHom(P,p1,p2,p3,p4)
    rp2 = [p1,p2,p3,p4;...
            1, 1, 1, 1];
    rp1 = P * rp2;
    H = getHomography(rp1,rp2(1:2,:));
