how i can remove the object if the centroid located on same line(white pixel) , then i want to calculate angle and distance from centroid

2 ビュー (過去 30 日間)
Dear image analyst can you help me on this two steps
1- If the centorid of the component falls on the same component (white pixels) or near to it, I can remove this object. this step after calculate the centroid and before calculate the distance and angle histogram
2- I calculate the angle from centroid to boundaries and i represented as a histogram also , can you check if its right cause i notice the values for some object have a high angle value and suppose not cause the centroid near to boundaries suppose angle be small.

採用された回答

Image Analyst
Image Analyst 2018 年 8 月 3 日
I already helped in your duplicate question. Here it is again.
  7 件のコメント
Image Analyst
Image Analyst 2018 年 9 月 2 日
You are incorrect when you say that the length of the angles array should be the same as the distances array. Recall in your duplicate question (this one) you said "near to it" so I had to define some distance that specifies "near", which I did rather arbitrarily because you did not answer me. If you don't like the distance I chose to define "near", then pick your own distance. Anyway, when/if you exclude points that are not "near" (i.e. far away), then you will of course have fewer points in theseAngles than in distances.
alaa shamasneh
alaa shamasneh 2018 年 9 月 6 日
Dear Image analyst i want to say thanks for you , your are the best in programming. Not just like that i like your way to analysis the problem and keep answering my question you didn't let me, and complete working with me really you deserve the best things. Thaaanks so much

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAnnotations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by