I have calculated the histogram of different pixels using the following statement:
pixel_histogram = [float(x)/float(number_of_pixels) for x in pixel_frequency]
If I want to return the maximum element in the list, I would simply do the following:
max(pixel_histogram)
How can I return the index of this maximum element?
Thanks.