Skip to content

Latest commit

 

History

History
13 lines (13 loc) · 822 Bytes

README.md

File metadata and controls

13 lines (13 loc) · 822 Bytes

Color Specification

color specification in opencv:
after equalizing the histogram of the input image and desired histogram,
we must relate this two equalized histograms.
for equalizing histograms we must normalize the cdf of the histograms. and then map their colors.
these links may help you:
http://fourier.eng.hmc.edu/e161/lectures/contrast_transform/node3.html
https://www.scribd.com/doc/106790597/OPENCV-Topic-04-Histogram-Specification#scribd
I wrote a function to use mapping instead of the mapping part of the second link..
my function's args are the values of the normalized of cdf of histograms and the output is the mapping array that specifies a color for the colors of input image.
mappedColorUsedInDesiredImage=outputarray[inputImageColor]