ABME
ABME copied to clipboard
About error maps
Hi!I would like to ask you how to get the error maps? Is there specific codes for these? Thank you very much!
Hi, Heroandzhang.
To get the error maps for comparing a test frame and target frame, you first pixel-wise subtract two frames and compute the pixel-wise absolute value of the subtraction results, which we call an error map.
Next, using OpenCV library, you can obtain heat map of the error map for visualization.
heat_error = cv2.applyColorMap(error, cv2.COLORMAP_JET)
Finally, save it then check it.
cv2.write('error_map.png', heat_diff)