How to equalize the histogram of one image wrt another image?

asked 2014-04-09 05:23:31 -0600

root gravatar image

I have two images, one source and one target. I want to get the histograms of both source and target. Finally match the histogram of target wrt source. The opnenCv method 'equalizeHist' does it for one single image. Is there a way to do it with two images??

edit retag flag offensive close merge delete

Comments

1

hmm do you want to match histograms, as in - similarity measure ?

then equalizeHist is the wrong function.

(calcHist/compareHist)

berak gravatar imageberak ( 2014-04-09 05:41:51 -0600 )edit

yeah "match" is a better word to describe it. I have calculated the cumulative histogram of both the images, now how to match them?? After matching, the target image must have the color properties of the source image....

root gravatar imageroot ( 2014-04-09 05:51:05 -0600 )edit