code: public void setTemplate(T template, T mask , int maxMatches) {
  		this.template = template;
  		this.mask = mask;
  		this.maxMatches = maxMatches;
  	}
docs: Specifies the template to search for and the maximum number of matches to return.
  
  @param template   Template being searched for
  @param mask       Optional mask.  Same size as template.  0 = pixel is transparent, values larger than zero
  determine how influential the pixel is.  Can be null.
  @param maxMatches The maximum number of matches it will return