That's very cool, could be a interesting problem for using machine learning. Train it with all the pictures of tree rings with known age, and then see if it can reliably guess the age of something it hasn't seen.
It reminds me of the algorithms for locating reads on the genome.