I want to measure the diameter of the pin but getting a bad edge detection image. Can someone help me to further improve it?
My edge detection image:
My coding:
%% Read and Binarize
load image.matI4 = imgaussfilt(I3);I4 = I4 <120;%%
I5 = edge(I4,'Sobel');imshow(I5)
Best Answer