02_ convolution operation

# 1, the definition of convolution kernels

Mat kernel = (Mat_ (3, 3) << 0, -1, 0, -1, 5, -1, 0, -1, 0);
definition of the 3 × 3 convolution kernel.

# 2, filter2D () function

filter2D (src, dst, src.depth ( ), kernel);
for convolving kernel using src, dst and then placed in the results.

Released six original articles · won praise 0 · Views 111

Guess you like

Origin blog.csdn.net/qq_43621944/article/details/104078042