Class JDialogRegistrationSIFT3D

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

public class JDialogRegistrationSIFT3D extends JDialogScriptableBase implements AlgorithmInterface
Dialog to get user input, then call algorithmRegLeastSquares. Selects image is match image, the image that gets transformed until it is registered to the base image. Algorithms are executed in their own thread.
Version:
0.1 Augusut 15, 2020
Author:
William Gandler
See Also:
  • Field Details

    • baseImage

      protected ModelImage baseImage
      Base image - register match image to base image.
    • comboBoxImage

      private JComboBox comboBoxImage
      Combo box with image names for choosing base image.
    • reg3D

      private SIFT3D reg3D
      Algorithm to run from this dialog.
    • matchImage

      protected ModelImage matchImage
      Match image - register match image to base image.
    • resultImage

      protected ModelImage resultImage
      Result image - image returned from registration algorithm.
    • userInterface

      private ViewUserInterface userInterface
      Reference to userface.
    • SIFT3D_nn_thresh_default

      private double SIFT3D_nn_thresh_default
    • SIFT3D_err_thresh_default

      private double SIFT3D_err_thresh_default
    • SIFT3D_num_iter_default

      private int SIFT3D_num_iter_default
    • useOCL

      private boolean useOCL
    • SIFT3D_GAUSS_WIDTH_FCTR

      private double SIFT3D_GAUSS_WIDTH_FCTR
    • SIFT3D_MATCH_MAX_DIST

      private double SIFT3D_MATCH_MAX_DIST
    • ICOS_HIST

      private boolean ICOS_HIST
    • SIFT3D_RANSAC_REFINE

      private boolean SIFT3D_RANSAC_REFINE
    • CUBOID_EXTREMA

      private boolean CUBOID_EXTREMA
    • SIFT3D_ORI_SOLID_ANGLE_WEIGHT

      private boolean SIFT3D_ORI_SOLID_ANGLE_WEIGHT
    • labelMatchingThreshold

      private JLabel labelMatchingThreshold
    • textMatchingThreshold

      private JTextField textMatchingThreshold
    • labelErrorThreshold

      private JLabel labelErrorThreshold
    • textErrorThreshold

      private JTextField textErrorThreshold
    • labelNumberIterations

      private JLabel labelNumberIterations
    • textNumberIterations

      private JTextField textNumberIterations
    • labelGaussianWidth

      private JLabel labelGaussianWidth
    • textGaussianWidth

      private JTextField textGaussianWidth
    • matchCheckBox

      private JCheckBox matchCheckBox
    • labelMatch

      private JLabel labelMatch
    • textMatch

      private JTextField textMatch
    • icosahedralCheckBox

      private JCheckBox icosahedralCheckBox
    • refineCheckBox

      private JCheckBox refineCheckBox
    • cuboidCheckBox

      private JCheckBox cuboidCheckBox
    • solidCheckBox

      private JCheckBox solidCheckBox
  • Constructor Details

    • JDialogRegistrationSIFT3D

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

      public JDialogRegistrationSIFT3D(Frame theParentFrame, ModelImage im)
      Creates new registration dialog to get base image name.
      Parameters:
      theParentFrame - Parent frame.
      im - Source image.
    • JDialogRegistrationSIFT3D

      public JDialogRegistrationSIFT3D(Frame theParentFrame, ModelImage _mi, ModelImage _ri)
      Creates a new JDialogRegistrationSIFT3D object.
      Parameters:
      theParentFrame - DOCUMENT ME!
      _mi - DOCUMENT ME!
      _ri - DOCUMENT ME!
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent event)
      Closes dialog box when the OK button is pressed, set variables, and calls the algorithm.
      Specified by:
      actionPerformed in interface ActionListener
      Overrides:
      actionPerformed in class JDialogBase
      Parameters:
      event - Event that triggers function.
    • 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 complete.
      Specified by:
      algorithmPerformed in interface AlgorithmInterface
      Parameters:
      algorithm - Algorithm that caused the event.
    • callAlgorithm

      protected void callAlgorithm()
      Sets arrays appropriately and calls registration algorithm, running it in it's own thread.
      Specified by:
      callAlgorithm in class JDialogScriptableBase
    • init

      private void init()
      Initializes the GUI components and displays the dialog.
    • buildImgComboBox

      private JComboBox buildImgComboBox(ModelImage image)
      Builds a list of images. Returns combobox.
      Parameters:
      image - DOCUMENT ME!
      Returns:
      Newly created combo box.
    • 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.