Class BatchRegistrationPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

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

  • Constructor Details

    • BatchRegistrationPanel

      public BatchRegistrationPanel(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
    • 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.
    • isAvgFaceSelected

      public boolean isAvgFaceSelected()
      Returns true if the item selected in the menu is the average face
      Returns:
      true if the item selected in the menu is the average face
    • selectAvgFace

      public void selectAvgFace()
      Select the average face in the manu, if exists.
    • addAndSelectAvgFace

      public void addAndSelectAvgFace(HumanFace face)
      The average face is added, replaced, or removed (if null) and the action event is automatically triggered by the jBomboBox1 with the first item set as selected. Also, the export button is switched on/off.
      Parameters:
      face - new AVG face
    • exportAvgFace

      public void exportAvgFace()
      Exports the average face, if exists.
    • getFacesProxyDecorator

      public FacesProxyDecorator getFacesProxyDecorator()
    • getIcpUndersampling

      public int getIcpUndersampling()
      Returns the number of desired points, 0 for no downsampling
      Returns:
      the number of desired points, 0 for no downsampling
    • getMaxRegistrationIterations

      public int getMaxRegistrationIterations()
      Returns the number of iterations of the Generalized Procrustes Registration
      Returns:
      the number of iterations of the Generalized Procrustes Registration
    • getAvgSimilarityThreshold

      public double getAvgSimilarityThreshold()
      Returns a threshold for the Generalized Procrustes Registration
      Returns:
      a threshold for the Generalized Procrustes Registration
    • scaleIcp

      public boolean scaleIcp()
      Determines whether to scale during ICP registration.
      Returns:
      if true, then ICP scales
    • getRegistrationStrategy

      public String getRegistrationStrategy()
      Returns selected registration strategy
      Returns:
      selected registration strategy
    • getAvgFaceStrategy

      public String getAvgFaceStrategy()
      Returns selected strategy for the average face computation
      Returns:
      selected strategy for the average face computation