Replaced integer matrix by float values matrix for keypoints