Class JDialogSIFTImageSimilarity

All Implemented Interfaces:
AlgorithmInterface, ScriptableActionInterface, DialogDefaultsInterface, ActionListener, FocusListener, ItemListener, WindowListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants

public class JDialogSIFTImageSimilarity extends JDialogScriptableBase implements AlgorithmInterface
See Also:
  • Field Details

    • similarityAlgo

      private SIFTImageSimilarity similarityAlgo
      Use serialVersionUID for interoperability.
    • comboBoxImage

      private JComboBox<String> comboBoxImage
    • image1

      private ModelImage image1
    • image2

      private ModelImage image2
    • sigma

      private double sigma
    • num_intervals

      private int num_intervals
    • assumed_blur

      private double assumed_blur
    • image_border_width

      private int image_border_width
    • logFile

      private String logFile
    • sigmaText

      private JTextField sigmaText
    • num_intervalsText

      private JTextField num_intervalsText
    • assumed_blurText

      private JTextField assumed_blurText
    • border_widthText

      private JTextField border_widthText
    • logFileText

      private JTextField logFileText
  • Constructor Details

    • JDialogSIFTImageSimilarity

      public JDialogSIFTImageSimilarity()
      Empty constructor needed for dynamic instantiation (used during scripting).
    • JDialogSIFTImageSimilarity

      public JDialogSIFTImageSimilarity(Frame theParentFrame, ModelImage im)
      Creates new SIFTImageSimilarity dialog and displays.
      Parameters:
      theParentFrame - Parent frame.
      im - Source image.
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent event)
      Closes dialog box when the OK button is pressed and calls the algorithm.
      Specified by:
      actionPerformed in interface ActionListener
      Overrides:
      actionPerformed in class JDialogBase
      Parameters:
      event - event that triggers function
    • buildComboBoxImage

      private void buildComboBoxImage()
      Builds a list of images to operate on from the template image.
    • init

      private void init()
      Sets up the GUI (panels, buttons, etc) and displays it on the screen.
    • setVariables

      private boolean setVariables()
      Use the GUI results to set up the variables needed to run the algorithm.
      Returns:
      true if parameters set successfully, false otherwise.
    • callAlgorithm

      protected void callAlgorithm()
      Description copied from class: JDialogScriptableBase
      Starts the algorithm. Already exists in most algorithm dialogs. Should be called during scripted execution and regular operation.
      Specified by:
      callAlgorithm in class JDialogScriptableBase
    • algorithmPerformed

      public void algorithmPerformed(AlgorithmBase algorithm)
      Description copied from interface: AlgorithmInterface
      Called after an algorithm this listener is registered to exits (maybe successfully, maybe not). If the algorithm is run in a separate thread, this call will be made within that thread. If not, this call will be made from that same, shared thread.
      Specified by:
      algorithmPerformed in interface AlgorithmInterface
      Parameters:
      algorithm - the algorithm which has just completed
    • setGUIFromParams

      protected void setGUIFromParams()
      Description copied from class: JDialogScriptableBase
      Set the dialog GUI using the script parameters while running this algorithm as part of a script.
      Specified by:
      setGUIFromParams in class JDialogScriptableBase
    • storeParamsFromGUI

      protected void storeParamsFromGUI() throws ParserException
      Description copied from class: JDialogScriptableBase
      Record the parameters just used to run this algorithm in a script.
      Specified by:
      storeParamsFromGUI in class JDialogScriptableBase
      Throws:
      ParserException - If there is a problem creating/recording the new parameters.