filters out bad detections on the rectification boundary.