/** * Default constructor with the template to match. When matching is * performed by {@link #analyseImage(FImage)}, the whole image * will be searched. * * @param template The template. * @param mode The matching mode. */ public FourierTemplateMatcher(FImage template, Mode mode) { this.correlation = new FourierCorrelation(template); this.mode = mode; this.templateWidth = template.width; this.templateHeight = template.height; }
/** * Default constructor with the template to match. When matching is * performed by {@link #analyseImage(FImage)}, the whole image * will be searched. * * @param template The template. * @param mode The matching mode. */ public FourierTemplateMatcher(FImage template, Mode mode) { this.correlation = new FourierCorrelation(template); this.mode = mode; this.templateWidth = template.width; this.templateHeight = template.height; }