Professional Documents
Culture Documents
1. Lightness
2. Average
( R+G+ B )
grayscale=
3
3. Luminosity
1. Operator Prewitt
[ ] [ ]
−1 −1 −1 −1 0 1
Gx = 0 0 0 ∗A G y = −1 0 1 ∗A
1 1 1 −1 0 1
√
G= G 2 + G
x y2
2. Operator Sobel
[ ] [ ]
−1 −2 −1 −1 0 1
Gx = 0 0 0 ∗A G y = −2 0 2 ∗A
1 2 1 −1 0 1
3. Operator Robert
Gx = [ ]
−1 0
0 1
Gy= [ ]
0 −1
1 0
√
G= G 2 + G
x y2
Gy
Θ=tan−1
( )
Gx