Replying to Don-vip:
Could you please see if you can extract the correlation logic outside of this class into a new one in the data.gpx package, and add unit tests for it (at least for the code you add)?
Done. I didn't implement unit tests for segments specifically, because the logic is absolutely similar to the tracks. I can add them if required.
I can change the labels if somebody suggests a string that makes somewhat sense. For the time being it is still tr("only when the segments are less than # minutes apart").split("#"); and similar
And do I have to add the new unit test test/unit/org/openstreetmap/josm/data/gpx/GpxImageCorrelationTest.java to an index somewhere?