code: public static void showMatchIntensity(GrayF32 image, GrayF32 template, GrayF32 mask) {
  
  		// create algorithm for computing intensity image
  		TemplateMatchingIntensity<GrayF32> matchIntensity =
  				FactoryTemplateMatching.createIntensity(TemplateScoreType.SUM_DIFF_SQ, GrayF32.class);
  
  		// apply the template to the image
  		matchIntensity.setInputImage(image);
  		matchIntensity.process(template, mask);
  
  		// get the results
  		GrayF32 intensity = matchIntensity.getIntensity();
  
  		// adjust the intensity image so that white indicates a good match and black a poor match
  		// the scale is kept linear to highlight how ambiguous the solution is
  		float min = ImageStatistics.min(intensity);
  		float max = ImageStatistics.max(intensity);
  		float range = max - min;
  		PixelMath.plus(intensity, -min, intensity);
  		PixelMath.divide(intensity, range, intensity);
  		PixelMath.multiply(intensity, 255.0f, intensity);
  
  		BufferedImage output = new BufferedImage(image.width, image.height, BufferedImage.TYPE_INT_BGR);
  		VisualizeImageData.grayMagnitude(intensity, output, -1);
  		ShowImages.showWindow(output, "Match Intensity", true);
  	}
docs: Computes the template match intensity image and displays the results. Brighter intensity indicates
  a better match to the template.