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 visualizaciones (últimos 30 días)
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.

Respuesta aceptada

Image Analyst
Image Analyst el 3 de Ag. de 2018
I already helped in your duplicate question. Here it is again.
  7 comentarios
Image Analyst
Image Analyst el 2 de Sept. de 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.
alaa shamasneh
alaa shamasneh el 6 de Sept. de 2018
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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Annotations en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by