https://jp.mathworks.com/help/vision/ref/anomalymapoverlay.html
anomalyMapOverlay - Overlay heatmap on image using per-pixel anomaly scores - MATLAB
This MATLAB function fuses an overlay of the per-pixel anomaly scores in map as a heatmap on a grayscale or RGB background image, I.
overlayheatmapimage