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 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
alaa shamasneh
il 31 Lug 2018
Commentato: alaa shamasneh
il 6 Set 2018
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.
Risposta accettata
Image Analyst
il 3 Ago 2018
I already helped in your duplicate question. Here it is again.

7 Commenti
Image Analyst
il 2 Set 2018
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.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Annotations in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!