Class JDialogAGVF

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

public class JDialogAGVF extends JDialogBase implements AlgorithmInterface, ItemListener
Dialog to get user input, then call the snake-like algorithm.
See Also:
  • Field Details

    • serialVersionUID

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

      private AlgorithmAGVF agvfAlgo
      DOCUMENT ME!
    • boundaryIterations

      private int boundaryIterations
      DOCUMENT ME!
    • checkboxDisplay

      private JCheckBox checkboxDisplay
      DOCUMENT ME!
    • dilation

      private float dilation
      default dilation:.
    • do25D

      private boolean do25D
      DOCUMENT ME!
    • do25DCheckBox

      private JCheckBox do25DCheckBox
      DOCUMENT ME!
    • doCellTracking

      private boolean doCellTracking
      When true, do a Cell-tracking version of Active GVF Contours:.
    • doCellTrackingCheckBox

      private JCheckBox doCellTrackingCheckBox
      Checkbox to turn cell-tracking on/off:.
    • doDilate

      private boolean doDilate
      When true, dilate the cell radius before finding the next contour:.
    • doDilateCheckBox

      private JCheckBox doDilateCheckBox
      Checkbox to turn cell-tracking on/off:.
    • groupNum

      private int groupNum
      DOCUMENT ME!
    • gvfIterations

      private int gvfIterations
      DOCUMENT ME!
    • image

      private ModelImage image
      DOCUMENT ME!
    • kValue

      private float kValue
      DOCUMENT ME!
    • labelDilation

      private JLabel labelDilation
      user-interface for setting the cell-radius dilation (multiple of cell expected radius).
    • labelGaussZ

      private JLabel labelGaussZ
      DOCUMENT ME!
    • labelRadius

      private JLabel labelRadius
      user-interface for setting the estimated cell-radius (pixels).
    • labelResampling

      private JLabel labelResampling
      user-interface for setting the uniform-resampling constraint contribution:.
    • labelShape

      private JLabel labelShape
      user-interface for setting the shape constraint contribution:.
    • labelSize

      private JLabel labelSize
      user-interface for setting the size constraint contribution:.
    • labelVelocity

      private JLabel labelVelocity
      user-interface for setting the initial cell velocity:.
    • propagate

      private JRadioButton propagate
      DOCUMENT ME!
    • propagationFlag

      private boolean propagationFlag
      DOCUMENT ME!
    • radiusConstraint

      private float radiusConstraint
      Default cell radius (pixels).
    • removeOriginal

      private boolean removeOriginal
      DOCUMENT ME!
    • removeOriginalCheckBox

      private JCheckBox removeOriginalCheckBox
      DOCUMENT ME!
    • resamplingConstraint

      private float resamplingConstraint
      default sampling constraint contribution:.
    • resultImage

      private ModelImage resultImage
      DOCUMENT ME!
    • scaleX

      private float scaleX
      DOCUMENT ME!
    • scaleY

      private float scaleY
      DOCUMENT ME!
    • scaleZ

      private float scaleZ
      DOCUMENT ME!
    • shapeConstraint

      private float shapeConstraint
      default shape constraint contribution:.
    • sigmas

      private float[] sigmas
      DOCUMENT ME!
    • singleSlice

      private JRadioButton singleSlice
      DOCUMENT ME!
    • sizeConstraint

      private float sizeConstraint
      default size constraint contribution:.
    • smoothness

      private float smoothness
      DOCUMENT ME!
    • srcVOI

      private VOI srcVOI
      DOCUMENT ME!
    • textBoundaryIterations

      private JTextField textBoundaryIterations
      DOCUMENT ME!
    • textDilation

      private JTextField textDilation
      DOCUMENT ME!
    • textDx

      private JTextField textDx
      DOCUMENT ME!
    • textDy

      private JTextField textDy
      DOCUMENT ME!
    • textGaussX

      private JTextField textGaussX
      DOCUMENT ME!
    • textGaussY

      private JTextField textGaussY
      DOCUMENT ME!
    • textGaussZ

      private JTextField textGaussZ
      DOCUMENT ME!
    • textGVFIterations

      private JTextField textGVFIterations
      DOCUMENT ME!
    • textK

      private JTextField textK
      DOCUMENT ME!
    • textRadius

      private JTextField textRadius
      DOCUMENT ME!
    • textResampling

      private JTextField textResampling
      DOCUMENT ME!
    • textShape

      private JTextField textShape
      DOCUMENT ME!
    • textSize

      private JTextField textSize
      DOCUMENT ME!
    • textSmoothness

      private JTextField textSmoothness
      DOCUMENT ME!
    • titles

      private String[] titles
      DOCUMENT ME!
    • velocityDx

      private float velocityDx
      default initial velocity (dx):.
    • velocityDy

      private float velocityDy
      default initial velocity (dx):.
    • voiColor

      private Color voiColor
      DOCUMENT ME!
    • VOIs

      private ViewVOIVector VOIs
      DOCUMENT ME!
  • Constructor Details

    • JDialogAGVF

      public JDialogAGVF(Frame theParentFrame, ModelImage im)
      Creates new dialog for finding the GVF.
      Parameters:
      theParentFrame - Parent frame
      im - Source image
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent event)
      When the OK button is pressed, sets variables and calls the algorithm. When the cancel button is pressed, closes the dialog.
      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 algorithm 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.
    • init

      private void init()
      Initializes GUI variables and displays dialog.