13
13
14
14
@note The explanation below belongs to the book ** Learning OpenCV** by Bradski and Kaehler.
15
15
16
- ### Convolution
16
+ ### Correlation
17
17
18
- In a very general sense, convolution is an operation between every part of an image and an operator
18
+ In a very general sense, correlation is an operation between every part of an image and an operator
19
19
(kernel).
20
20
21
21
### What is a kernel?
@@ -25,10 +25,10 @@ that array, which is typically located at the center.
25
25
26
26
![ ] ( images/filter_2d_tutorial_kernel_theory.png )
27
27
28
- ### How does convolution with a kernel work?
28
+ ### How does correlation with a kernel work?
29
29
30
30
Assume you want to know the resulting value of a particular location in the image. The value of the
31
- convolution is calculated in the following way:
31
+ correlation is calculated in the following way:
32
32
33
33
-# Place the kernel anchor on top of a determined pixel, with the rest of the kernel overlaying the
34
34
corresponding local pixels in the image.
@@ -91,7 +91,7 @@ Explanation
91
91
-# *kernel*: The kernel to be scanned through the image
92
92
-# *anchor*: The position of the anchor relative to its kernel. The location *Point(-1, -1)*
93
93
indicates the center by default.
94
- -# *delta*: A value to be added to each pixel during the convolution . By default it is \f$0\f$
94
+ -# *delta*: A value to be added to each pixel during the correlation . By default it is \f$0\f$
95
95
-# *BORDER_DEFAULT*: We let this value by default (more details in the following tutorial)
96
96
97
97
-# Our program will effectuate a * while* loop, each 500 ms the kernel size of our filter will be
0 commit comments