Skip to content

array_histogram

array_histogram(img, low, high, hist)

Categories: Image corrections

Description

computes the histogram for an image Go through the data to compute a histogram of the values Previous call of array_stats would help to set up this call compare to np.bincount - this does not gain much better implementations can be done img[] Input data array (1D or 2D.ravel(), so sparse or dense) npx length of data array (contiguous) low Lower edge of first bin high Upper edge of last bin hist[] Histogram to be output nhist Number of bins in the histogram

Constraints

  • img.format == 'f'
  • ( hist.format == 'i' or hist.format == 'l' )

Overloads

C function Condition
array_histogram always

Built from commit 7ba8255fa8d680e1a1df79e67aee3873247ce69c (v0.4.5)