Class RegistrationPanel

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

public class RegistrationPanel extends ControlPanel implements Animatable
Panel used to interactively visualize two face and adjust their registration.
See Also:
  • Field Details

  • Constructor Details

    • RegistrationPanel

      public RegistrationPanel(ActionListener action)
      Constructor.
      Parameters:
      action - Action listener
  • Method Details

    • getAndClearManualRotation

      public javax.vecmath.Vector3d getAndClearManualRotation()
      Returns the manual rotation info and resents it
      Returns:
      rotation info
    • getAndClearManualTranslation

      public javax.vecmath.Vector3d getAndClearManualTranslation()
      Returns the manual translation info and resents it
      Returns:
      translation info
    • getAndClearManualScale

      public double getAndClearManualScale()
      Returns the manual scale info and resents it
      Returns:
      scale info
    • setTranslationFactor

      public void setTranslationFactor(Scene scene)
      Computes and sets translation step based on the scene size
      Parameters:
      scene - A scene. Must not be null
    • getIcpUndersamplingStrength

      public int getIcpUndersamplingStrength()
      Returns ICP undersampling parameter
      Returns:
      ICP undersampling parameter
    • getRegistrationAlgorihm

      public String getRegistrationAlgorihm()
      Returns actually selected algorithm
      Returns:
      actually selected algorithm
    • getIcpUdersamplingStrategy

      public String getIcpUdersamplingStrategy()
      Return selected point sampling strategy
      Returns:
      selected point sampling strategy
    • setEnabledPlanes

      public void setEnabledPlanes(boolean on)
      Turns on or off the plane alignment
      Parameters:
      on - on-off value
    • setEnabledProcrustes

      public void setEnabledProcrustes(boolean on)
      Turns on or off the plane alignment
      Parameters:
      on - on-off value
    • setEnabledOpenCL

      public void setEnabledOpenCL(boolean on)
      Turns on or off the OpenCL dependant sampling strategies
      Parameters:
      on - on-off value
    • updateDistanceStats

      public void updateDistanceStats(DoubleSummaryStatistics hd, DoubleSummaryStatistics whd)
      Updates GUI elements that display statistical data about the calculated Hausdorff distance.
      Parameters:
      hd - Statistical data of the ordinary Hausdorff distance
      whd - Statistical data of the weighted Hausdorff distance
    • getScaleParam

      public boolean getScaleParam()
    • getIcpAutoCropParam

      public boolean getIcpAutoCropParam()
    • getMaxIcpIterParam

      public int getMaxIcpIterParam()
    • getMinIcpErrorParam

      public double getMinIcpErrorParam()
    • transform

      public void transform(AnimationDirection dir)
      Description copied from interface: Animatable
      Animation step.
      Specified by:
      transform in interface Animatable
      Parameters:
      dir - Transformation direction
    • getIcon

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

      public static ImageIcon getStaticIcon()
      Static implementation of the getIcon() method.
      Returns:
      Control panel icon