Hi there,
I am trying to count the rings in a picture like this: https://i.imgur.com/1Rf5lLm.png
This should represent the rings of a tree so in the final product the rings will not be as perfect circles as those are.
My ideas was to start at the center (I have a method to give me the center of the rings) and go along a vector and counting the number of times the image changes from black to white. Repeating that for many angles and taking a median it should give me a close aproximation of the number of rings.
I just don't know how to implement that - is there a method in matlab to define a vector in an image and loop over it's values?
Or do you have a better idea how to achieve my goal?
Thanks in advance for your help!