extract() dropped any run whose weighted fit ran out of iterations. That was too harsh: a failed refinement loses only the covariance, while the angle, radius, endpoints and support all remain those of the endpoint fit and stay usable. Measured on a V dock plate at 2 m with 34 rays on the plate: both wings split correctly with 17-18 points each and lengths correct to a few millimetres, yet one of the two vanished on roughly half of the noise realizations because its fit hit the 50-iteration cap. Everything downstream then saw one line where there were two, and the corner disappeared. End-to-end V detection rate was 48%; keeping the segment takes it to 100% across 0-5 mm tape protrusion at both 2 m and 3 m. Line now reports hasCovariance(), false when the fit did not converge, and mergeLines() refuses to merge such a segment - merging decides by comparing line parameters against their own covariance, so a meaningless covariance must not be allowed to make that decision. TheLeastSquaresLoopIsBounded keeps guarding the iteration cap itself; the new ALineThatFailedToRefineIsStillReturned guards against dropping the segment, and fails if extract() goes back to discarding it.
5.2 KiB
5.2 KiB