Package sc.fiji.snt.analysis.curation
Class PlausibilityCheck.LiveCheck
java.lang.Object
sc.fiji.snt.analysis.curation.PlausibilityCheck.LiveCheck
- Direct Known Subclasses:
PlausibilityCheck.BranchAngle,PlausibilityCheck.ConstantRadii,PlausibilityCheck.DirectionContinuity,PlausibilityCheck.InterForkDistance,PlausibilityCheck.RadiusContinuity,PlausibilityCheck.SomaDistance,PlausibilityCheck.TerminalBranchLength,PlausibilityCheck.TortuosityConsistency
- Enclosing class:
PlausibilityCheck
A lightweight check that evaluates the plausibility of a single fork operation (parent + child + branch index).
Designed to execute in sub-millisecond time so it can run inline at Hook 2 (QUERY_KEEP).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract List<PlausibilityCheck.Warning> Evaluates the plausibility of a child path forking from a parent.abstract StringgetName()Declares how this check's errors propagate.booleanmeasure(Collection<Path> paths) Computes the full distribution of this check's metric acrosspaths, without applying the warning threshold.voidsetEnabled(boolean enabled)
-
Constructor Details
-
LiveCheck
public LiveCheck()
-
-
Method Details
-
getName
- Returns:
- a short human-readable name for this check
-
check
Evaluates the plausibility of a child path forking from a parent.- 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)
-
measure
Computes the full distribution of this check's metric acrosspaths, without applying the warning threshold. Default implementation returnsPlausibilityCheck.Measurements.EMPTY; subclasses override to enable per-check histogram popups in the Curation Assistant.- Parameters:
paths- the paths to evaluate;nullor empty yieldsPlausibilityCheck.Measurements.EMPTY.- Returns:
- a
PlausibilityCheck.Measurementsrecord; nevernull.
-
impactKind
Declares how this check's errors propagate. DefaultSUBTREEfor live checks because most live checks (branch angle, direction, tortuosity, soma distance) catch topology problems whose consequences cascade downstream. Caliber-only checks (e.g.,RadiusContinuity,ConstantRadii) override toPlausibilityCheck.ImpactKind.LOCAL. -
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled)
-