VISREFHIST
(Function)
Read histogram results.
VISREFHIST (<brightness value>)
<brightness value>
Specifies the brightness value of the histogram to read (0 to 255).
WINDMAKE R,1,100,100,0,2
|
'Set window 1 to rectangle
|
CAMIN 1
|
'Obtain a camera image from the storage memory
|
VISWORKPLN 0
|
'Set the processing object screen for storage memory 0
|
VISHIST 1,100,100
|
'Execute the histogram for window 1 with the coordinates
'(100, 100) as the home position
|
FOR I1 = 0 TO 255
|
|
I2 = VISREFHIST(I1)
|
'Assign the distribution data of
'the brightness value I1 to I2
|
VISLOC 10, 10
|
'Set the display position
|
VISDEFCHAR 1,1,3
|
'Designate the display character size
'and the display mode
|
VISPRINT "Distribution data=";I2
|
|
NEXT I1
|
|