|
|
Functions | |
| array | histogram (const array &data, unsigned nbins) |
| Histogram of all values in data. | |
| array | histogram (const array &data, unsigned nbins, float min, float max) |
| Histogram of all values in data. | |
| array | histequal (const array &data, const array &histogram) |
| Data normalization via histogram equalization. | |
| array af::histogram | ( | const array & | data, |
| unsigned | nbins | ||
| ) |
Histogram of all values in data.
// create image histogram using 256 bins array ihist = histogram(img_in, 256);
| [in] | data | image treated as vector |
| [in] | nbins | Number of output bins to populate |
| array af::histogram | ( | const array & | data, |
| unsigned | nbins, | ||
| float | min, | ||
| float | max | ||
| ) |
Histogram of all values in data.
// create image histogram using 100 bins, // with bins scaled from 1 to 10, and // bin[0] gets -inf to 1 // bin[99] gets 10 to inf array ihist = histogram(img_in, 100, 0, 10);
| [in] | data | image treated as vector |
| [in] | nbins | Number of bins to populate between min and max |
| [in] | min | minimum bin value (accumulates -inf to min) |
| [in] | max | maximum bin value (accumulates max to inf) |
| array af::histequal | ( | const array & | data, |
| const array & | histogram | ||
| ) |
Data normalization via histogram equalization.
// img_in and img_out are single channel images // image histogram equalization array ihist = histogram(img_in, 256); array img_out = histequal(img_in, ihist);
| [in] | data | non-normalized input (!! assumes values [0-255] !!) |
| [in] | histogram | target histogram to approximate in output (based on # of bins) |
histogram