I need to calculate brightness histogram similar to the jTrim software using OpenCV C++.
I convert the BGR image to HLS space and use L histogram of HLS(it gives simi