possible bug HDR format in IM 6.7.1.6 Q32 HDRI
Posted: 2011-08-15T12:38:46-07:00
IM 6.7.1.6 Q32 HDRI Mac OSX Tiger.
I am getting some weird results from simple conversions of an HDR format image. See image lampickaHDR.hdr which can be downloaded at http://dcgi.felk.cvut.cz/home/cadikm/tmo/hdr_images/.
Note in the original, the max values are 10^13 very large values
identify -version lampickaHDR.hdr
Image: lampickaHDR.hdr
Format: HDR (Radiance RGBE image format)
Class: DirectClass
Geometry: 1600x1200+0+0
Resolution: 72x72
Print size: 22.2222x16.6667
Units: Undefined
Type: TrueColor
Endianess: Undefined
Colorspace: XYZ
Depth: 32/25-bit
Channel depth:
red: 25-bit
green: 25-bit
blue: 25-bit
Channel statistics:
Red:
min: 0 (0)
max: 7.00939e+13 (16320)
mean: 5.0654e+10 (11.7938)
standard deviation: 3.454e+11 (80.4197)
kurtosis: 4446.22
skewness: 36.2988
Green:
min: 0 (0)
max: 6.51461e+13 (15168)
mean: 4.39835e+10 (10.2407)
standard deviation: 3.30074e+11 (76.8513)
kurtosis: 4349.06
skewness: 38.34
Blue:
min: 0 (0)
max: 3.47721e+13 (8096)
mean: 3.37688e+10 (7.86241)
standard deviation: 2.44982e+11 (57.0393)
kurtosis: 2111.01
skewness: 27.6055
If I now simply resize, I get much smaller max values, 10^5 (very small values)
convert lampickaHDR.hdr -resize 500x500 lampickaHDR_small.hdr
identify -version lampickaHDR_small.hdr
Image: lampickaHDR_small.hdr
Format: HDR (Radiance RGBE image format)
Class: DirectClass
Geometry: 500x375+0+0
Resolution: 72x72
Print size: 6.94444x5.20833
Units: Undefined
Type: TrueColor
Endianess: Undefined
Colorspace: XYZ
Depth: 32-bit
Channel depth:
red: 29-bit
green: 32-bit
blue: 31-bit
Channel statistics:
Red:
min: 0 (0)
max: 211968 (4.93526e-05)
mean: 74176 (1.72704e-05)
standard deviation: 30926.6 (7.20067e-06)
kurtosis: 0.098061
skewness: -0.51046
Green:
min: 0 (0)
max: 125440 (2.92063e-05)
mean: 33552.2 (7.81198e-06)
standard deviation: 24600.4 (5.72773e-06)
kurtosis: -1.73878
skewness: 0.0915995
Blue:
min: 0 (0)
max: 72704 (1.69277e-05)
mean: 31418.6 (7.31521e-06)
standard deviation: 21467.4 (4.99827e-06)
kurtosis: -1.58378
skewness: 0.284789
Similarly, if I just use -auto-level, I would have expected the max to be much larger, full 32-bit range, but again very small values.
convert lampickaHDR.hdr -auto-level lampickaHDR_al.hdr
identify -version lampickaHDR_al.hdr
Image: lampickaHDR_al.hdr
Format: HDR (Radiance RGBE image format)
Class: DirectClass
Geometry: 1600x1200+0+0
Resolution: 72x72
Print size: 22.2222x16.6667
Units: Undefined
Type: TrueColor
Endianess: Undefined
Colorspace: XYZ
Depth: 32-bit
Channel depth:
red: 32-bit
green: 32-bit
blue: 32-bit
Channel statistics:
Red:
min: 0 (0)
max: 143360 (3.33786e-05)
mean: 74.7691 (1.74085e-08)
standard deviation: 507.317 (1.18119e-07)
kurtosis: 13216.5
skewness: 65.3044
Green:
min: 0 (0)
max: 115200 (2.68221e-05)
mean: 32.5216 (7.57203e-09)
standard deviation: 314.402 (7.32024e-08)
kurtosis: 32971.5
skewness: 117.476
Blue:
min: 0 (0)
max: 32768 (7.62939e-06)
mean: 27.4133 (6.38266e-09)
standard deviation: 198.483 (4.62129e-08)
kurtosis: 2918.72
skewness: 30.7014
I am getting some weird results from simple conversions of an HDR format image. See image lampickaHDR.hdr which can be downloaded at http://dcgi.felk.cvut.cz/home/cadikm/tmo/hdr_images/.
Note in the original, the max values are 10^13 very large values
identify -version lampickaHDR.hdr
Image: lampickaHDR.hdr
Format: HDR (Radiance RGBE image format)
Class: DirectClass
Geometry: 1600x1200+0+0
Resolution: 72x72
Print size: 22.2222x16.6667
Units: Undefined
Type: TrueColor
Endianess: Undefined
Colorspace: XYZ
Depth: 32/25-bit
Channel depth:
red: 25-bit
green: 25-bit
blue: 25-bit
Channel statistics:
Red:
min: 0 (0)
max: 7.00939e+13 (16320)
mean: 5.0654e+10 (11.7938)
standard deviation: 3.454e+11 (80.4197)
kurtosis: 4446.22
skewness: 36.2988
Green:
min: 0 (0)
max: 6.51461e+13 (15168)
mean: 4.39835e+10 (10.2407)
standard deviation: 3.30074e+11 (76.8513)
kurtosis: 4349.06
skewness: 38.34
Blue:
min: 0 (0)
max: 3.47721e+13 (8096)
mean: 3.37688e+10 (7.86241)
standard deviation: 2.44982e+11 (57.0393)
kurtosis: 2111.01
skewness: 27.6055
If I now simply resize, I get much smaller max values, 10^5 (very small values)
convert lampickaHDR.hdr -resize 500x500 lampickaHDR_small.hdr
identify -version lampickaHDR_small.hdr
Image: lampickaHDR_small.hdr
Format: HDR (Radiance RGBE image format)
Class: DirectClass
Geometry: 500x375+0+0
Resolution: 72x72
Print size: 6.94444x5.20833
Units: Undefined
Type: TrueColor
Endianess: Undefined
Colorspace: XYZ
Depth: 32-bit
Channel depth:
red: 29-bit
green: 32-bit
blue: 31-bit
Channel statistics:
Red:
min: 0 (0)
max: 211968 (4.93526e-05)
mean: 74176 (1.72704e-05)
standard deviation: 30926.6 (7.20067e-06)
kurtosis: 0.098061
skewness: -0.51046
Green:
min: 0 (0)
max: 125440 (2.92063e-05)
mean: 33552.2 (7.81198e-06)
standard deviation: 24600.4 (5.72773e-06)
kurtosis: -1.73878
skewness: 0.0915995
Blue:
min: 0 (0)
max: 72704 (1.69277e-05)
mean: 31418.6 (7.31521e-06)
standard deviation: 21467.4 (4.99827e-06)
kurtosis: -1.58378
skewness: 0.284789
Similarly, if I just use -auto-level, I would have expected the max to be much larger, full 32-bit range, but again very small values.
convert lampickaHDR.hdr -auto-level lampickaHDR_al.hdr
identify -version lampickaHDR_al.hdr
Image: lampickaHDR_al.hdr
Format: HDR (Radiance RGBE image format)
Class: DirectClass
Geometry: 1600x1200+0+0
Resolution: 72x72
Print size: 22.2222x16.6667
Units: Undefined
Type: TrueColor
Endianess: Undefined
Colorspace: XYZ
Depth: 32-bit
Channel depth:
red: 32-bit
green: 32-bit
blue: 32-bit
Channel statistics:
Red:
min: 0 (0)
max: 143360 (3.33786e-05)
mean: 74.7691 (1.74085e-08)
standard deviation: 507.317 (1.18119e-07)
kurtosis: 13216.5
skewness: 65.3044
Green:
min: 0 (0)
max: 115200 (2.68221e-05)
mean: 32.5216 (7.57203e-09)
standard deviation: 314.402 (7.32024e-08)
kurtosis: 32971.5
skewness: 117.476
Blue:
min: 0 (0)
max: 32768 (7.62939e-06)
mean: 27.4133 (6.38266e-09)
standard deviation: 198.483 (4.62129e-08)
kurtosis: 2918.72
skewness: 30.7014