Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Revision history [back]

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.

tonemapped Radiance image with banding

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):

tonemapped Radiance image without 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
2.63176 39667
2.69794 64799
2.76413 93599
2.83031 141772
2.89649 149964
2.96268 140519
3.02886 142675
3.09505 149038
3.16123 146731
3.22742 145481
3.2936 85213
3.35978 59476
3.42597 41804
3.49215 27795
3.55834 19000
3.62452 15328
3.6907 8258
3.75689 2649
3.82307 82
3.88926 0
3.95544 0
4.02163 0
4.08781 0
4.15399 0
4.22018 0
4.28636 0
4.35255 0
4.41873 0
4.48491 0
4.5511 0
4.61728 0
4.68347 0
4.74965 0
4.81583 0
4.88202 0
4.9482 0
5.01439 0
5.08057 0
5.14676 0
5.21294 0
5.27912 0
5.34531 0
5.41149 0
5.47768 0
5.54386 0
5.61004 0
5.67623 0
5.74241 0
5.8086 0
5.87478 0
5.94097 0
6.00715 0
6.07333 0
6.13952 0
6.2057 0
6.27189 0
6.33807 0
6.40425 0
6.47044 0
6.53662 1
6.60281 3
6.66899 3
6.73518 0
6.80136 0
6.86754 3
6.93373 15
6.99991 2
7.0661 9
7.13228 18
7.19846 23
7.26465 16
7.33083 11
7.39702 17
7.4632 28
7.52938 26
7.59557 16
7.66175 30
7.72794 41
7.79412 24
7.86031 18
7.92649 14
7.99267 10
8.05886 6
8.12504 10
8.19123 3
8.25741 4
8.32359 5
8.38978 4
8.45596 1

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.

image description

tonemapped Radiance image with banding

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):

tonemapped Radiance image without 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
2.63176 39667
2.69794 64799
2.76413 93599
2.83031 141772
2.89649 149964
2.96268 140519
3.02886 142675
3.09505 149038
3.16123 146731
3.22742 145481
3.2936 85213
3.35978 59476
3.42597 41804
3.49215 27795
3.55834 19000
3.62452 15328
3.6907 8258
3.75689 2649
3.82307 82
3.88926 0
3.95544 0
4.02163 0
4.08781 0
4.15399 0
4.22018 0
4.28636 0
4.35255 0
4.41873 0
4.48491 0
4.5511 0
4.61728 0
4.68347 0
4.74965 0
4.81583 0
4.88202 0
4.9482 0
5.01439 0
5.08057 0
5.14676 0
5.21294 0
5.27912 0
5.34531 0
5.41149 0
5.47768 0
5.54386 0
5.61004 0
5.67623 0
5.74241 0
5.8086 0
5.87478 0
5.94097 0
6.00715 0
6.07333 0
6.13952 0
6.2057 0
6.27189 0
6.33807 0
6.40425 0
6.47044 0
6.53662 1
6.60281 3
6.66899 3
6.73518 0
6.80136 0
6.86754 3
6.93373 15
6.99991 2
7.0661 9
7.13228 18
7.19846 23
7.26465 16
7.33083 11
7.39702 17
7.4632 28
7.52938 26
7.59557 16
7.66175 30
7.72794 41
7.79412 24
7.86031 18
7.92649 14
7.99267 10
8.05886 6
8.12504 10
8.19123 3
8.25741 4
8.32359 5
8.38978 4
8.45596 1

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.

image description

tonemapped Radiance image with bandingimage with banding

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):

tonemapped Radiance image without 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
2.63176 39667
2.69794 64799
2.76413 93599
2.83031 141772
2.89649 149964
2.96268 140519
3.02886 142675
3.09505 149038
3.16123 146731
3.22742 145481
3.2936 85213
3.35978 59476
3.42597 41804
3.49215 27795
3.55834 19000
3.62452 15328
3.6907 8258
3.75689 2649
3.82307 82
3.88926 0
3.95544 0
4.02163 0
4.08781 0
4.15399 0
4.22018 0
4.28636 0
4.35255 0
4.41873 0
4.48491 0
4.5511 0
4.61728 0
4.68347 0
4.74965 0
4.81583 0
4.88202 0
4.9482 0
5.01439 0
5.08057 0
5.14676 0
5.21294 0
5.27912 0
5.34531 0
5.41149 0
5.47768 0
5.54386 0
5.61004 0
5.67623 0
5.74241 0
5.8086 0
5.87478 0
5.94097 0
6.00715 0
6.07333 0
6.13952 0
6.2057 0
6.27189 0
6.33807 0
6.40425 0
6.47044 0
6.53662 1
6.60281 3
6.66899 3
6.73518 0
6.80136 0
6.86754 3
6.93373 15
6.99991 2
7.0661 9
7.13228 18
7.19846 23
7.26465 16
7.33083 11
7.39702 17
7.4632 28
7.52938 26
7.59557 16
7.66175 30
7.72794 41
7.79412 24
7.86031 18
7.92649 14
7.99267 10
8.05886 6
8.12504 10
8.19123 3
8.25741 4
8.32359 5
8.38978 4
8.45596 1

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.

image with banding

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):

