The first filter has high magnitude values when the pixels on the right of the current "window" are very different from the pixels on the left. If the values are the same on both sides, the negative term on one side will cancel out the positive term on the other, while if the values are different, we get a result that is nonzero. As such, the filter extracts horizontal differences.
The second filter works similarly, just vertically.
haoala
The left filter responds to vertical edges, the right filter responds to horizontal edges.
mak
Can we have any other symmetrical values in these filter? e.g. 4, 0, -4 in place of 2, 0 , -2.
sherwood
Yes, the resulting image would be larger with color intensity
A brief note on these filters:
The first filter has high magnitude values when the pixels on the right of the current "window" are very different from the pixels on the left. If the values are the same on both sides, the negative term on one side will cancel out the positive term on the other, while if the values are different, we get a result that is nonzero. As such, the filter extracts horizontal differences.
The second filter works similarly, just vertically.
The left filter responds to vertical edges, the right filter responds to horizontal edges.
Can we have any other symmetrical values in these filter? e.g. 4, 0, -4 in place of 2, 0 , -2.
Yes, the resulting image would be larger with color intensity