Package sc.fiji.snt.util
Class CrossoverFinder.Config
java.lang.Object
sc.fiji.snt.util.CrossoverFinder.Config
- Enclosing class:
CrossoverFinder
Immutable configuration with builder-like setters.
-
Field Summary
FieldsModifier and TypeFieldDescriptiondoubleRadius (in real‑world units) used by the post‑hoc witness filter. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionincludeDirectChildren(boolean b) SetsincludeDirectChildren.includeSelfCrossovers(boolean b) SetsincludeSelfCrossovers.minRunNodes(int n) SetsminRunNodes.nodeWitnessRadius(double v) SetsnodeWitnessRadius.proximity(double v) Setsproximity.sameCTOnly(boolean b) SetssameCTOnly.thetaMinDeg(double v) SetsthetaMinDeg.toString()
-
Field Details
-
nodeWitnessRadius
public double nodeWitnessRadiusRadius (in real‑world units) used by the post‑hoc witness filter. If<= 0, the filter usesproximity. An event is kept only if at least one participant path has a real node (not a midpoint) within this radius of the event center.Default:
-1.0(fallback toproximity).
-
-
Constructor Details
-
Config
public Config()
-
-
Method Details
-
proximity
Setsproximity.- Parameters:
v- neighborhood radius in real‑world units; values< 0are clamped to0- Returns:
- this config (for chaining)
-
thetaMinDeg
SetsthetaMinDeg.- Parameters:
v- minimum crossing angle in degrees;< 0is clamped to0(disables filtering)- Returns:
- this config (for chaining)
-
minRunNodes
SetsminRunNodes.- Parameters:
n- minimum run length (consecutive near node‑pairs); values< 1are clamped to1- Returns:
- this config (for chaining)
-
sameCTOnly
SetssameCTOnly.- Parameters:
b- whether to restrict comparisons to paths with the same C/T indices- Returns:
- this config (for chaining)
-
includeSelfCrossovers
SetsincludeSelfCrossovers.- Parameters:
b- whether to include crossovers within the same path- Returns:
- this config (for chaining)
-
includeDirectChildren
SetsincludeDirectChildren.- Parameters:
b- whether to include crossovers with the path's direct child- Returns:
- this config (for chaining)
-
nodeWitnessRadius
SetsnodeWitnessRadius.- Parameters:
v- witness radius in real‑world units; if<= 0, the post‑hoc filter falls back toproximity- Returns:
- this config (for chaining)
-
toString
-