In image processing, a binary picture is a discrete square grid of 0 and 1, or equivalently, a compact subset of \Z^2. Topological invariants on \R^2, such as number of components, might fail to be well-defined for \Z^2 if \Z^2 does not have an appropriately defined graph structure.
