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]
-
Notifications
You must be signed in to change notification settings - Fork 0
color-specification
License
miladce/opencv
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
color-specification
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published