Open

by damned truths

submit your photo


Hall of Fame
View past winners from this year

Please participate in Meta
and help us grow.

Take the 2-minute tour ×
Photography Stack Exchange is a question and answer site for professional, enthusiast and amateur photographers. It's 100% free, no registration required.

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.

share|improve this question
1  
    
Are the two photos of identical size and geometry? That is, same lens, same framing, same distance to subject etc. In that case, you can combine the luminance of A with the color channels (LAB or HSV) of B. –  DarenW Dec 23 '13 at 4:07
    
@mattdm That is exactly what i meant . Thanks . I just didn't know the correct google keyword before i asked this question . –  soubunmei Nov 2 at 12:06

1 Answer 1

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.

share|improve this answer
    
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

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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