best strategy to match color between two pictures

asked 2018-01-28 11:17:04 -0600

I am trying to match the color of two images to show them with a uniform dominant. This has to be done for black and white and color pictures. In the case of black and white, I am trying to alter the grayscale image of the child to give it the same dominant as the picture of the soldier. I would like also to have a strategy that might work in color too, but I am targeting black and white first. Color needs to be done too, but it might become easier after a little tinkering with black and white.

the face of a chile

the face of a young soldier

edit retag flag offensive close merge delete

Comments

what havve you tried, so far ?

berak gravatar imageberak ( 2018-01-28 11:18:30 -0600 )edit

I have tried a few different algorithms, like the one described here, but it works fine with the sample images, while it does havoc on faces. I think working in a YUV color space might be promising, but still have not tried code for this approach

Michele Costabile gravatar imageMichele Costabile ( 2018-01-28 11:32:25 -0600 )edit
1

More precisely, I might try histogram matching in luminance channel to match contrast. Maybe it should work for color too.

Michele Costabile gravatar imageMichele Costabile ( 2018-01-28 11:34:46 -0600 )edit

btw, forget anything with IplImage* in it. and your blogpost runs a shitty video, without asking.

berak gravatar imageberak ( 2018-01-28 11:35:58 -0600 )edit

you can try the code in this post

sturkmen gravatar imagesturkmen ( 2018-01-28 12:06:43 -0600 )edit