Package sc.fiji.snt.analysis.curation
Class PlausibilityCheck.SomaDistance
java.lang.Object
sc.fiji.snt.analysis.curation.PlausibilityCheck.LiveCheck
sc.fiji.snt.analysis.curation.PlausibilityCheck.SomaDistance
- Enclosing class:
PlausibilityCheck
Warns when a primary path starts far from any soma node.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionFor this check,parentis ignored: it evaluates whether the child's first node is within range of any soma path.checkDistance(PointInImage start, List<PointInImage> somaNodes) Evaluates distance from a point to the nearest soma location.doublegetName()voidsetMaxDistUm(double dist) Methods inherited from class sc.fiji.snt.analysis.curation.PlausibilityCheck.LiveCheck
isEnabled, setEnabled
-
Constructor Details
-
SomaDistance
public SomaDistance()
-
-
Method Details
-
getName
- Specified by:
getNamein classPlausibilityCheck.LiveCheck- Returns:
- a short human-readable name for this check
-
setMaxDistUm
public void setMaxDistUm(double dist) -
getMaxDistUm
public double getMaxDistUm() -
check
For this check,parentis ignored: it evaluates whether the child's first node is within range of any soma path. The soma paths must be supplied by the monitor via context.- Specified by:
checkin classPlausibilityCheck.LiveCheck- Parameters:
parent- the parent pathchild- the child (candidate) pathbranchIndex- the node index in the parent where the fork occurs- Returns:
- list of warnings (empty if the operation is plausible)
-
checkDistance
public List<PlausibilityCheck.Warning> checkDistance(PointInImage start, List<PointInImage> somaNodes) Evaluates distance from a point to the nearest soma location.- Parameters:
start- the start point of the new pathsomaNodes- the soma node locations (may be empty)- Returns:
- list of warnings (empty if within range or no soma exists)
-