We have some legacy code written in C that uses GraphicMagik to manipulate an image i.e Rotate the Image We would like to write some tests in Python to test this code, I can use OpenCV for resizing, but how do I determine if a rotation of the Image against the Original has suceeded?
Asked
Active
Viewed 198 times
0
-
1What do you mean *"how can I tell if a rotation succeeded?"* Why would a rotation fail? Please show your code and how the images look before and afterwards. – Mark Setchell May 20 '19 at 13:06
-
Thanks for a constructive comment – user3608184 May 20 '19 at 15:25
-
You could compute the difference of the two images and look for minimum average difference. – fmw42 May 24 '19 at 00:43
-
See https://stackoverflow.com/questions/56183201/detect-and-visualize-differences-between-two-images/56190482#56190482. – fmw42 May 24 '19 at 00:50