Your gamma adjusted values for the "RGB G 2.2" columns are wrong. The correct values are obtained with g=255*(linear/255)^(1/2.2).
[{POST_SNAPBACK}][/a]
No, the RGB G2.2 column is correct. It is calculated from the RGB linear value after the raw value is multiplied by the WB coefficient [=(WB Raw * multiplier/255)^(1/2.2)*255]. It represents the white balanced G 2.2 RGB values from the raw file.
I have expanded my original table with the calculations suggested by Peter Lange. G 2.2 No WB represents the gamma 2.2 conversion of the raw file with no WB. The new multiplier is shown along with the WB G 2.2. As you can see the white balanced figures are the same, as Peter predicted.
[attachment=1404:attachment]
BTW, your red and blue multipliers, if they are supposed to be from a real camera, are probably swapped.
[a href=\"index.php?act=findpost&pid=91150\"][{POST_SNAPBACK}][/a]
No, the multipliers are correct for a Nikon D200 with exposure at 3200K
[a href=\"http://www.pochtar.com/NikonWhiteBalanceCoeffs.htm]http://www.pochtar.com/NikonWhiteBalanceCoeffs.htm[/url]
This exercise was a learning experience for me and it demonstrates that the oft stated quote that WB can not be done with a gamma corrected image is not true, as is demonstrated by the various corrections that have been posted in this thread. However, if a tone curve has been applied, then one would have to add another curve to essentially undo the effects of the original. If one is working with a JPEG with a bit depth of 8, data loss with all the manipulations could be significant.