Functions > Image Processing > Edge Finders > Example: Convolution and Comparison Edge Finders
Example: Convolution and Comparison Edge Finders
For information on using this example, refer to About Image Processing Examples.
kirsch
The kirsch edge finder uses the following eight kernels:

1 15
5 5 5 -3 0 -3 -3 -3 -3
1 15
5 5 -3 5 0 -3 -3 -3 -3
1 15
5 -3 -3 5 0 -3 5 -3 -3
1 15
-3 -3 -3 5 0 -3 5 5 -3
1 15
-3 -3 -3 -3 0 -3 5 5 5
1 15
-3 -3 -3 -3 0 5 -3 5 5
1 15
-3 -3 5 -3 0 5 -3 -3 5
1 15
-3 5 5 -3 0 5 -3 -3 -3
 (lena.bmp) (lena_mkir.bmp)
robinson3
The robinson3 edge finder uses the following eight kernels:

1 3
1 1 1 0 0 0 -1 -1 -1
1 3
1 1 0 1 0 -1 0 -1 -1
1 3
1 0 -1 1 0 -1 1 0 -1
1 3
0 -1 -1 1 0 -1 1 1 0
1 3
-1 -1 -1 0 0 0 1 1 1
1 3
-1 -1 0 -1 0 1 0 1 1
1 3
-1 0 1 -1 0 1 -1 0 1
1 3
0 1 1 -1 0 1 -1 -1 0
(lena_mrob3.bmp)
robinson5
The robinson5 edge finder uses the following eight kernels:

1 4
1 2 1 0 0 0 -1 -2 -1
1 4
2 1 0 1 0 -1 0 -1 -2
1 4
1 0 -1 2 0 -2 1 0 -1
1 4
0 -1 -2 1 0 -1 2 1 0
1 4
-1 -2 -1 0 0 0 1 2 1
1 4
-2 -1 0 -1 0 1 0 1 2
1 4
-1 0 1 -2 0 2 -1 0 1
1 4
0 1 2 -1 0 1 -2 -1 0
(lena_mrob5.bmp)
The compgrad edge finder uses the following eight kernels:

1 5
1 1 1 1 -2 1 -1 -1 -1
1 5
1 1 1 1 -2 -1 1 -1 -1
1 5
1 1 -1 1 -2 -1 1 1 -1
1 5
1 -1 -1 1 -2 -1 1 1 1
1 5
-1 -1 -1 1 -2 1 1 1 1
1 5
-1 -1 1 -1 -2 1 1 1 1
1 5
-1 1 1 -1 -2 1 -1 1 1
1 5
1 1 1 -1 -2 1 -1 -1 1
(lena_comp.bmp)