Palette
|
0 - Gray
|
Applies the standard 256-level grayscale palette. This is a regular mode of viewing a grayscale video.
|
1 - Inverse
|
Applies the inverted 256-level grayscale palette. The video will be displayed in the negative format.
|
2 - Saturated
|
Applies the grayscale palette with colorized upper entries. The saturated palette allows you to control the dynamic range of the video signal by bringing it slightly below the saturation level of the video camera or video amplifier. To achieve the maximum dynamic range, adjust the intensity of the light source and/or the gain and zero level of the video amplifier so that the red color corresponding to the brightest pixel values just barely shows up.
|
3 - Rainbow
|
Applies a color palette where the entries are evenly distributed along the Hue axis. This allows for assigning different color pigments to different levels of intensity.
|
4 - Spectra
|
Applies a color palette where the entries are distributed along the Hue and Luminance axes. That allows for assigning different color pigments to different levels of intensity while preserving the luminance scale.
|
5 - Isodense
|
Applies the 256-level grayscale palette, each 8-th entry of which is colorized. The isodense palette allows you to clearly see transitions between different levels of intensities as isolines on a topographic map.
|
6 - Multiphase
|
Applies the multiphase palette. Entries in the multiphase palette are at opposite ends of the color model so even small changes in gray levels are highlighted.
|
7 - Random
|
Applies the random color palette whose entries are filled with random values each time you select it from the menu.
|
8 - Threshold
|
Applies the grayscale palette with colorized luminance range of interest. Works in combination with SetROI.
|
|
pPalette [out,retval]
|
Pointer to the ordinal number of the currently selected palette
|
Palette [in]
|
The number of the palette to be selected
|
S_OK
|
Success
|
E_FAIL
|
Failure.
|
E_INVALIDARG
|
Invalid property value.
|
|
Private Sub Form_Load()
|
ActiveGige1.Acquire = True
|
Combo1.AddItem ("Gray")
|
Combo1.AddItem ("Inverse")
|
Combo1.AddItem ("Saturated")
|
Combo1.AddItem ("Rainbow")
|
Combo1.AddItem ("Spectra")
|
Combo1.AddItem ("Isodense")
|
Combo1.AddItem ("Multiphase")
|
Combo1.AddItem ("Random")
|
Combo1.ListIndex = 0
|
End Sub
|
|
Private Sub Combo1_Click()
|
ActiveGige1.Palette = Combo1.ListIndex
|
End Sub
|