DRCtrlGetHistogram

From EDM2
Jump to: navigation, search

Description

Gets the histogram of an image.

Syntax

rc=DRCtrlGetHistogram("x:\images\example.jpg", 'hist.')

Return Code

Returns:

1:	success
0:	failure

Remarks

Note: The stem 'hist.' contains the histogram. hist.0 is 256 or 0 in case of an error. For each possible brightness level the number of pixels with that value is in hist.a._grey with a an index from 1 to 256.

DO a=1 to hist.0
  SAY hist.a._grey
END

This function can only be used with 24bit images.