Class AssociationScorePanel<D>

All Implemented Interfaces:
MouseListener, MouseMotionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

public class AssociationScorePanel<D> extends CompareTwoImagePanel implements MouseListener
Displays relative association scores for different features. When a feature is clicked on in an image the best fit scores are show in the other image.
See Also:
  • Constructor Details

    • AssociationScorePanel

      public AssociationScorePanel(double containmentFraction)
  • Method Details

    • setScorer

      public void setScorer(ScoreAssociation<D> scorer)
    • setLocation

      public void setLocation(List<Point2D_F64> leftPts, List<Point2D_F64> rightPts, List<D> leftDesc, List<D> rightDesc)
    • computeScore

      protected void computeScore(boolean isTargetLeft, int targetIndex)
    • drawFeatures

      protected void drawFeatures(Graphics2D g2, double scaleLeft, int leftX, int leftY, double scaleRight, int rightX, int rightY)
      Description copied from class: CompareTwoImagePanel
      Implement this function to draw features related to each image.
      Specified by:
      drawFeatures in class CompareTwoImagePanel
      scaleLeft - Scale of left image.
      leftX - Left image (0,0) coordinate.
      leftY - Left image (0,0) coordinate.
      scaleRight - Scale of right image.
      rightX - Right image (0,0) coordinate.
      rightY - Right image (0,0) coordinate.
    • isValidPoint

      protected boolean isValidPoint(int index)
      Specified by:
      isValidPoint in class CompareTwoImagePanel