While implementing histogram equilization using opencl, many issues are faced. Can anyone suggest how to implement histogram equalization algorithm using opencl kernel functions.