Class PlausibilityCheck.IntensityValley

java.lang.Object
sc.fiji.snt.analysis.curation.PlausibilityCheck.DeepCheck
sc.fiji.snt.analysis.curation.PlausibilityCheck.IntensityValley
Enclosing class:
PlausibilityCheck

public static class PlausibilityCheck.IntensityValley extends PlausibilityCheck.DeepCheck
Flags localized intensity valleys along a path's intensity profile: discrete dips of one or a few nodes whose intensity is markedly below the surrounding peaks. Useful for catching nodes that pass through ambiguous regions (low local signal flanked by bright signal on both sides) where the trace's exact position is suspect.

Detection mirrors the inverted form of scipy.signal.find_peaks(prominence=...): for each candidate node, the prominence is computed as (min(leftMax, rightMax) - intensity[i]) / min(leftMax, rightMax) with the left/right maxima taken over a half-window around the candidate. Two-sided constraint (must be strictly below both window maxima) prevents flagging the start or end of a path's intensity profile. Adjacent candidates are merged into a single valley centered on the deepest node.

Off by default; intended to be enabled only on images where the pattern is meaningful (e.g., en-passant axons crossing dim regions).