how to produce edge detected image

3 ビュー (過去 30 日間)
nita ahmeti
nita ahmeti 2013 年 4 月 22 日
回答済み: Mohamed Osman 2017 年 1 月 21 日
using the Laplacian of the Gaussian or Sobel filters, of user-specified size and parameters where applicable. how to apply filters of varying size

採用された回答

Chandra Shekhar
Chandra Shekhar 2013 年 4 月 22 日
編集済み: Chandra Shekhar 2013 年 4 月 22 日
I = imread('circuit.tif');
BW1 = edge(I,'prewitt');
BW2 = edge(I,'canny');
BW3 = edge(I,'sobel');
figure, imshow(BW1)
figure, imshow(BW2)
figure, imshow(BW3)
Or you can choose manual threshold like,
BW1 = edge(I,'prewitt',0.4);
BW2 = edge(I,'canny',0.4);
BW3 = edge(I,'sobel',0.4);
figure, imshow(BW1)
figure, imshow(BW2)
figure, imshow(BW3)

その他の回答 (1 件)

Mohamed Osman
Mohamed Osman 2017 年 1 月 21 日
I = imread('circuit.tif'); imshow(I) BW1 = edge(I,'Canny'); BW2 = edge(I,'Prewitt'); imshowpair(BW1,BW2,'montage') I = gpuArray(imread('circuit.tif')); BW = edge(I,'prewitt'); figure, imshow(BW)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by