Image comparison - correcting brightness
Posted: 2013-10-22T05:48:22-07:00
Hi,
I use IM for verifying my application behavior(testing purpose) using the 'compare' function. But if the image has some brightness issue specific to rendering h/w, my tests are failing.
Image1 :
Image2 :
Normally for comparison purposes, I used NCC metric in gray scale mode. I tried NCC, AE and AE with fuzz on the mentioned images, but none of them showing a positive result. (at least 80% accuracy required)
Image size : 82x20
I want to pass the comparison, if their is a yellow highlight and the text in the region is exactly what I've specified.
Can some one help me to resolve this issue ?
I use IM for verifying my application behavior(testing purpose) using the 'compare' function. But if the image has some brightness issue specific to rendering h/w, my tests are failing.
Image1 :
Image2 :
Normally for comparison purposes, I used NCC metric in gray scale mode. I tried NCC, AE and AE with fuzz on the mentioned images, but none of them showing a positive result. (at least 80% accuracy required)
Image size : 82x20
Code: Select all
colorspace Approach Result
Image1 RGB NCC 0.187475
Image2 Gray NCC 0.200187
Image1 RGB AE 1640
Image2 Gray AE 1636
Image1 RGB AE - fuzz 12% 769
Image2 Gray AE - fuzz 12% 709
I want to pass the comparison, if their is a yellow highlight and the text in the region is exactly what I've specified.
Can some one help me to resolve this issue ?