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 views (last 30 days)
  
       Show older comments
    
    alaa shamasneh
 on 31 Jul 2018
  
    
    
    
    
    Commented: alaa shamasneh
 on 6 Sep 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.
Accepted Answer
  Image Analyst
      
      
 on 3 Aug 2018
        I already helped in your duplicate question. Here it is again.

7 Comments
  Image Analyst
      
      
 on 2 Sep 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.
More Answers (0)
See Also
Categories
				Find more on Annotations in Help Center and File Exchange
			
	Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
