I am working on CLAHE algorithm in order to contrast enhancement. I try to find best clip value to get best result image. However, each input image desires different clip value. Therefore, I need an adaptive clip value for each input image that can be known as "plateau number".
I think histogram of the image can be used to find adaptive clip value. Is there any advice or link?