How do I avoid banding when I'm tone mapping Radiance images using pcond and phisto?
I'm using phisto to create a luminance histogram to pass to pcond to tonemap several images. The result has a funny banding pattern.
My commands are:
phisto *.hdr > Luminance.hst
pcond -h- -I test.hdr < Luminance.hst | ra_tiff -z - test.tif
When I run it without the histogram input I get the following image (which has no banding):
Here are the contents of my luminance histogram file:
1.90373 1682
1.96992 2277
2.0361 3134
2.10228 4385
2.16847 3162
2.23465 6292
2.30084 4391
2.36702 6425
2.43321 6051
2.49939 6363
2.56557 13787
... (edit - I truncated this after the issue was resolved for readability in posterity)
Here's the tonemapped image after Greg's solution: