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
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?
回答 (1 件)
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
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!