cinematiccolor icon indicating copy to clipboard operation
cinematiccolor copied to clipboard

Lookup Tables 255 vs. 256

Open jeremyselan opened this issue 12 years ago • 0 comments

Appendix 4.1

"However, one mayobserve that no matter how complex the function, it can evaluate to only one of 255 output values (corresponding to each unique input). Thus, an alternate implementation would be to tabulate the function's result for each possible input value, then to transform each pixel at runtime by looking up the stored solution. Assuming that integer table lookups are efficient (they are), and that the rasterized image has more than 255 total pixels (it likely does), using a LUT will lead to a significant speedup."

References to 255 should be 256 here.

jeremyselan avatar Dec 19 '12 01:12 jeremyselan