reverting changes in Homography kernel function. For some reason GCC on Linux does not like it.