how to make two images only different from the brightness become the same
I take out two images only different from the brightness. I want to make them subtract with the function absdiff of OpenCV. But fail, how can I make them become the same. Thanks!
Don't know what is your problem, if you want to make them same, just assign a to b, why do you want to subtract them?
I have made a program about the instrument detection. And I take out two images about the instrument pointer. I use perspective transformation to correct one of the images. Finally, I achieve two images different from the location of the pointer. I only need to compare the location of the pointer. So I use the OpenCV function absdiff to subtract them. But the result includes other information. I find two images have been different from the brightness. I need a good method to solve the problem so that the two images have the same brightness and are different from the pointer location. Thanks!!
Try to convert images to HSV color model and subtract only H channel