Search in sources :

Example 6 with PointPair

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");
}
Also used : PointPair(gdsc.core.match.PointPair)

Aggregations

PointPair (gdsc.core.match.PointPair)6 ArrayList (java.util.ArrayList)4 BasePoint (gdsc.core.match.BasePoint)3 Coordinate (gdsc.core.match.Coordinate)3 MatchResult (gdsc.core.match.MatchResult)3 Point (java.awt.Point)3 ImageROIPainter (gdsc.smlm.ij.utils.ImageROIPainter)2 TextWindow (ij.text.TextWindow)2 Pulse (gdsc.core.match.Pulse)1 MaximaSpotFilter (gdsc.smlm.filters.MaximaSpotFilter)1 Spot (gdsc.smlm.filters.Spot)1 FilePeakResults (gdsc.smlm.results.FilePeakResults)1 PeakResult (gdsc.smlm.results.PeakResult)1 TIntHashSet (gnu.trove.set.hash.TIntHashSet)1 ImageRoi (ij.gui.ImageRoi)1 Overlay (ij.gui.Overlay)1 PointRoi (ij.gui.PointRoi)1 FloatProcessor (ij.process.FloatProcessor)1 Rectangle (java.awt.Rectangle)1 HashMap (java.util.HashMap)1