Gamma correcting alpha channel only
Posted: 2007-07-30T02:10:32-07:00
Using the following command line on an image doesn't result in a correctly gamma corrected alpha channel in the output image.
convert 0001.sgi -channel Alpha -gamma 1.4 test.png
In fact it seems to produce the opposite of what it should, ie it makes the image darker not lighter. If I do -gamma 0.714 (which is 1/1.4) it gets closer but still performs very different to my other imaging package.
Maybe there is different algorithms for doing gamma correction? I thought there was only one.
convert 0001.sgi -channel Alpha -gamma 1.4 test.png
In fact it seems to produce the opposite of what it should, ie it makes the image darker not lighter. If I do -gamma 0.714 (which is 1/1.4) it gets closer but still performs very different to my other imaging package.
Maybe there is different algorithms for doing gamma correction? I thought there was only one.