I just downloaded and installed IM 6.4.1.-3 Q16 HDRI on Mac OSX Tiger.
I believe that MIFF format is not preserving negative values in HDRI.
I am finding that when I test Sean Burke's IMFFT to create a mag/phase pair in MIFF format, the results are not preserving the negative values; whereas in PFM format they are fine.
The usual test image:

The fft step:
Applications/imfft/trunk14/demo f square31.png square31_fft.miff
Generates:
Mag: http://www.fmwconcepts.com/misc_tests/F ... fft-0.miff
Phase: http://www.fmwconcepts.com/misc_tests/F ... fft-1.miff
convert square31_fft-1.miff -verbose info:
Type: Grayscale
Base type: Grayscale
Endianess: Undefined
Colorspace: Gray
Depth: 32/16-bit
Channel depth:
gray: 16-bit
Channel statistics:
gray:
min: 0 (0)
max: 3.12932 (4.77503e-05)
mean: 0.604002 (9.21648e-06)
standard deviation: 0.948808 (1.44779e-05)
Note the phase should have values that range from -pi to +pi, but here they are getting clipped at zero -- negative values are not preserved.
When I do the same with PFM format results:
Applications/imfft/trunk14/demo f square31.png square31_fft.pfm
Generates:
Mag: http://www.fmwconcepts.com/misc_tests/F ... _fft-0.pfm
Phase: http://www.fmwconcepts.com/misc_tests/F ... _fft-1.pfm
convert square31_fft-1.pfm -verbose info:
Type: Grayscale
Base type: Grayscale
Endianess: Undefined
Colorspace: Gray
Depth: 32/16-bit
Channel depth:
gray: 16-bit
Channel statistics:
gray:
min: -3.12932 (-4.77504e-05)
max: 3.12932 (4.77504e-05)
mean: 1.81636e-05 (2.77158e-10)
standard deviation: 1.59061 (2.42712e-05)
Here the min and max values are properly between -pi and +pi
Would you look into this again. Thanks.
Fred