Class AutotraceFromTipsCmd

java.lang.Object
org.scijava.module.AbstractModule
org.scijava.module.DefaultMutableModule
org.scijava.command.DynamicCommand
All Implemented Interfaces:
Runnable, org.scijava.Cancelable, org.scijava.command.Command, org.scijava.Contextual, org.scijava.module.Module, org.scijava.module.MutableModule, org.scijava.plugin.SciJavaPlugin

public class AutotraceFromTipsCmd extends GWDTTracerCommonCmd
Single-cell GWDT autotracing wrapper that uses the soma ROI on the canvas (or the auto-detected soma) as the root and the filtered seeds from SNT's SeedOverlay as tip targets. The tracer extracts the union of root-to-tip parent walks instead of running its usual full-tree pruning pipeline, producing one Tree that connects the soma to every reachable tip.

Inherits all GWDT tracing knobs and the soma-ROI strategy from GWDTTracerCommonCmd; adds the same source and type seed filters as AutotraceFromSeedsCmd.

Tips whose nearest voxel is not reached by Fast Marching (state ≠ ALIVE) are logged and skipped by the tracer; they do not abort the run.

Author:
Tiago Ferreira
See Also:
  • Field Details

  • Constructor Details

    • AutotraceFromTipsCmd

      public AutotraceFromTipsCmd()
  • Method Details

    • init

      protected void init()
      Initializer. Inherits image-related setup from GWDTTracerCommonCmd.initForImage() (and unlike AutotraceFromSeedsCmd ) keeps somaStrategyChoice and roiPlaneOnly visible: the soma ROI on the canvas (or auto-detected) is the root for the single-cell trace, and the user needs the strategy picker to choose how that ROI is interpreted.
    • run

      public void run()
      Specified by:
      run in interface org.scijava.module.MutableModule
      Specified by:
      run in interface Runnable
      Overrides:
      run in class CommonDynamicCmd
    • runCommand

      protected void runCommand()
      Overrides:
      runCommand in class GWDTTracerCommonCmd
    • createAndConfigureTracer

      protected AbstractGWDTTracer<?> createAndConfigureTracer(net.imagej.ImgPlus<?> img)
      Extends the parent's tracer setup with a setTips call. By the time the parent's runCommand reaches this method, all the standard GWDT knobs have been applied; we just hand it the user's tips and verify the tracer honors the TIP role.
      Overrides:
      createAndConfigureTracer in class GWDTTracerCommonCmd
      Parameters:
      img - the image to trace
      Returns:
      configured tracer, or null on error
    • isFileMode

      protected boolean isFileMode()
      Specified by:
      isFileMode in class GWDTTracerCommonCmd