I have two pictures. The original and another with the color levels modified with Photoshop. This box
I need to extract the amount of dark, white and mid in the input levels applied to the original image that result in the modified one. I try comparing some of the pixels. I get good approximations sometimes.
What is the best way to accomplish this? I only need this 3 parameters