Removal of keypoints on edges