VISFILTER
(Statement)

Execute filtering on the screen.

VISFILTER <window number>, <coordinate X>, <coordinate Y>, <process screen>, <storage screen>
[, <mode>]

<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).
<process screen>
Specifies the storage memory number (0 to 3).
<storage screen>
Specifies the storage memory number to store filtering results (0~3).
<mode>
Specifies the type of filtering (3 x 3 space filtering).
0: minimum value filtering
1: maximum value filtering
If this is ignored, 0 will be the default setting.


-
If the process screen and the storage screen have the same number, an error will result.
-
Designate 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.
-
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
|
VISPLNOUT 1
|
'Display storage memory 1 on the monitor
|
VISFILTER 1,100,100,0,1,0
|
'
|
VISFILTER 1,100,100,1,0,0
|
'
|
VISFILTER 1,100,100,0,1,0
|
'
|
VISFILTER 1,100,100,1,0,0
|
'
|
VISFILTER 1,100,100,0,1,0
|
'
|
WINDDISP 1
|
'Draw the window
|