added the homography in kernel