[Gimp-user] get raw histogram data for image, not just statistics

Sven Neumann sven at gimp.org
Tue Sep 11 23:49:54 PDT 2007


Hi,

On Tue, 2007-09-11 at 07:15 -0700, phil laks wrote:

> however the only function i see in the PDB is 
> (mean,std_dev,median,pixels,count,percentile) = gimp_histogram 
> (drawable,channel,start_range,end_range) 
> which would require 256 calls of this function to get the data. Is 
> there another function that can return an array of the histogram? 

What's wrong with doing 256 PDB calls? Shouldn't take considerable time
to complete. If you dislike this, you could also look at the pixel data
and create the histogram yourself.


Sven





More information about the Gimp-user mailing list