// macro generated Lookup Table if (bitDepth==24) exit ("Cannot apply LUT to RGB image"); getLut(r,g,b); for (i=0;i