Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- clc
- clear all
- A = imread('lena.png');
- colors(1, :) = ' red ';
- colors(2, :) = 'green';
- colors(3, :) = ' blue';
- figure();
- % Next method is applied in 2D objects like color channels
- for i = 1:3
- channel = A(:, :, i);
- E = edge(channel);
- imshow(E);
- caption = ['Edge detection in ' colors(i, :) ' channel'];
- title(caption);
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement