Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About error maps #5

Open
Heroandzhang opened this issue Sep 26, 2021 · 1 comment
Open

About error maps #5

Heroandzhang opened this issue Sep 26, 2021 · 1 comment

Comments

@Heroandzhang
Copy link

Hi!I would like to ask you how to get the error maps? Is there specific codes for these? Thank you very much!

@JunHeum
Copy link
Owner

JunHeum commented Dec 18, 2021

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants