Fig. 2.

Illustration of the proposed P-Count. (a) Illustration of the watershed algorithm in 1D. As basins fill up, each is associated with a “lifetime”. (b) Changes in connected components are captured by the persistence diagram as the threshold increases.