PDB needs a call to proper retrieve image histogram values
@jsbueno
Submitted by João Sebastião de Oliveira Bueno Link to original bug (#721834)
Description
Currently, the only call to get histogram values is
gimp-histogram
which:
-
Only retrieves data about a single color range at a time, thus requiring several calls if the caller plug-in wants the actual image histogram
-
Only works with values on the 0-255 range, and is obsolete for GIMP master. Valid ranges should be floating numbers and depend on the underlying drawable's precision.
Proposed update: Add a
gimp-drawable-histogram-get (drawable, channel, start-range, end-range, bucket_width) -> ( number-of-buckets, (pixel-count-for-bucket-0, pixel-count-for-bucket-1, ..., pixel-count-for-bucket-n))
-- The exiting call makes some basic statistics for the pixel values., like mean, std-dev, median, total-pixel-count, and percentile ) - I'd propose to let these out of the new call.
However, there we still would not have a call to retrieve these values for higher depth images. So maybe we should add a gimp-drawable-histogram-range-statistics, with the same signature as the existing gimp-histogram to retrieve these values instead?
Version: git master