Sobel Edge Detection OperatorThe Sobel Edge Detection Operator is a 3x3 Spatial mask. It is based on the differential operation [1 0 -1] and an averaging operator [1 2 1], Convolving these operators we get the 3x3 spatial mask for sobel: -1 0 1 Horizontal Gradient Operator -2 0 2 -1 0 1 -1 -2 -1 Vertical Gradient Operator 0 0 0 1 2 1
Gx[i, j] = Im[i+1, j-1] + 2*Im[i+1, j] + Im(i+1, j+1) � { Im[i-1, j-1] + 2*Im[i-1, j] + Im(i-1, j+1) } Gy[i, j] = Im[i-1, j+1] + 2*Im[i, j+1] + Im(i+1, j+1) � { Im[i-1, j-1] + 2*Im[i, j-1] + Im(i+1, j-1) } Tags: Edge Detection , Digital Image Processing , Sobel , |