Class JDialogBiorthogonalWavelets

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

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

    • CDF_type

      private final int CDF_type
      Use serialVersionUID for interoperability.
      See Also:
    • spline_type

      private final int spline_type
      See Also:
    • waveletMatrix_method

      private final int waveletMatrix_method
      See Also:
    • convolution_method

      private final int convolution_method
      See Also:
    • bwAlgo

      private BiorthogonalWavelets bwAlgo
    • srcImage

      private ModelImage srcImage
    • transformImage

      private ModelImage transformImage
    • compressedTransformImage

      private ModelImage compressedTransformImage
    • reconstructedImage

      private ModelImage reconstructedImage
    • iterations

      private int iterations
    • iterationsText

      private JTextField iterationsText
    • compressionText

      private JTextField compressionText
    • compressionFactor

      private double compressionFactor
    • typeGroup

      private ButtonGroup typeGroup
    • CDFButton

      private JRadioButton CDFButton
    • splineButton

      private JRadioButton splineButton
    • type

      private int type
    • lenText

      private JTextField lenText
    • lentText

      private JTextField lentText
    • len

      private int len
    • lent

      private int lent
    • displayCheckBox

      private JCheckBox displayCheckBox
    • display

      private boolean display
    • methodGroup

      private ButtonGroup methodGroup
    • convolutionButton

      private JRadioButton convolutionButton
    • waveletMatrixButton

      private JRadioButton waveletMatrixButton
    • method

      int method
  • Constructor Details

    • JDialogBiorthogonalWavelets

      public JDialogBiorthogonalWavelets()
      Empty constructor needed for dynamic instantiation.
    • JDialogBiorthogonalWavelets

      public JDialogBiorthogonalWavelets(Frame theParentFrame, ModelImage im)
      Construct the biorthogonal wavelets dialog.
      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.
    • init

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

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