Documentation
|
|
The C++ interface for histequal. More...
| array | histequal (const array &data, const array &histogram) |
The C++ interface for histequal.
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
| array af::histequal | ( | const array & | data, |
| const array & | histogram | ||
| ) |
| [in] | data | non-normalized input (!! assumes values [0-255] !!) |
| [in] | histogram | target histogram to approximate in output (based on # of bins) |
histogram