tonemapped Radiance image without 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
2.63176 39667
2.69794 64799
2.76413 93599
2.83031 141772
2.89649 149964
2.96268 140519
3.02886 142675
3.09505 149038
3.16123 146731
3.22742 145481
3.2936 85213
3.35978 59476
3.42597 41804
3.49215 27795
3.55834 19000
3.62452 15328
3.6907 8258
3.75689 2649
3.82307 82
3.88926 0
3.95544 0
4.02163 0
4.08781 0
4.15399 0
4.22018 0
4.28636 0
4.35255 0
4.41873 0
4.48491 0
4.5511 0
4.61728 0
4.68347 0
4.74965 0
4.81583 0
4.88202 0
4.9482 0
5.01439 0
5.08057 0
5.14676 0
5.21294 0
5.27912 0
5.34531 0
5.41149 0
5.47768 0
5.54386 0
5.61004 0
5.67623 0
5.74241 0
5.8086 0
5.87478 0
5.94097 0
6.00715 0
6.07333 0
6.13952 0
6.2057 0
6.27189 0
6.33807 0
6.40425 0
6.47044 0
6.53662 1
6.60281 3
6.66899 3
6.73518 0
6.80136 0
6.86754 3
6.93373 15
6.99991 2
7.0661 9
7.13228 18
7.19846 23
7.26465 16
7.33083 11
7.39702 17
7.4632 28
7.52938 26
7.59557 16
7.66175 30
7.72794 41
7.79412 24
7.86031 18
7.92649 14
7.99267 10
8.05886 6
8.12504 10
8.19123 3
8.25741 4
8.32359 5
8.38978 4
8.45596 1

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.pattern.

image with banding

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):

tonemapped Radiance image without 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
2.63176 39667
2.69794 64799
2.76413 93599
2.83031 141772
2.89649 149964
2.96268 140519
3.02886 142675
3.09505 149038
3.16123 146731
3.22742 145481
3.2936 85213
3.35978 59476
3.42597 41804
3.49215 27795
3.55834 19000
3.62452 15328
3.6907 8258
3.75689 2649
3.82307 82
3.88926 0
3.95544 0
4.02163 0
4.08781 0
4.15399 0
4.22018 0
4.28636 0
4.35255 0
4.41873 0
4.48491 0
4.5511 0
4.61728 0
4.68347 0
4.74965 0
4.81583 0
4.88202 0
4.9482 0
5.01439 0
5.08057 0
5.14676 0
5.21294 0
5.27912 0
5.34531 0
5.41149 0
5.47768 0
5.54386 0
5.61004 0
5.67623 0
5.74241 0
5.8086 0
5.87478 0
5.94097 0
6.00715 0
6.07333 0
6.13952 0
6.2057 0
6.27189 0
6.33807 0
6.40425 0
6.47044 0
6.53662 1
6.60281 3
6.66899 3
6.73518 0
6.80136 0
6.86754 3
6.93373 15
6.99991 2
7.0661 9
7.13228 18
7.19846 23
7.26465 16
7.33083 11
7.39702 17
7.4632 28
7.52938 26
7.59557 16
7.66175 30
7.72794 41
7.79412 24
7.86031 18
7.92649 14
7.99267 10
8.05886 6
8.12504 10
8.19123 3
8.25741 4
8.32359 5
8.38978 4
8.45596 1

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.

image with banding

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):

tonemapped Radiance image without 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
2.63176 39667
2.69794 64799
2.76413 93599
2.83031 141772
2.89649 149964
2.96268 140519
3.02886 142675
3.09505 149038
3.16123 146731
3.22742 145481
3.2936 85213
3.35978 59476
3.42597 41804
3.49215 27795
3.55834 19000
3.62452 15328
3.6907 8258
3.75689 2649
3.82307 82
3.88926 0
3.95544 0
4.02163 0
4.08781 0
4.15399 0
4.22018 0
4.28636 0
4.35255 0
4.41873 0
4.48491 0
4.5511 0
4.61728 0
4.68347 0
4.74965 0
4.81583 0
4.88202 0
4.9482 0
5.01439 0
5.08057 0
5.14676 0
5.21294 0
5.27912 0
5.34531 0
5.41149 0
5.47768 0
5.54386 0
5.61004 0
5.67623 0
5.74241 0
5.8086 0
5.87478 0
5.94097 0
6.00715 0
6.07333 0
6.13952 0
6.2057 0
6.27189 0
6.33807 0
6.40425 0
6.47044 0
6.53662 1
6.60281 3
6.66899 3
6.73518 0
6.80136 0
6.86754 3
6.93373 15
6.99991 2
7.0661 9
7.13228 18
7.19846 23
7.26465 16
7.33083 11
7.39702 17
7.4632 28
7.52938 26
7.59557 16
7.66175 30
7.72794 41
7.79412 24
7.86031 18
7.92649 14
7.99267 10
8.05886 6
8.12504 10
8.19123 3
8.25741 4
8.32359 5
8.38978 4
8.45596 1
... (edit - I truncated this after the issue was resolved for readability in posterity)

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.

image with banding

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):

tonemapped Radiance image without 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: image description

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.

image with banding

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):

tonemapped Radiance image without 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: image description

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.

image with banding

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):

tonemapped Radiance image without 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: image description

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.

image with banding

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):

tonemapped Radiance image without 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: image description

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.

image with banding

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):

tonemapped Radiance image without 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: image description