VISPOSY (Function)


Obtains an image process result (Coordinate Y) from the storage memory.


VISPOSY (<Parameter>)


<Parameter>
Designates the number for the processing result (Coordinate Y) to obtain (0 to 511). An obtained value is represented as a single precision real type constant (F type).
  • This is the same as when parameter 1 of VISGETNUM is designated to 2.
    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 designates 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


Top