Class JDialogRegistrationValidation

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

public class JDialogRegistrationValidation extends JDialogRegistrationLeastSquares implements AlgorithmInterface
Dialog to get user input, then call algorithmRegValidation. 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.
Author:
senseneyj
See Also:
  • Field Details

    • doCorrelationRatioSmoothed

      private JCheckBox doCorrelationRatioSmoothed
      Whether the available cost functions should be performed
    • doMutualInfoSmoothed

      private JCheckBox doMutualInfoSmoothed
      Whether the available cost functions should be performed
    • doNormMutualInfoSmoothed

      private JCheckBox doNormMutualInfoSmoothed
      Whether the available cost functions should be performed
    • doNormXCorr

      private JCheckBox doNormXCorr
      Whether the available cost functions should be performed
    • currentCostFunct

      private String currentCostFunct
      Description of the cost function being performed
    • algoCost

      Algorithm that implement cost functions, either a AlgorithmCostFunctions or AlgorithmCostFunctions2D
    • tMatrix

      private TransMatrix tMatrix
      Initial transmatrix for cost functions
    • simpleImg1

      private ModelSimpleImage simpleImg1
      SimpleImages to describe ModelImage data, simpleImg2 is always registered image
    • simpleImg2

      private ModelSimpleImage simpleImg2
      SimpleImages to describe ModelImage data, simpleImg2 is always registered image
    • bin1

      private int bin1
      Bin to use for pixel comparisons
  • Constructor Details

    • JDialogRegistrationValidation

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

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

      public JDialogRegistrationValidation(Frame theParentFrame, ModelImage _mi, ModelImage _ri)
      Creates a new JDialogRegistrationValidation object, used for bypassing the GUI.
      Parameters:
      theParentFrame - Parent frame.
      _mi - Source image.
      _ri - Image to register against.
  • Method Details

    • init

      protected void init()
      Description copied from class: JDialogRegistrationLeastSquares
      Initializes GuserInterface components and displays dialog.
      Overrides:
      init in class JDialogRegistrationLeastSquares
    • 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.
      Specified by:
      algorithmPerformed in interface AlgorithmInterface
      Overrides:
      algorithmPerformed in class JDialogRegistrationLeastSquares
      Parameters:
      algorithm - Algorithm that caused the event.
    • runCostFunctions

      private void runCostFunctions(ModelImage image)
      calls the various cost functions
      Parameters:
      image - the image to compare to the registered image
    • setCostVariables

      private boolean setCostVariables()
    • callAlgorithm

      private void callAlgorithm(int costChoice)
      Method for calling various cost algorithms, should only be called after registered image is created.
      Parameters:
      costChoice - DOCUMENT ME!