How to get clear Edge detection following image? I have attached image which i want edge detect ? also i worked CANNY operator ,this operator not perfect , so Can any One Help me?
1 次查看(过去 30 天)
显示 更早的评论
How to get clear Edge detection following image? I have attached image which i want edge detect ? also i worked CANNY operator ,this operator not perfect
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/152653/image.jpeg)
回答(1 个)
Sarvesh Kale
2023-1-31
The canny edge detector works on 2D images and not 3D images, you will have to convert the JPEG image to grayscale image using rgb2gray function and then run the edge function on it. To view the final result you can use imshow function
I = imread('board.tif'); % replace board.tif with name of your image
I = rgb2gray(I);
I = edge(I,'canny');
imshow(I)
0 个评论
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!