VISPOSX
(Function)
Obtains an image process result (Coordinate X) from the storage memory.
VISPOSX (<Parameter>)
<Parameter>
Designates the number of the process result (Coordinate X) to obtain (0 to 511).
-
This is the same as when the VISGETNUM parameter is set to 1.VISGETNUM (n, 2) = VISPOSY (n)
-
The process results are different from the results stored with previous image processing instructions. Refer to the image processing instructions.
-
You can repeatedly obtain results because they are kept until the next image process instruction is executed,
-
If the previous image processing instruction designated an unexpected storage location, the value becomes an unknown number.
-
For this instruction, a µVision board (option) is required.
VISSCREEN 1,0,1
|
'Instantaneously draws on drawing screen 0.
|
VISCLS 0
|
|
WINDMAKE R,1,512,480,0,2
|
'Sets window 1 to rectangle.
|
CAMIN 1
|
'Obtains a camera image from the storage memory.
|
VISPLNOUT 0
|
|
VISWORKPLN 0
|
'Designates an object to storage memory 0.
|
BLOB 1,0,0,0,128
|
'Executes labeling.
|
I1 = VISSTATUS(0)
|
|
IF I1 = 0 THEN
|
|
I2 = VISSTATUS(1)
|
|
IF I2 <> 0 THEN
|
|
FOR I1 = 0 TO 15
|
|
VISDEFCHAR 1,1,0
|
|
VISLOC 10,10+I1
|
|
VISPRINT "X=";VISPOSX(I1), "Y=";VISPOSY(I1)
|
|
VISCROSS VISPOSX(I1), VISPOSY(I1)
|
|
NEXT I1
|
|
END IF
|
|
END IF
|
|
VISCAMOUT 1
|
|