Location of object leaving a specific point
3 views (last 30 days)
Show older comments
Hi. For example i set the peripheral of a circle my set point. Does anyone knows how can i get the locations of the some balls when are leaving this circle? Any help will be appreciated. Thanks a lot
5 Comments
Answers (1)
Image Analyst
on 4 Jul 2016
Use hypot() or sqrt() to determine the distance of the centroid of your blob from the center of your circle. When that distance is more than the radius of the circle, it is not "inside" the circle.
You might like to see several things in the FAQ on circles: http://matlab.wikia.com/wiki/FAQ#How_do_I_create_a_circle.3F
0 Comments
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!