use of gdsc.core.match.PointPair in project GDSC-SMLM by aherbert.
the class TraceMatchCalculator method addResult.
private void addResult(StringBuilder sb, Pulse p1, Pulse p2) {
addPoint(sb, p2);
PointPair pair = new PointPair(p1, p2);
double d = pair.getXYDistance();
if (d >= 0)
sb.append(Utils.rounded(d, 4)).append("\t");
else
sb.append("-\t");
if (p1 != null && p2 != null)
sb.append(Utils.rounded(p1.score(p2, d * d, dThreshold), 4)).append("\t");
else
sb.append("-\t");
}
Aggregations