Class CrossoverFinder.Config

java.lang.Object
sc.fiji.snt.util.CrossoverFinder.Config
Enclosing class:
CrossoverFinder

public static final class CrossoverFinder.Config extends Object
Immutable configuration with builder-like setters.
  • Field Details

    • nodeWitnessRadius

      public double nodeWitnessRadius
      Radius (in real‑world units) used by the post‑hoc witness filter. If <= 0, the filter uses proximity. 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 to proximity).

  • Constructor Details

    • Config

      public Config()
  • Method Details

    • proximity

      public CrossoverFinder.Config proximity(double v)
      Sets proximity.
      Parameters:
      v - neighborhood radius in real‑world units; values < 0 are clamped to 0
      Returns:
      this config (for chaining)
    • thetaMinDeg

      public CrossoverFinder.Config thetaMinDeg(double v)
      Sets thetaMinDeg.
      Parameters:
      v - minimum crossing angle in degrees; < 0 is clamped to 0 (disables filtering)
      Returns:
      this config (for chaining)
    • minRunNodes

      public CrossoverFinder.Config minRunNodes(int n)
      Sets minRunNodes.
      Parameters:
      n - minimum run length (consecutive near node‑pairs); values < 1 are clamped to 1
      Returns:
      this config (for chaining)
    • sameCTOnly

      public CrossoverFinder.Config sameCTOnly(boolean b)
      Sets sameCTOnly.
      Parameters:
      b - whether to restrict comparisons to paths with the same C/T indices
      Returns:
      this config (for chaining)
    • includeSelfCrossovers

      public CrossoverFinder.Config includeSelfCrossovers(boolean b)
      Sets includeSelfCrossovers.
      Parameters:
      b - whether to include crossovers within the same path
      Returns:
      this config (for chaining)
    • includeDirectChildren

      public CrossoverFinder.Config includeDirectChildren(boolean b)
      Sets includeDirectChildren.
      Parameters:
      b - whether to include crossovers with the path's direct child
      Returns:
      this config (for chaining)
    • nodeWitnessRadius

      public CrossoverFinder.Config nodeWitnessRadius(double v)
      Parameters:
      v - witness radius in real‑world units; if <= 0, the post‑hoc filter falls back to proximity
      Returns:
      this config (for chaining)
    • toString

      public String toString()
      Overrides:
      toString in class Object