MATLAB Answers

Find distances in image

1 ビュー (過去 30 日間)
Evelynn Tan
Evelynn Tan 2018 年 12 月 19 日
回答済み: Rahul punk 2019 年 2 月 15 日
I have already found the distance between the centroid to A as well as B, and I have tried couple of ways to find C and D but still can't get it. How can do this? I really need help on this. Thank you.

  5 件のコメント

表示 2 件の古いコメント
Image Analyst
Image Analyst 2018 年 12 月 19 日
D, A, and B are plotted on the graph with the line() function. They are plotted on the image with plot(). C is a little tricky since it's at the start of the graph. If you know for a fact that the widest part of the mouth is always the left most pixel, then you can just find out if the distances(1) or distances(end) is greater, and that will be the C distance. If C is not the outermost peak, then it should be found by findpeaks() just like A is.
Evelynn Tan
Evelynn Tan 2018 年 12 月 19 日
Thanks! But i have another problem, the magenta line can show the result on the distance plot but in the binary image, it overlapped with the yellow line. How can I show it like point D above?
Image Analyst
Image Analyst 2018 年 12 月 19 日
Yes. Just use plot() like the others. You can help us to help you if you upload your original binary image (not a screenshot again) and the code you used.

Sign in to comment.

回答 (1 件)

Rahul punk
Rahul punk 2019 年 2 月 15 日

  0 件のコメント

Sign in to comment.


Translated by