I'm trying to develop an application that will stretching the histogram for each region..
In one picture, the histogram will be divided into 3 region which are dark, mid and bright region. the range will be: [0 85], [85 171] and [171 255]
my problem is, how to write a code to use histogram equalization on each region separately and after that, the result will be in one histogram and show one image too.