Image Processing Reference
In-Depth Information
Magnitude of eye edges
by Prewitt operator
Direction of eye edges
by Prewit operator
10
10
20
20
30
30
40
40
50
50
60
60
10 20 30 40 50 60
10 20 30 40 50 60
Magnitude and Direction of Prewitt Edges
disp (' ')
disp ('The Sobel operator includes better smoothing than the Prewitt')
disp ('operator.It is harder to see here, but is gereally experienced')
sobel_edges=sobel33(eye);
disp ('Again, we calculate the magnitude and direction. Again, The')
disp ('magnitude shows the amount of contrast, as shown in the image')
disp ('for a 3*3 Sobel operator.')
smagnitude=sobel_edges(:,:,1);
subplot(1,2,1), imagesc(smagnitude);
plotedit on, title ('Magnitude of eye edges by Sobel'), plotedit off
subplot(1,2,2), imagesc(pmagnitude);
plotedit on, title ('Magnitude of eye edges by Prewitt'), plotedit off
pause;
Search WWH ::




Custom Search