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 Link icon

  • Constructor Details Link icon

    • BatchRegistrationPanel Link icon

      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 Link icon

    • getIcon Link icon

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

      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 Link icon

      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 Link icon

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

      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 Link icon

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

      public FacesProxyDecorator getFacesProxyDecorator()
    • getIcpUndersampling Link icon

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

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

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

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

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

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