MATLAB: Euclidean Distance Skin Lesion

mtlabskinskin cancer

Hello everyone !!! I'm trying to evaluate the diameter of a skin lesion by evaluate the euclidean distances between all the pixels of the border and averaging it. How can i do it ?

Best Answer

You could regionprops and ask for MajorAxesLength to get "equivalent" diameter (an ellipse would be fitted to the data.)
I suspect that might be accurate enough for your purpose. If not then bwtraceboundary(), or regionprops pixellist . Then pdist(). And do not average the distances: take the maximum distance to get the diameter.