An Equivalence Relation Between Morphological Dynamics and Persistent Homology in n-D