Class BatchDistancePanel

All Implemented Interfaces:
BatchControlPanel, ImageObserver, MenuContainer, Serializable, Accessible

public class BatchDistancePanel extends ControlPanel implements BatchControlPanel
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, Task task)
      Constructor.
      Parameters:
      action - Action listener
      task - Task with 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 StoredHumanFace getSelectedFace()
      Returns the face selected in a menu.
      Specified by:
      getSelectedFace in interface BatchControlPanel
      Returns:
      The face selected in a menu. This is either some face from the dataset, or the average face.
    • getTask

      public Task getTask()
      Description copied from interface: BatchControlPanel
      Returns the face proxy decorator
      Specified by:
      getTask in interface BatchControlPanel
      Returns:
      face proxy decorator
    • 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