I want to perform histogram equalization for an RGB image. For this , at first I generate the histogram using the following steps :
1)Map the intensity in the range [0,255] , by taking the gray value as val=img.getRGB(j, i) & 0xFF;
2)count the number of pixels corresponding to each intensity value(0-255)
3)Plot the histogram.
4)perform equalization
5)Now the problem I am concerned with is , to map to the RGB image corresponding to the equalized histogram. How do I do that? All are grayvalues .Any solution?
256^3 x 64
bytes (assuming integer), and unfortunately this is too fine to have any discriminative power. It's best if you quantize the bins before computing the histogram. – rayryeng