Package sc.fiji.snt.analysis.detection
Class LabelProximityDetector.Config
java.lang.Object
sc.fiji.snt.analysis.detection.LabelProximityDetector.Config
- Enclosing class:
LabelProximityDetector
Configuration for
LabelProximityDetector.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassignToNearestPath(boolean assign) Whether to reassign each detection to the nearest path when multiple paths are close together.distanceThreshold(double threshold) Sets the maximum distance (in calibrated units) from a label boundary for a node to be considered a contact point.mergingDistance(double distance) Sets the minimum distance between detections for NMS deduplication.spacing(double[] spacing) Sets explicit pixel spacing for the EDT computation.toString()
-
Constructor Details
-
Config
public Config()
-
-
Method Details
-
distanceThreshold
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
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
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
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
-