convolution_opencl


Apply convolution of 3x3, 5x5, 7x7 matrix.

The filter accepts the following options:

'0m'
'1m'
'2m'
'3m'

Set matrix for each plane. Matrix is sequence of 9, 25 or 49 signed numbers. Default value for each plane is 0 0 0 0 1 0 0 0 0.

'0rdiv'
'1rdiv'
'2rdiv'
'3rdiv'

Set multiplier for calculated value for each plane. If unset or 0, it will be sum of all matrix elements. The option value must be a float number greater or equal to 0.0. Default value is 1.0.

'0bias'
'1bias'
'2bias'
'3bias'

Set bias for each plane. This value is added to the result of the multiplication. Useful for making the overall image brighter or darker. The option value must be a float number greater or equal to 0.0. Default value is 0.0.