|
Win32 Systems (Win98, Me, NT, 2000 and XP)
The PXR800 contains a 256-byte by 8-byte Look Up Table (LUT). This sample
shows you how to manage that LUT.
Incoming video is digitized and then passed through the LUT. Digitizing
the incoming video yields the values 0 through 255. Those values are used
as indices to the LUT which is loaded by default with the values 0 through 255.
Since the input values match the values in the LUT, the output matches the
input. In other words, there is no change in the video. However. if you
load the LUT with the values 255 to 0, then the output video is the exact
opposite from the input: it looks like a photographic negative.
The LUT is most commonly used as a threshholding device. Let's say your
algorithms are not interested in any values of light below 50. You would
load the 0 through 49 indices with the value 0, and you would load the
indices 50 through 255 with the values of 50 through 255. That means any
light below the value of 50 would be completely black.
This sample shows you how to load the LUT by all three methods: full,
partial, or single values.
In this sample you will learn how to do the following:
1. Create a simple control window.
2. Create a video display window.
3. Initialize the PXR frame grabber.
4. Grab individual frames and display them in the video display window.
5. Read and change the values in the frame grabbers LUT.
In the PXR frame grabber samples, we have decided to use two windows
(one for control and one for video display). We do this throughout the samples.
We feel that two windows gives you more flexibility in designing controls
although it does add some complexity.
This program uses one external modules that will be common to all of our
samples for the PXR Series frame grabbers.
1. PXR_DISPLAY.C -- video display common code
|