Class JDialogCentroidThreshold

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

public class JDialogCentroidThreshold extends JDialogBase
Creates the dialog to input inital centroid values and threshold value for each class for AlgorithmMSpectralFuzzyCMeans.
See Also:
  • Field Details

    • serialVersionUID

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

      private float[] centroids
      DOCUMENT ME!
    • defaultValueInput

      private JTextField[] defaultValueInput
      DOCUMENT ME!
    • gbc

      private GridBagConstraints gbc
      DOCUMENT ME!
    • gbl

      private GridBagLayout gbl
      DOCUMENT ME!
    • i

      private int i
      DOCUMENT ME!
    • imageName

      private String imageName
      DOCUMENT ME!
    • minimum

      private float minimum
      DOCUMENT ME!
    • maximum

      private float maximum
      DOCUMENT ME!
    • nClasses

      private int nClasses
      DOCUMENT ME!
    • threshold

      private float threshold
      DOCUMENT ME!
    • thresholdValueInput

      private JTextField thresholdValueInput
      DOCUMENT ME!
    • tmpStr

      private String tmpStr
      DOCUMENT ME!
  • Constructor Details

    • JDialogCentroidThreshold

      public JDialogCentroidThreshold(Frame theParentFrame, String _imageName, int _nClasses, float _min, float _max)
      Constructor.
      Parameters:
      theParentFrame - parent frame
      _imageName - image name
      _nClasses - segmentation classes
      _min - image minimum
      _max - image maximum
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent event)
      Closes dialog box when the OK button is pressed.
      Specified by:
      actionPerformed in interface ActionListener
      Overrides:
      actionPerformed in class JDialogBase
      Parameters:
      event - event that triggers function
    • getCentroids

      public float[] getCentroids()
      accessor that returns the array of initial centroid values.
      Returns:
      array of initial centroid values
    • getThreshold

      public float getThreshold()
      getThreshold - accessor that returns the threshold value.
      Returns:
      threshold value