Class AutotraceFromWaypointsCmd

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 AutotraceFromWaypointsCmd 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 soft path attractors. Seeds preferentially pull the trace through them by biasing the GWDT cost map before Fast Marching; the resulting root-to-waypoint paths are protected from the pruning passes that would otherwise remove them.

Inherits the soma-ROI strategy and all GWDT tracing options from GWDTTracerCommonCmd; adds the same source and type seed filters as AutotraceFromSeedsCmd plus three bias controls (source, strength, sphere radius).

Author:
Tiago Ferreira
See Also:
  • Field Details

  • Constructor Details

    • AutotraceFromWaypointsCmd

      public AutotraceFromWaypointsCmd()
  • Method Details

    • init

      protected void init()
      Initializer. Inherits image-related setup from GWDTTracerCommonCmd.initForImage() and keeps the soma-ROI inputs visible: the soma ROI on the canvas (or its auto-detection) is the root for the single-cell trace.
    • 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 bias configuration and a setWaypoints call. By the time the parent's runCommand reaches this method, all the standard GWDT knobs have been applied; we just hand it the bias parameters, the waypoint list, and verify the tracer honors the WAYPOINT 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