# Digital geometry

Short description: Deals with digitized models or images of objects of the 2D or 3D Euclidean space

Digital geometry deals with discrete sets (usually discrete point sets) considered to be digitized models or images of objects of the 2D or 3D Euclidean space. Simply put, digitizing is replacing an object by a discrete set of its points. The images we see on the TV screen, the raster display of a computer, or in newspapers are in fact digital images.

Its main application areas are computer graphics and image analysis.

Main aspects of study are:

• Constructing digitized representations of objects, with the emphasis on precision and efficiency (either by means of synthesis, see, for example, Bresenham's line algorithm or digital disks, or by means of digitization and subsequent processing of digital images).
• Study of properties of digital sets; see, for example, Pick's theorem, digital convexity, digital straightness, or digital planarity.
• Transforming digitized representations of objects, for example (A) into simplified shapes such as (i) skeletons, by repeated removal of simple points such that the digital topology of an image does not change, or (ii) medial axis, by calculating local maxima in a distance transform of the given digitized object representation, or (B) into modified shapes using mathematical morphology.
• Reconstructing "real" objects or their properties (area, length, curvature, volume, surface area, and so forth) from digital images.
• Study of digital curves, digital surfaces, and digital manifolds.
• Designing tracking algorithms for digital objects.
• Functions on digital space.
• Curve sketching, a method of drawing a curve pixel by pixel.
Tracing a curve on a triangular mesh

Digital geometry heavily overlaps with discrete geometry and may be considered as a part thereof.

## Digital space

A 2D digital space usually means a 2D grid space that only contains integer points in 2D Euclidean space. A 2D image is a function on a 2D digital space (See image processing).

In Rosenfeld and Kak's book, digital connectivity are defined as the relationship among elements in digital space. For example, 4-connectivity and 8-connectivity in 2D. Also see pixel connectivity. A digital space and its (digital-)connectivity determine a digital topology.

In digital space, the digitally continuous function (A. Rosenfeld, 1986) and the gradually varied function (L. Chen, 1989) were proposed, independently.

A digitally continuous function means a function in which the value (an integer) at a digital point is the same or off by at most 1 from its neighbors. In other words, if x and y are two adjacent points in a digital space, |f(x) − f(y)| ≤ 1.

A gradually varied function is a function from a digital space $\displaystyle{ \Sigma }$ to $\displaystyle{ \{ A_1, \dots,A_m \} }$ where $\displaystyle{ A_1\lt \cdots \lt A_m }$ and $\displaystyle{ A_i }$ are real numbers. This function possesses the following property: If x and y are two adjacent points in $\displaystyle{ \Sigma }$, assume $\displaystyle{ f(x)=A_i }$, then $\displaystyle{ f(y)=A_{i} }$, $\displaystyle{ f(x)=A_{i+1} }$, or $\displaystyle{ A_{i-1} }$. So we can see that the gradually varied function is defined to be more general than the digitally continuous function.

An extension theorem related to above functions was mentioned by A. Rosenfeld (1986) and completed by L. Chen (1989). This theorem states: Let $\displaystyle{ D \subset \Sigma }$ and $\displaystyle{ f: D\rightarrow \{ A_1, \dots,A_m \} }$. The necessary and sufficient condition for the existence of the gradually varied extension $\displaystyle{ F }$ of $\displaystyle{ f }$ is : for each pair of points $\displaystyle{ x }$ and $\displaystyle{ y }$ in $\displaystyle{ D }$, assume $\displaystyle{ f(x)=A_i }$ and $\displaystyle{ f(y)=A_j }$, we have $\displaystyle{ |i-j|\le d(x,y) }$, where $\displaystyle{ d(x,y) }$ is the (digital) distance between $\displaystyle{ x }$ and $\displaystyle{ y }$.