Documentation
|
|
The C interface for histogram equalization. More...
| afError | af_histequalize_S (float *d_out, unsigned length, const float *d_data, unsigned nbins, const float *d_bins) |
| Equalize a given vector or matrix based on a given histogram. More... | |
The C interface for histogram equalization.
A histogram is a representation of the distribution of data in an image. This representation is essentially a graph consisting of the data range or domain on one axis and frequency of occurence on the other axis. All the data in the domain is counted in the appropriate bin. The total number of elements belonging to each bin is known as the bin's frequency.
The regular histogram function creates bins of equal size between the minimum and maximum of the input data (calculated internally). The histogram min-max function takes input parameters minimum and maximum, and divides the bins into equal sizes within the range specified by min and max parameters. All values less than min in the data range are placed in the first (min) bin and all values greater than max will be placed in the last (max) bin.
Data normalization via histogram equalization
| afError af_histequalize_S | ( | float * | d_out, |
| unsigned | length, | ||
| const float * | d_data, | ||
| unsigned | nbins, | ||
| const float * | d_bins | ||
| ) |
Equalize a given vector or matrix based on a given histogram.
| [out] | d_out | Device-side equalized data |
| [in] | length | Length of input vector d_data (M*N for matrix) |
| [in] | d_data | Device-side vector or matrix of elements to equalize |
| [in] | nbins | Number of bins in h_bins |
| [in] | d_bins | Device-side bins |