Implementation Note 2: Approximating a Smooth Three-Dimensional Function on a Coarse Lattice
Abstract
A smooth 3D function can be efficiently and accurately approximated by a 3D lookup table of significantly lower resolution combined with tetrahedral interpolation. The function is sampled once on a coarse grid in a preprocessing step. For each input, the enclosing grid cube is located, one of the 6 tetrahedra in this cube is selected, and the values at its 4 corners are combined by a weighted sum. For RGB to CMYK color conversion, a particularly frequent application of this, a table with cells per axis ( nodes, 16-bit values) requires 38\,KiB. A full 8-bit table requires 64\,MiB. As shown in an experimental evaluation, the mean error of the table is 0.08\,\% ink per channel. For 8-bit input, the lookup uses integer arithmetic only (Section~\ref{sec:integer}). It requires no floating point and no division, and all intermediate values fit in 32 bits. Floating point is needed only to build the table, once and offline. The integer result differs from tetrahedral interpolation with exact fractions by at most 1 unit of the 16-bit output, and white and black are reproduced exactly. This makes the approach suitable for low-power devices and real-time applications where computational resources are limited.
Create a lesson
Metadata
- Categories
- cs.GR, cs.MS
Related papers
A Unified Interactive Framework for Real-Time Three-Dimensional Cellular Automata Simulation in XR
Shared title terminologycs.GRAshkan Rezaei, Azam Bastanfard, Mohammad Erfan Safabakhsh
SLIM: Learning an Operator for Material-Efficient 3D Lattice Refinement
Shared title terminologycs.GRYueze Zhu, Yu Xing, Tianyang Xue et al.
HoOPOE: A Holography-Optimized Perceptual ObjectivE function
Shared title terminologycs.GREthan Chen, Xi Peng, Alexandre Chapiro et al.
Lattice Structure Optimization for Additive Manufacturing: Manufacturability-Driven Design and Pareto Front Construction
Shared title terminologycs.GRYu Xing, Yang Liu, Lin Lu
Edge-centric Brain Transformer: An Edge-centric Functional Connectivity Learning Framework for fMRI-based Brain Disorder Diagnosis
Shared title terminologycs.GRDengyi Zhao, Zhiheng Zhou, Mengyao Zhou et al.
RBF Your SDF: Radial Basis Function Interpolation of Signed Distance Fields with Implied Tangent Points
Shared title terminologycs.GRYong Cheng, Yotam Gingold