views:

205

answers:

1

What is the matrix of sobel operator of size 3x3 if the operator is said to be diagonal (Left or right diagonal)? EDIT: or may be with more bigger size

+1  A: 

The 3x3 diagonal Sobel operators are:

[[0,1,2],
 [-1,0,1],
 [-2,-1,0]]

and

[[-2,-1,0],
 [-1,0,1],
 [0,1,2]]

Hope it helps.

Justin Peel
THANKS Very much!!!
erjik