detections for gauss fit are ignored if too close to the boundary