Class BatchDistancePanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class BatchDistancePanel extends ControlPanel
A control panel for bath (N:N) processing. It uses it's own HumanFaceFactory to handle processed faces.
See Also:
  • Field Details

  • Constructor Details

    • BatchDistancePanel

      public BatchDistancePanel(ActionListener action, FacesProxyDecorator batchFacesProxy)
      Constructor.
      Parameters:
      action - Action listener
      batchFacesProxy - Shared faces across multiple batch tabs
      Throws:
      IllegalArgumentException - if the faces argument is empty or missing
  • Method Details

    • getIcon

      public ImageIcon getIcon()
      Description copied from class: ControlPanel
      Returns panel's icon.
      Specified by:
      getIcon in class ControlPanel
      Returns:
      panel's icon
    • updateDatasetMenu

      public void updateDatasetMenu()
      Updates drop-down menu to select currently shown face
    • getSelectedFace

      public HumanFace getSelectedFace()
      Returns the face selected in a menu.
      Returns:
      The face selected in a menu. This is either some face from the dataset, or the average face.
    • getFacesProxyDecorator

      public FacesProxyDecorator getFacesProxyDecorator()
    • enableSimilarityExport

      public void enableSimilarityExport(boolean on)
      Sets the similarity export button
      Parameters:
      on - set on or off
    • getSimilarityStrategy

      public String getSimilarityStrategy()
      Returns selected similarity strategy
      Returns:
      selected similarity strategy