Image Transformations and Look-Up Tables

Figure 1.8: Forward and inverse transformations between images.
Image fig_lut

Since this is a fairly delicate topic that can lead to ambiguity, it is worth devoting a section to how image transformations are implemented in practice.

Let $f$ be a general bijective transformation

\begin{displaymath}
f : \mathbb{R}^{2} \to \mathbb{R}^{2}
\end{displaymath} (1.128)

that maps point $(u,v)^{\top}$ in the source image to point $(u',v')^{\top}$ in the destination image, that is,
\begin{displaymath}
(u',v')^{\top} = f(u,v)
\end{displaymath} (1.129)

This transformation is called Forward Warping.

Since images are quantized into pixels rather than continuous, the transformation $f$ cannot be used directly in real applications: it may leave holes in the second image or map the same point from the first image multiple times. For these reasons, image processing always uses the inverse transformation $f^{-1}$, which returns, for every point in the destination image $(u',v')^{\top}$, the point in the source image $(u,v)$ from which to sample the color:

\begin{displaymath}
(u,v)^{\top} = f^{-1}(u',v')
\end{displaymath} (1.130)

This transformation is called Inverse Warping.

The source image is also made up of pixels, but knowing the point $(u,v)^{\top}$ makes it straightforward to use techniques such as linear interpolation to obtain the pixel value.

If the function $f^{-1}$ is very complex and the same transformation must be applied to multiple images, computational time can be saved by creating a Look-Up Table (LUT) of elements $(u,v)^{\top}$ with the same dimensions as the destination image, storing the result of the transformation (1.130) for each element.

Paolo medici
2026-10-19