Class AutotraceFromBinarySeedsCmd

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 AutotraceFromBinarySeedsCmd extends BinaryTracerCommonCmd
Batch autotracing wrapper that iterates over the seeds currently held by SNT's SeedOverlay and runs the BinaryTracer (skeleton-based autotracer) once per seed, each seed acting as the root of its own tree. Trees are accumulated and loaded into the active path manager at the end.

This is the binary/skeleton counterpart of AutotraceFromSeedsCmd. The typical workflow is to start from a labels image (e.g. cellpose / StarDist segmentations), generate one seed per labeled object via Generate Seeds from Labels Image, and then run this command to produce per-cell skeleton trees in a single batch.

Inherits every binary-tracer knob from BinaryTracerCommonCmd (segmented-image choice, optional intensity image, loop-resolution strategy, gap bridging, prune-by-length, etc.); adds the same seed ource/type filters used by AutotraceFromSeedsCmd. Failures on individual seeds are logged and reported but do not abort the whole run.

Author:
Tiago Ferreira
See Also:
  • Field Details

  • Constructor Details

    • AutotraceFromBinarySeedsCmd

      public AutotraceFromBinarySeedsCmd()
  • Method Details

    • init

      protected void init()
      Initializer. Inherits image-related setup from BinaryTracerCommonCmd.initForImage(), hides root-strategy and active-plane-only parameters (seeds drive root placement here, not an ROI), and populates the type-filter choices from the distinct types currently on the overlay.
    • run

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

      protected boolean isFileMode()
      Description copied from class: BinaryTracerCommonCmd
      Returns whether this command operates in file mode (loading images from file paths) or in image-choice mode (selecting from open images).
      Specified by:
      isFileMode in class BinaryTracerCommonCmd
      Returns:
      true for file-based operation, false for choice-widget operation
    • runCommand

      protected void runCommand()
      Description copied from class: BinaryTracerCommonCmd
      Executes the core tracing pipeline: loads images (from file or choice widgets based on BinaryTracerCommonCmd.isFileMode()), validates inputs, runs BinaryTracer, and post-processes the resulting trees.
      Overrides:
      runCommand in class BinaryTracerCommonCmd