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)
Mostrar comentarios más antiguos
alaa shamasneh
el 31 de Jul. de 2018
Comentada: alaa shamasneh
el 6 de Sept. de 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.
2 comentarios
Respuesta aceptada
Image Analyst
el 3 de Ag. de 2018
I already helped in your duplicate question. Here it is again.

7 comentarios
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.
Más respuestas (0)
Ver también
Categorías
Más información sobre Annotations en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!