I am experimenting with generating lookup table based ICC profiles. I know it is a difficult task but I want to generate simple lookup tables. I have the following queries regarding this. 1- What is the purpose of input and output curves in AToB0 and AToB1 Tags (lut16type)? 2- Are the input curves used for gray balancing ? Can you devise how can I experiment for this purpose. 3- I generated CLUT for AToB1 by measurements, chromatic adaption to D50, normalizing and converting to fixed point. How can I generate similar for BToA1 (the reverse, XYZ to RGB) ? I think it is not simple inverse. 4- How is the TRC related to input curves in AToBx ? And how is TRC generated from measurement data ? Thanks for your help.