Planar homography: accuracy analysis and applications