A key point in color representation comes from the use of Spherical Harmonics (SH). The spherical harmonics are solutions to Laplace's equation in spherical coordinates, orthogonal and forming a complete basis for functions defined on a sphere. This means that any function
can be expanded into a series of spherical harmonics:
| (9.91) |
This entire class of functions can be generated by a single formula, selecting for the degree of the harmonic and
for the order:
| (9.92) |
In computer graphics, they are used to represent lighting information in a compact and efficient manner. Spherical Harmonics decompose the incident light into a set of coefficients, each associated with a different harmonic. These coefficients capture the characteristics of light, such as intensity and color, along different directions of the spherical surface.
The idea is to select a maximum degree of and express each color component (red, green, blue) as a linear combination of spherical harmonics, using
as the optical radius that connects the point to the observer.
Paolo medici