3

I have two images A and B, of the same object. A has distorted color, but the color of B is better. I want to correct the color of A with the help of information contained in B. How do I do this?

I am an ImageMagick fan, but also appreciate GIMP or any other tools.

I think the process should be first compare and establish a mapping between the two sets of colors, and then apply the mapping to A. The second step is straightforward utilizing the Color LUT "lookup table" with ImageMagick. But I don't find a clue of the comparing step.

While B is good in color, it may be bad in resolution. Otherwise I should just keep B and throw A to the trash.

2

A good way is to work channel by channel. Put your images next to each other or in a split view. Then activate only the red channel. You can then adjust the curve for the red channel until the two grayscale images match up. Do the same for the green and blue channels.

This way you have created a 2D LUT.

  • Having three separate 1D LUTs may help partway, but isn't going to deal well with the case of different cameras, different sensors, different light sources. Metamerism, nonmatching sensor responses, all that. – DarenW Dec 23 '13 at 4:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.