Class BinaryTracerCmd

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 BinaryTracerCmd extends BinaryTracerCommonCmd
Interactive command providing a GUI for BinaryTracer-based autotracing when an image is already loaded in SNT. Uses choice widgets to select from open images.
Author:
Cameron Arshadi, Tiago Ferreira
See Also:
  • Constructor Details

    • BinaryTracerCmd

      public BinaryTracerCmd()
  • Method Details

    • 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
    • run

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

      protected void handleTracedTrees(List<Tree> trees)
      Description copied from class: BinaryTracerCommonCmd
      Called after tracing completes with valid trees. The default implementation honors BinaryTracerCommonCmd.afterTracingChoice: optionally replaces existing paths, assigns colors (per-tree "dim" palette when proofreading, inter-tree otherwise), adds trees via PathAndFillManager, and optionally calibrates the Curation Manager for proofreading. Subclasses may override to export trees to disk or adopt the mask image as tracing canvas.
      Overrides:
      handleTracedTrees in class BinaryTracerCommonCmd
      Parameters:
      trees - the traced trees (guaranteed non-null and non-empty)