Class CostPalette

java.lang.Object
java.lang.Thread
sc.fiji.snt.gui.CostPalette
All Implemented Interfaces:
Runnable

public class CostPalette extends Thread
SNT "Cost Function Wizard": runs A* with each of the SNT.CostType variants between two endpoints and displays all candidate paths as colored overlays on a single cropped ImagePlus. The user picks the preferred variant from a drop-down; SNT then adopts that CostType and (when applicable) replaces the probe path with the chosen variant.
Author:
Tiago Ferreira
  • Constructor Details

  • Method Details

    • setParent

      public void setParent(Window parent)
    • addListener

      public void addListener(CostPalette.Listener l)
    • show

      public void show()
    • validateProbe

      public String validateProbe()
      Checks if the probe segment can be used: both endpoints must lie within the data being traced and, in Stream mode, be close enough to avoid reading a very large region of lazy/remote data.
      Returns:
      a message describing the problem, or null if the probe segment is usable
    • run

      public void run()
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread
    • dismiss

      public void dismiss()