Negative floats
Posted: 2007-10-10T18:14:55-07:00
Hey all.
I am working with Fred Weinhaus on the Fourier routines and I have hit another snag. (Fred caught this one...).
A standard Fourier transform will produce positive *and* negative values. I assume that any Float/Double image I create with ConstituteImage will lose its negative values. This is definitely the case for a non-HDRI build. Do any of you HDRI gurus know whether sign is preserved with ConstitueImage? If not, should I scale it and pass back a different structure (eg. one that could hold a "min" and "max" value? The other option is to just return a double array and pass the problem on to the next developer.
Any thoughts?
Sean Burke
I am working with Fred Weinhaus on the Fourier routines and I have hit another snag. (Fred caught this one...).
A standard Fourier transform will produce positive *and* negative values. I assume that any Float/Double image I create with ConstituteImage will lose its negative values. This is definitely the case for a non-HDRI build. Do any of you HDRI gurus know whether sign is preserved with ConstitueImage? If not, should I scale it and pass back a different structure (eg. one that could hold a "min" and "max" value? The other option is to just return a double array and pass the problem on to the next developer.

Any thoughts?
Sean Burke