Class JDialogLevelSetDiffusion

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

public class JDialogLevelSetDiffusion extends JDialogBase implements AlgorithmInterface
Dialog to get user input, then call the algorithm. The user is able to control the degree of blurring in all dimensions and indicate if a correction factor be applied to the z-dimension to account for differing resolutions between the xy resolutions (intra-plane) and the z resolution (inter-plane). The algorithms are executed in their own thread.
Version:
0.1 Nov 17, 1998
Author:
Matthew J. McAuliffe, Ph.D.
See Also:
  • Field Details

    • serialVersionUID

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

      private boolean image25D
      Flag indicating if slices should be blurred independently.
    • image25DCheckbox

      private JCheckBox image25DCheckbox
      DOCUMENT ME!
    • image

      private ModelImage image
      DOCUMENT ME!
    • iters

      private int iters
      DOCUMENT ME!
    • kValue

      private float kValue
      DOCUMENT ME!
    • labelCorrected

      private JLabel labelCorrected
      DOCUMENT ME!
    • labelGaussX

      private JLabel labelGaussX
      DOCUMENT ME!
    • labelGaussY

      private JLabel labelGaussY
      DOCUMENT ME!
    • labelGaussZ

      private JLabel labelGaussZ
      DOCUMENT ME!
    • labelIters

      private JLabel labelIters
      DOCUMENT ME!
    • labelK

      private JLabel labelK
      DOCUMENT ME!
    • levelSetAlgo

      private AlgorithmLevelSetDiffusion levelSetAlgo
      DOCUMENT ME!
    • normFactor

      private float normFactor
      DOCUMENT ME!
    • paintMask

      private BitSet paintMask
      DOCUMENT ME!
    • resolutionCheckbox

      private JCheckBox resolutionCheckbox
      DOCUMENT ME!
    • scaleX

      private float scaleX
      DOCUMENT ME!
    • scaleY

      private float scaleY
      DOCUMENT ME!
    • scaleZ

      private float scaleZ
      DOCUMENT ME!
    • textGaussX

      private JTextField textGaussX
      DOCUMENT ME!
    • textGaussY

      private JTextField textGaussY
      DOCUMENT ME!
    • textGaussZ

      private JTextField textGaussZ
      DOCUMENT ME!
    • textIters

      private JTextField textIters
      difference between x,y resolutions (in plane) and z resolution (between planes).
    • textK

      private JTextField textK
      DOCUMENT ME!
    • titles

      private String[] titles
      DOCUMENT ME!
    • userInterface

      private ViewUserInterface userInterface
      DOCUMENT ME!
  • Constructor Details

    • JDialogLevelSetDiffusion

      public JDialogLevelSetDiffusion(Frame theParentFrame, ModelImage im)
      Creates new dialog for finding the level set.
      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
    • 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.
    • focusLost

      public void focusLost(FocusEvent event)
      When the user clicks the mouse out of a text field, resets the neccessary variables.
      Specified by:
      focusLost in interface FocusListener
      Overrides:
      focusLost in class JDialogBase
      Parameters:
      event - event that triggers this function
    • itemStateChanged

      public void itemStateChanged(ItemEvent event)
      Changes scale based on resolution check box.
      Specified by:
      itemStateChanged in interface ItemListener
      Overrides:
      itemStateChanged in class JDialogBase
      Parameters:
      event - Event that cause the method to fire
    • init

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