VISDEFTABLE
(Statement)

Read images on the camera and set the look-up table data for image output.

VISDEFTABLE <table number>,<input value>,<output value>

<table number>
Specifies the number of the look-up table (5 to 15).
<input value>
Specifies the input value of the table (0 to 255).
<output value>
Specifies the output value of the table (0 to 255).
Example of conversion using the look-up table


-
If you do not make a setting with this statement, the initial setting values apply.
-
This statement requires 2 to 3 seconds to complete.
-
Tables considered useful are assigned to the table numbers 0 to 4 beforehand. This statement cannot change the contents of these tables.Table 0: Normal (0 to 255)Table 1: 70% brightness compressed (0 to 175)Table 2: γ compensationTable 3: ReversedTable 4: 70% brightness compressed and reversed
-
To execute this statement, a µVision board (option) is required.
-
During execution of this statement, do not power off the controller. If you do so, the controller will recognize in the next powering-on sequence that it has not been normally terminated, so it will initialize the vision-related information.

VISSCREEN 1, 0, 1
|
'
|
VISCLS 0
|
'
|
VISCAMOUT 1, 1
|
'Convert an image (dynamic image) from camera 1 with table 1
'(0 to 175, 70% brightness compressed) and display it on
'the monitor
|
DELAY 5000
|
'Stop for 5 seconds
|
VISDEFCHAR 4, 4, 2
|
'
|
FOR I1 = 0 TO 255
|
'
|
VISLOC 10, 10
|
'
|
VISPRINT I1
|
'
|
VISDEFTABLE 5, I1, 255-I1
|
|
|
'Set table number 5
|
NEXT I1
|
'
|
VISCAMOUT 1, 5
|
'Reverse an image (dynamic image) from camera 1 and display
'it on the monitor
|