Location of object leaving a specific point

3 visualizzazioni (ultimi 30 giorni)
ZENONAS ZENIOU
ZENONAS ZENIOU il 4 Lug 2016
Risposto: Image Analyst il 4 Lug 2016
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 Commenti
ZENONAS ZENIOU
ZENONAS ZENIOU il 4 Lug 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 il 4 Lug 2016
Sorry, not my area of expertise. Maybe some other contributor will bite.

Accedi per commentare.

Risposte (1)

Image Analyst
Image Analyst il 4 Lug 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!

Translated by