//
// Histogram SAMPLE
// This SAMPLE shows how to use the SAMPLE Grabber filter for video image processing.
// Conceptual background:
// A histogram is just a frequency count of every pixel value in the image.
// There are various well-known mathematical operations that you can perform on an image
// using histograms, to enhance the image, etc.
// Histogram stretch (aka automatic gain control):
// Stretches the image histogram to fill the entire range of values. This is a "point operation,"
// meaning each pixel is scaled to a new value, without examining the neighboring pixels. The
// histogram stretch does not actually require you to calculate the full histogram. The scaling factor
// is calculated from the minimum and maximum values in the image.
This will SAMPLE all 8 A/D-channels.
The result will be send out via UART1 and can be seen within
any terminal-program (9600 Baud).
With each pressed key the next channel will be converted.
No interrupts are used.
This will SAMPLE all 8 A/D-channels by the continous mode.
Each end of conversion will call an interrupt routine,
where the AD-channel is put to Port4[2..0]
and the upper nibble of the result is put to Port4[7..4].
Port 4 is connected to the user LEDs of the FlashCan100P Evaluation-Board