How can I calculate the histogram of an image using parallel Computing? Histogram of an image in serial is easy, but I don't have any idea about calculating it in Parallel.

Any idea, algorithm, source code or a helpful link would be appreciated.

I am using MPI.