Class LabelProximityDetector.Config

java.lang.Object
sc.fiji.snt.analysis.detection.LabelProximityDetector.Config
Enclosing class:
LabelProximityDetector

public static class LabelProximityDetector.Config extends Object
Configuration for LabelProximityDetector.
  • Constructor Details

    • Config

      public Config()
  • Method Details

    • distanceThreshold

      public LabelProximityDetector.Config distanceThreshold(double threshold)
      Sets the maximum distance (in calibrated units) from a label boundary for a node to be considered a contact point. Set to 0 for closest-approach mode (one detection per path–label pair).
      Parameters:
      threshold - distance threshold (≥ 0)
      Returns:
      this config for chaining
    • mergingDistance

      public LabelProximityDetector.Config mergingDistance(double distance)
      Sets the minimum distance between detections for NMS deduplication. Set to 0 to disable merging.
      Parameters:
      distance - merging distance (≥ 0)
      Returns:
      this config for chaining
    • assignToNearestPath

      public LabelProximityDetector.Config assignToNearestPath(boolean assign)
      Whether to reassign each detection to the nearest path when multiple paths are close together.
      Parameters:
      assign - true to enable reassignment
      Returns:
      this config for chaining
    • spacing

      public LabelProximityDetector.Config spacing(double[] spacing)
      Sets explicit pixel spacing for the EDT computation. If null, spacing is resolved from the label image metadata.
      Parameters:
      spacing - pixel spacing per dimension, or null
      Returns:
      this config for chaining
    • toString

      public String toString()
      Overrides:
      toString in class Object