VISBINA
(Statement)

Binarize the screen.

VISBINA <window number>, <coordinate X>, <coordinate Y>, <binary lower limit>[, <binary upper limit>]

<window number>
Specifies the window number (0 to 511).
<coordinate X>
Specifies the X coordinate (0 to 511).
<coordinate Y>
Specifies the Y coordinate (0 to 479).
<binary lower limit>
Specifies the upper level for binarization (0 to 254 lower limit < upper limit).
<binary upper limit>
Specifies the upper level for binarization (1 to 255 lower limit < upper limit).
If this is omitted, 255 will be the default setting.
Example of binarization


-
Specify the process area with a window.
-
If the designated window position is out of screen, the execution will result in an error.
-
The only possible window shape that may be designated is a rectangle with 0 degrees. If another window shape is designated, an error will result.
-
The processing object is the screen designated with VISWORKPLN.
-
For this instruction, a µVision board (option) is required.

VISSCREEN 1,0,1
|
'Instantaneously draw on drawing screen 0
|
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 to storage memory 0
|
VISPLNOUT 0
|
'Display storage memory 0 on the monitor
|
VISBINA 1,100,100,128,255
|
'Binarize in the window
|
WINDDISP 1
|
'Draw the window
|