How to measure distance between two streak lines around a body with image processing

1 次查看(过去 30 天)
Hi. I need to measure the distance between the streak lines around the body (with varyng theta, it being the angle of curvature of the circle). I have created a mask with the image segmentor and I got some data with regionprops but I do not understand what the output is. How could I solve this problem?
  2 个评论
Image Analyst
Image Analyst 2023-3-29
Easy enough around the bottom (using thresholding) but what do you want to do when the stripes all merge together near the middle and top?
laura callegari
laura callegari 2023-3-29
I was thinking of using only the right side and just the distance between the first two lines. I don't need to go that much high up.

请先登录,再进行评论。

回答(1 个)

Moksh
Moksh 2023-8-22
Hi Laura,
As per my understanding you are trying to calculate the distance between the first 2 lines on the right of the sphere.
You can use the “imdistline” function of MATLAB, which gives an interactive tool to measure the distance between any 2 points on the image. This gives you complete control to measure the distance between the lines in any region of interest.
This can be implemented as follows:
% Assuming the image shown above is saved as "image.png"
imshow("image.png");
% Add the imdistline object on the figure (Donot close the above figure)
h = imdistline;
This will insert an interactive tool on the figure as demonstrated below, which can be adjusted to show any 2D distance.
Please use the following documentation for a better understanding of the "imdistline" function.
Thank you

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by