The PDB function "gimp-histogram" is that which you seek.
Quoting Jan Wuerthner <[EMAIL PROTECTED]>:
Anyway, I have seen there is a function "gimp_levels" I can use to
set the values. Now I need something like "gimp_get_levels" to
determine the values I want to set. I haven't found anything to get
the levels information from a drawable. Can anyone help me?
Gimp-user mailing list