|
From: Daniel J S. <dan...@ie...> - 2006-10-11 23:09:57
|
Petr Mikulik wrote: >> Hmm, well let's see. I think one of these is preferred over the >> other, but not sure which. With (2), would that mean cb2gray() is >> altered in some way? > > > no, you would call pow(gray, 1.0/gamma) before writing each pixel to the > file. > >> gray2gamma(cb2gray()). Don't know... I think conceptually we'd like >> to keep our data non-tranformed. >> I kind of like the way "test palette" behaves. That is a really >> powerful tool in a way. I'm thinking to avoid (2). Agreed? > > > Yes. OK. I'll have to consult the book to see images can use PostScript's gamma feature. In the mean time, I've put a patch on SourceForge with the pow(gray,1.0/gamma) which seems to work. Dan |