I want to get a histogram of my input_image and then do some process on it and after that apply new histogram on the input_image. how can I apply new histogram on the image?
Asked
Active
Viewed 411 times
0
-
1Apply a histogram? I don’t think this makes sense. Operations that modify the histogram do so by putting each pixel through some transfer function, they never compute a histogram. – Cris Luengo May 18 '19 at 14:51
-
i think you are talking about histogram equalization or histogram matching, see this link https://stackoverflow.com/questions/26763974/histogram-matching-of-two-images-without-using-histeq and https://stackoverflow.com/questions/24094649/explanation-of-the-histogram-equalization-function-in-matlab – user8190410 May 18 '19 at 15:20
-
for python you can see this link https://opencv-python-tutroals.readthedocs.io/en/latest/py_tutorials/py_imgproc/py_histograms/py_histogram_equalization/py_histogram_equalization.html – user8190410 May 18 '19 at 15:24
-
If you add `1` to every pixel, the histogram will move one pixel to the right if you re-compute it... other than that, I am unsure what you mean. – Mark Setchell May 18 '19 at 15:28