Lines in Polar Coordinates

The line representations considered so far use more parameters than their degrees of freedom require. A line in the plane $\mathbb{R}^2$ has only 2 degrees of freedom, whereas its implicit equation depends on 3 parameters, which are defined up to a multiplicative factor and have no clear geometric interpretation. On the other hand, the explicit equation of a line, with two parameters $y=mx + q$, is singular for vertical lines.

Figure 1.4: Line expressed in polar coordinates.
Image fig_polarline

One way to address this problem is to change the parameterization and use polar coordinates. In polar coordinates, a line in a two-dimensional space can be represented without singularities using only 2 parameters:

\begin{displaymath}
x \cos \theta + y \sin \theta = \rho
\end{displaymath} (1.82)

where $\rho$ is the distance between the line and the point $(0,0)$, and $\theta $ is the angle between this distance segment (perpendicular to the line) and the x-axis (Figure 1.4). Compare this representation with the one given in Equation (1.85). In this formulation, the relationship between these two parameters and the line equation is nonlinear.

This equation is commonly used in the Hough transform for lines (Section 4.11), which uses a bounded, two-dimensional parameter space.

With this representation, the distance between a point in space $(x_i,y_i)$ and the line can be written compactly as

\begin{displaymath}
d = \vert x_i \cos \theta + y_i \sin \theta - \rho \vert
\end{displaymath} (1.83)

Paolo medici
2026-10-19