Location of object leaving a specific point

3 views (last 30 days)
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
ZENONAS ZENIOU
ZENONAS ZENIOU on 4 Jul 2016
i didn't prepare the code so far because its difficult for me as i am new in matlab. Yes its a video and the balls will moving through this circle shape. And i need to find the location of these as they leaving (exiting) this circle.
José-Luis
José-Luis on 4 Jul 2016
Sorry, not my area of expertise. Maybe some other contributor will bite.

Sign in to comment.

Answers (1)

Image Analyst
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

Community Treasure Hunt

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

Start Hunting!