how to produce edge detected image?

N
nita ahmeti · Feb 1, 2024 · 1.9K views
Question
 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 PhD Expert
Answered Aug 12, 2026
 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)

 

100% Run Guarantee 3-Hour Fast-Track Delivery

Need a Custom Version or Complete Simulation for This Problem?

Our 500+ PhD engineers build, debug, and optimize working MATLAB scripts and Simulink (.slx) models tailored to your exact assignment rubrics with zero plagiarism.

Tested on MATLAB R2024b / R2026a
Turnitin 0% Plagiarism Report
Free 7-Day Revisions Guarantee
Have a different question? Ask here

Get a Free Consultation or a Sample Assignment Review!