21-44
VISREFHIST (Function)
Function
Reads histogram results.
Format
VISREFHIST (<Brightness value >)
Explanation
<Brightness value> Designates the brightness value of the histogram to read (0
to 255).
Related Terms
VISHIST
Example
WINDMAKE R,1,100,100,0,2 'Sets window 1 to rectangle.
CAMIN 1 'Obtains a camera image from the storage memory.
VISWORKPLN 0 '
Sets the processing object screen for storage memory 0.
VISHIST 1,100,100 'Executes the histogram for window 1 with the coordinates
'(100, 100) as the home position.
FORI1=0TO255 '
I2 = VISREFHIST(I1) '
Assigns the distribution data of the brightness value I1 to I2.
VISLOC 10, 10 'Sets the display position.
VISDEFCHAR 1,1,3 '
Designates the display character size and the display mode.
VISPRINT “Distribution data=”;I2
'
NEXT I1
Comments to this Manuals