Package sc.fiji.snt.tracing.auto
Interface AutoTracer
- All Known Implementing Classes:
AbstractAutoTracer,AbstractGWDTTracer,BinaryTracer,DiskBackedGWDTTracer,GWDTTracer,SparseGWDTTracer
public interface AutoTracer
Interface for automatic neuron tracers that reconstruct complete neuronal
morphologies from images.
Implementations include both grayscale-based tracers (e.g., GWDTTracer)
and skeleton-based tracers (e.g., BinaryTracer).
- Author:
- Tiago Ferreira
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intRooting strategy: A single tree is created with all branches connected to the geometric centroid of the soma ROI.static final intRooting strategy: A single tree is created with all branches connected to a weighted centroid computed from nodes inside the soma ROI.static final intRooting strategy: Trees are rooted on nodes contained within the soma ROI.static final intRooting strategy: Separate trees are created for each neurite exiting the soma ROI.static final intRooting strategy: Tree is rooted at an algorithm-specific point (e.g., seed point for grayscale tracers, arbitrary endpoint for binary tracers). -
Method Summary
Modifier and TypeMethodDescriptiondefault EnumSet<AutoTracer.SeedRole> default voidsetRoots(Collection<SeedPoint> seeds) Hands the tracer a collection of seeds to use as roots in this run.default voidsetTips(Collection<SeedPoint> seeds) Hands the tracer a collection of seeds to use as tips / targets in this run.default voidsetWaypoints(Collection<SeedPoint> seeds) Hands the tracer a collection of seeds to use as waypoints (path constraints) in this run.default Treetrace()Traces the neuronal structure and returns a single merged Tree.Traces the neuronal structure and returns a list of Trees.
-
Field Details
-
ROI_UNSET
static final int ROI_UNSETRooting strategy: Tree is rooted at an algorithm-specific point (e.g., seed point for grayscale tracers, arbitrary endpoint for binary tracers). Any soma-marking ROI is ignored.- See Also:
-
ROI_EDGE
static final int ROI_EDGERooting strategy: Separate trees are created for each neurite exiting the soma ROI. Nodes inside the ROI are excluded from the output trees.- See Also:
-
ROI_CENTROID
static final int ROI_CENTROIDRooting strategy: A single tree is created with all branches connected to the geometric centroid of the soma ROI.- See Also:
-
ROI_CENTROID_WEIGHTED
static final int ROI_CENTROID_WEIGHTEDRooting strategy: A single tree is created with all branches connected to a weighted centroid computed from nodes inside the soma ROI.- See Also:
-
ROI_CONTAINED
static final int ROI_CONTAINEDRooting strategy: Trees are rooted on nodes contained within the soma ROI. UnlikeROI_EDGE, nodes inside the ROI are included in the analysis.- See Also:
-
-
Method Details
-
setRoots
Hands the tracer a collection of seeds to use as roots in this run. Default: no-op. Concrete tracers that consume root seeds override.- Parameters:
seeds- candidate roots; may benullor empty
-
setTips
Hands the tracer a collection of seeds to use as tips / targets in this run. Default: no-op. Concrete tracers that consume tip seeds override.- Parameters:
seeds- candidate tips; may benullor empty
-
setWaypoints
Hands the tracer a collection of seeds to use as waypoints (path constraints) in this run. Default: no-op. Concrete tracers that consume waypoint seeds override.- Parameters:
seeds- candidate waypoints; may benullor empty
-
honoredSeedRoles
- Returns:
- the
AutoTracer.SeedRoles this tracer actually honors. Callers (e.g. an "Autotrace from Seeds" wrapper command) can use this to gate UI choices and to error early when the user picks a role the tracer ignores. Default: empty set.
-
traceTrees
Traces the neuronal structure and returns a list of Trees.- Returns:
- list of traced trees, or empty list if tracing fails
-
trace
Traces the neuronal structure and returns a single merged Tree.Default implementation merges all trees from
traceTrees().- Returns:
- the traced tree, or null if tracing fails
-