Abstract
A digital image is modeled as a finite metric space by equipping its pixel set with a color distance induced by a norm on . For a threshold , we study the threshold topology , generated by -chain connectedness, and the separation polynomial , which enumerates -separated pixel sets. We prove that each is a partition topology and classify these spaces up to homeomorphism by component cardinalities. The filtration is shown to be equivalent to the maximal subdominant pseudo-ultrametric of the color metric, with -components precisely its closed balls. Its change points coincide with the distinct nonzero weights of a minimum spanning tree; we state explicitly which of these facts are reformulations of classical results on single-linkage clustering, and we treat the spatially constrained variant through a graph-restricted ultrametric. We establish a sharp Lipschitz stability estimate and derive filtration interleavings under uniform color perturbations, together with exact invariance under suitable margin conditions. Algebraically, is identified with the independence polynomial of the similarity graph and the face enumerator of its independence complex. A packing bound yields an efficient computation method. Finally, explicit greyscale examples establish the logical independence of the topological and algebraic invariants. The framework is illustrated on a digital image through exact computations of filtrations, entropy, separation polynomials, and Euler characteristics.