Sir here I attached the code for finding the diameter of irregularly shaped objects in an image. Tell me if the code is correct to find the diameter or not .
if true % code
endoriginalImage = imread('result.jpg');originalImage=rgb2gray(originalImage);labeledImage = bwlabel(originalImage, 8);D=regionprops(labeledImage,'area');d1=regionprops(labeledImage,'EquivDiameter');
Best Answer