Package sc.fiji.snt.plugin
Class AutotraceFromWaypointsCmd
java.lang.Object
org.scijava.module.AbstractModule
org.scijava.module.DefaultMutableModule
org.scijava.command.DynamicCommand
sc.fiji.snt.gui.cmds.CommonDynamicCmd
sc.fiji.snt.plugin.GWDTTracerCommonCmd
sc.fiji.snt.plugin.AutotraceFromWaypointsCmd
- 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
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 Summary
FieldsFields inherited from class sc.fiji.snt.plugin.GWDTTracerCommonCmd
abortRun, backgroundThreshold, branchTuneMaxAngle, chosenImp, debugMode, imgChoice, imgFileChoice, lengthThreshold, scoreMapFilterFields inherited from class sc.fiji.snt.gui.cmds.CommonDynamicCmd
EMPTY_LABEL, HEADER_HTML, snt, sntService, statusService, ui, uiServiceFields inherited from class org.scijava.command.DynamicCommand
moduleService, pluginService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected AbstractGWDTTracer<?> createAndConfigureTracer(net.imagej.ImgPlus<?> img) Extends the parent's tracer setup with bias configuration and asetWaypointscall.protected voidinit()Initializer.protected booleanvoidrun()protected voidMethods inherited from class sc.fiji.snt.plugin.GWDTTracerCommonCmd
cancel, configureSecondaryScoreMap, error, getImgFromImgChoice, handleTracedTrees, initForFile, initForImage, noValidImgError, scoreMapFilterCallbackMethods inherited from class sc.fiji.snt.gui.cmds.CommonDynamicCmd
cancel, getPromptWithCloseHandler, getPromptWithCloseHandler, init, isCanceled, msg, notifyExternalDataLoaded, notifyLoadingEnd, notifyLoadingStart, resetUI, resetUI, resetUI, statusMethods inherited from class org.scijava.command.DynamicCommand
context, getCancelReason, getContext, getInfo, getInput, getOutput, saveInputs, setContext, setInput, setOutput, uncancelMethods inherited from class org.scijava.module.AbstractModule
getDelegateObject, getInputs, getOutputs, initialize, isInputResolved, isOutputResolved, preview, resolveInput, resolveOutput, setInputs, setOutputs, unresolveInput, unresolveOutputMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.scijava.module.Module
getDelegateObject, getInputs, getOutputs, initialize, isInputResolved, isOutputResolved, isResolved, preview, resolveInput, resolveOutput, setInputs, setOutputs, setResolved, unresolveInput, unresolveOutputMethods inherited from interface org.scijava.module.MutableModule
addInput, addInput, addOutput, addOutput, removeInput, removeOutput
-
Field Details
-
SOURCE_SELECTION
- See Also:
-
-
Constructor Details
-
AutotraceFromWaypointsCmd
public AutotraceFromWaypointsCmd()
-
-
Method Details
-
init
protected void init()Initializer. Inherits image-related setup fromGWDTTracerCommonCmd.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:
runin interfaceorg.scijava.module.MutableModule- Specified by:
runin interfaceRunnable- Overrides:
runin classCommonDynamicCmd
-
runCommand
protected void runCommand()- Overrides:
runCommandin classGWDTTracerCommonCmd
-
createAndConfigureTracer
Extends the parent's tracer setup with bias configuration and asetWaypointscall. 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 theWAYPOINTrole.- Overrides:
createAndConfigureTracerin classGWDTTracerCommonCmd- Parameters:
img- the image to trace- Returns:
- configured tracer, or null on error
-
isFileMode
protected boolean isFileMode()- Specified by:
isFileModein classGWDTTracerCommonCmd
-