BLOBLABEL
(Statement)
Obtain the label number for designated coordinates.
BLOBLABEL(<coordinate X>, <coordinate Y>)
<coordinate X>
Designates the X coordinate (0 to 511).
<coordinate Y>
Designates the Y coordinate (0 to 479).
Example of label number obtaining
-
Before executing this function, you need to execute labeling with BLOB beforehand.
-
Obtain the label number present for the designated coordinates.
-
If there is no label number present, -1 is returned.
-
For this instruction, a µVision board (option) is required.
VISSCREEN 1,0,1
|
'Instantaneously draw on drawing screen 0
|
WINDMAKE R,1,512,480,0,2
|
'Set window 1 to rectangle
|
CAMIN 1
|
'Obtain a camera image from the storage memory
|
BLOB 1,0,0,0,128
|
'Execute labeling
|
IF VISSTATUS(0)=0.0 THEN
|
|
IF VISSTATUS(1)<>0.0 THEN
|
|
IF BLOBLABEL(100,100)<>-1 THEN
|
|
VISLOC 100,100,1
|
|
VISPRINT "Label number =";BLOBLABEL(100,100)
|
|
END IF
|
|
END IF
|
|
END IF
|
|