![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/168353/image.jpeg)
About edge detection
2 次查看(过去 30 天)
显示 更早的评论
How to find RGB image edge detection using directional operator method?
0 个评论
采纳的回答
Chandra Kurniawan
2012-1-25
Hi, Priyanka
Generally, you can perform edge detection with edge command from Matlab.
Which operator? Sobel, prewitt, canny, or what?
I = imread('tape.png');
Igray = rgb2gray(I);
Iedge = im2uint8(edge(Igray,'canny',0.2));
Iedge = repmat(Iedge,[1 1 3]);
Ifinal = I + Iedge;
imshow(Ifinal);
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/168353/image.jpeg)
更多回答(0 个)
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!