how to produce edge detected image?

Illustration
nita ahmeti - 2024-02-01T13:20:47+00:00
Question: how to produce edge detected image?

 using the Laplacian of the Gaussian or Sobel filters, of user-specified size and parameters where applicable. how to apply filters of varying size

Expert Answer

Profile picture of Prashant Kumar Prashant Kumar answered . 2025-11-20

 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)

 


Not satisfied with the answer ?? ASK NOW

Get a Free Consultation or a Sample Assignment Review!