Do more. Code less. Free software for GPU computing.
<scroll to top>

Range Histogram

Image Histograms

Form a non-normalized histogram from input matrix, using the specified minimum and maximum range for binning. More...

Device pointer interface: Image Histogram

Parameters:
[out]d_histCount of occurances - PxN matrix
[in]lengthLength of input matrix d_data - N
[in]d_dataDevice-side vector or matrix - MxN
[in]nbinsNumber of bins in h_bins - P
[in]h_binsHost-side vector indicating center of each bin (can be NULL)
[in]nsetsNumber of rows in input data - M
[in]ngforNumber of gfor passes
[in]minMinimum binned value (eg. 0)
[in]maxMaximum binned value (eg. 255)
Note:
d_hist is: a 1xP vector hist for vector inputs, or a PxN matrix hist for MxN matirx inputs

afError af_histminmax_S (float *d_hist, unsigned len, const float *d_buf, unsigned bins, const float *hdata, unsigned nDataSets, unsigned ngfor, float min, float max)
 Single-precision histogram calculation.

Detailed Description

Form a non-normalized histogram from input matrix, using the specified minimum and maximum range for binning.


Function Documentation

afError af_histminmax_S ( float *  d_hist,
unsigned  len,
const float *  d_buf,
unsigned  bins,
const float *  hdata,
unsigned  nDataSets,
unsigned  ngfor,
float  min,
float  max 
)

Single-precision histogram calculation.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines