Package sc.fiji.snt.tracing.auto


package sc.fiji.snt.tracing.auto
Automatic neuron tracing algorithms that reconstruct complete neuronal morphologies from images without user interaction.

This package provides implementations of whole-neuron auto-tracing algorithms, as opposed to the interactive point-to-point A*-based tracers in the parent sc.fiji.snt.tracing package.

Key Classes

  • AutoTracer - Common interface for all auto-tracers, defining ROI strategy constants and the traceTrees() contract
  • AbstractAutoTracer - Base class for grayscale-based tracers with shared soma ROI handling and graph utilities
  • GWDTTracer - APP2-style tracer using Gray-Weighted Distance Transform and hierarchical pruning
  • BinaryTracer - Skeleton-based tracer using topological thinning and AnalyzeSkeleton

Algorithm Categories

Grayscale-based (extends AbstractAutoTracer)
Operate directly on intensity images without binarization. Use geodesic distance transforms and intensity-weighted path finding.
Skeleton-based (BinaryTracer)
Require binarization and topological skeletonization. Convert skeleton graphs to neuronal trees. Suitable for high-contrast images with clear foreground/background separation.

Soma ROI Strategies

All auto-tracers support configurable soma handling via AutoTracer constants:
  • ROI_UNSET - Ignore soma ROI, root at algorithm-specific point
  • ROI_EDGE - Split into separate trees per neurite exiting soma
  • ROI_CENTROID - Collapse soma nodes to ROI geometric centroid
  • ROI_CENTROID_WEIGHTED - Collapse to weighted centroid of soma nodes
  • ROI_CONTAINED - Root on nodes inside ROI (skeleton-based only)

Usage Example


 // Grayscale-based tracing
 GWDTTracer<?> tracer = GWDTTracer.create(imagePlus);
 tracer.setSeed(somaCenter);
 tracer.setSomaRoi(somaRoi, AutoTracer.ROI_CENTROID);
 List<Tree> trees = tracer.traceTrees();

 // Skeleton-based tracing
 BinaryTracer tracer = new BinaryTracer(binaryImage);
 tracer.setRootRoi(somaRoi, AutoTracer.ROI_EDGE);
 List<Tree> trees = tracer.traceTrees();
 
Author:
Tiago Ferreira
See Also: