예제 #1
0
  /**
   * Get the top-N "best" responses found by the template matcher.
   *
   * @param numResponses The number of responses
   * @return the best responses found
   */
  public FValuePixel[] getBestResponses(int numResponses) {
    Comparator<FValuePixel> comparator =
        mode.scoresAscending()
            ? FValuePixel.ReverseValueComparator.INSTANCE
            : FValuePixel.ValueComparator.INSTANCE;

    return getBestResponses(numResponses, responseMap, getXOffset(), getYOffset(), comparator);
  }