if true figure, imshow(I); h = imdistline(gca); api = iptgetapi(h); width = api.getDistance(); end
MATLAB: In the code below can we make freehand drawing of the line instead of straight line
Image Processing Toolboximdistline
Image Processing Toolboximdistline
Best Answer