摘要 |
A method of determining a value for a function that is particularly useful for mapping values from one color space to another includes a series of steps, as follows. The method is applicable to n-dimensional spaces, but is particularly described for three dimensions. The first step is to establish a three dimensional lattice, the function having values at the lattice points. The next step is to record values of the function for a subset of the lattice points, the lattice points of the subset known value lattice points. These known value lattice points from a sparse lattice (preferably the sparse lattice points ate regularly spaced along orthogonal axes). A values of the function for a given lattice point is established by returning a weighted average of the values of one or more of four known value lattice points defining a tetrahedron touching or enclosing the given lattice point. Each of the lattice points that are intermediate points in a coarse lattice cube is either within, or on the boundary of, at least one tetrahedron whose vertices are four of the vertices of the cube.
|