Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
I have a file of floating-point numbers. They are not contained in the range [0:1]. I want to display them as an image so that the minimum value from the file is black and the maximum value is white. Must I pre-process the data to scale it to the range [0:1] before using Imagemagick for this to work? The command
There are is a setting for scaling for floating point numbers in input, but no input bias option that I know about. It could be added! But I am not certain how well it works outside of HDRI versions of ImageMagick.
EG -define quantum:scale=65535.0
You will likely need HDRI version of ImageMagick (floating point internal data format), so you can read in the image without clipping, and then 'level' the image to scale the values to a more 'useful' range for display.
Thank you for the reply. What I want is to display a file that contains floating-point numbers in the range [-b,+w], and have the value '-b' be the black point, and '+w' be the white point. Since it doesn't seem to be possible to achieve this easily with ImageMagick I have decided to instead preprocess the data into the range [0,1] with an external program.