Since*
4.2
Apply the Prewitt operator (https://en.wikipedia.org/wiki/Prewitt_operator) to input video stream.
The filter accepts the following option:
- planes
-
Set which planes to filter. Default value is
0xf
, by which all planes are processed. - scale
-
Set value which will be multiplied with filtered result. Range is
[0.0, 65535]
and default value is1.0
. - delta
-
Set value which will be added to filtered result. Range is
[-65535, 65535]
and default value is0.0
.
Example
-
Apply the Prewitt operator with scale set to 2 and delta set to 10.
-i INPUT -vf "hwupload, prewitt_opencl=scale=2:delta=10, hwdownload" OUTPUT