Class JDialogSIFT

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

public class JDialogSIFT extends JDialogScriptableBase implements AlgorithmInterface, ListSelectionListener
Dialog to get user input, then call the algorithm.
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Use serialVersionUID for interoperability.
      See Also:
    • fileDir

      private String[] fileDir
    • fileName

      private String[] fileName
    • selectedDirectory

      private String selectedDirectory
    • selectedFileName

      private String selectedFileName
    • tempFileDir

      private String[] tempFileDir
    • tempFileName

      private String[] tempFileName
    • SIFTAlgo

      private SIFT SIFTAlgo
    • verbose

      private boolean verbose
    • outarg

      private String outarg
    • framesarg

      private String framesarg
    • descriptorarg

      private String descriptorarg
    • metaarg

      private String metaarg
    • read_framesarg

      private String read_framesarg
    • gssarg

      private String gssarg
    • O

      private int O
    • S

      private int S
    • omin

      private int omin
    • edge_thresh

      private double edge_thresh
    • peak_thresh

      private double peak_thresh
    • norm_thresh

      private double norm_thresh
    • magnif

      private double magnif
    • window_size

      private double window_size
    • force_orientations

      private boolean force_orientations
    • writeFrames

      private boolean writeFrames
    • readFrames

      private boolean readFrames
    • writeDescriptor

      private boolean writeDescriptor
    • writeMeta

      private boolean writeMeta
    • writeGss

      private boolean writeGss
    • mosaic

      private boolean mosaic
    • changeRemoveIndex

      private boolean changeRemoveIndex
    • removeButton

      private JButton removeButton
    • removeIndex

      private int removeIndex
    • srcNumber

      private int srcNumber
    • model

      private DefaultListModel<String> model
    • labelRegister

      private JLabel labelRegister
    • imageList

      private JList imageList
    • imagePanel

      private JPanel imagePanel
    • chooserButton

      private JButton chooserButton
    • paramPanel

      private JPanel paramPanel
    • userInterface

      ViewUserInterface userInterface
    • labelNOctaves

      private JLabel labelNOctaves
    • textNOctaves

      private JTextField textNOctaves
    • labelNLevels

      private JLabel labelNLevels
    • textNLevels

      private JTextField textNLevels
    • labelFirstOctave

      private JLabel labelFirstOctave
    • textFirstOctave

      private JTextField textFirstOctave
    • labelEdgeThresh

      private JLabel labelEdgeThresh
    • textEdgeThresh

      private JTextField textEdgeThresh
    • labelPeakThresh

      private JLabel labelPeakThresh
    • textPeakThresh

      private JTextField textPeakThresh
    • labelNormThresh

      private JLabel labelNormThresh
    • textNormThresh

      private JTextField textNormThresh
    • labelMagnification

      private JLabel labelMagnification
    • textMagnification

      private JTextField textMagnification
    • labelWindowSize

      private JLabel labelWindowSize
    • textWindowSize

      private JTextField textWindowSize
    • orientationsCheckBox

      private JCheckBox orientationsCheckBox
    • verboseCheckBox

      private JCheckBox verboseCheckBox
    • writeFramesCheckBox

      private JCheckBox writeFramesCheckBox
    • readFramesCheckBox

      private JCheckBox readFramesCheckBox
    • writeDescriptorCheckBox

      private JCheckBox writeDescriptorCheckBox
    • writeMetaCheckBox

      private JCheckBox writeMetaCheckBox
    • writeGssCheckBox

      private JCheckBox writeGssCheckBox
    • mosaicCheckBox

      private JCheckBox mosaicCheckBox
  • Constructor Details

    • JDialogSIFT

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

      public JDialogSIFT(Frame theParentFrame, ModelImage im)
      Creates a new JDialogMSFuzzyCMeans object.
      Parameters:
      theParentFrame - parent frame
      im - source image
  • Method Details

    • init

      private void init()
      Sets up the GUI (panels, buttons, etc) and displays it on the screen.
    • 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.
    • selectFileName

      private void selectFileName()
      Open an image based on the suffix of the file.
    • getFileFilter

      private FileFilter getFileFilter(JFileChooser chooser, int index)
      A private helper function to get the current used FileFilter from JFileChooser.
      Parameters:
      chooser - DOCUMENT ME!
      index - the index of the choosable file filters.
      Returns:
      the current used file filter.
    • valueChanged

      public void valueChanged(ListSelectionEvent evt)
      Sets the remove index based on the selected index in the list.
      Specified by:
      valueChanged in interface ListSelectionListener
      Parameters:
      evt - Event that caused this method to fire.
    • 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)
      This method is required if the AlgorithmPerformed interface is implemented. It is called by the algorithms when it has completed or failed to to complete, so that the dialog can be display the result image and/or clean up.
      Specified by:
      algorithmPerformed in interface AlgorithmInterface
      Parameters:
      algorithm - Algorithm that caused the event.
    • setVariables

      private boolean setVariables()
    • 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.