w = small_.width - temp_.width + 1; FourierTemplateMatcher matcher = new FourierTemplateMatcher(temp_, FourierTemplateMatcher.Mode.NORM_CORRELATION_COEFFICIENT); matcher.analyseImage(small_); float[][] ncc_ = matcher.getResponseMap().pixels;
/** * 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 TemplateMatcher.getBestResponses(numResponses, responseMap, getXOffset(), getYOffset(), comparator); }
w = small_.width - temp_.width + 1; FourierTemplateMatcher matcher = new FourierTemplateMatcher(temp_, FourierTemplateMatcher.Mode.NORM_CORRELATION_COEFFICIENT); matcher.analyseImage(small_); float[][] ncc_ = matcher.getResponseMap().pixels;
/** * 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 TemplateMatcher.getBestResponses(numResponses, responseMap, getXOffset(), getYOffset(), comparator); }
final FourierTemplateMatcher matcher = new FourierTemplateMatcher( f.templateImage, FourierTemplateMatcher.Mode.NORM_CORRELATION_COEFFICIENT); matcher.analyseImage(searchArea); final float[][] ncc_ = matcher.getResponseMap().pixels;