docs: protected void computeTemplateConfidence() {
  		double max = 0;
  		for( int i = 0; i < fernRegions.size(); i++ ) {
  			ImageRectangle region = fernRegions.get(i);
  
  			double confidence = template.computeConfidence(region);
  
  			max = Math.max(max,confidence);
  
  			if( confidence < config.confidenceThresholdUpper)
  				continue;
  			TldRegion r = candidateDetections.grow();
  			r.connections = 0;
  			r.rect.set(region);
  			r.confidence = confidence;
  		}
  	}