[magick-users] problem with level
Espen Iveland
espen.iveland at cinevation.net
Thu Dec 6 02:08:08 PST 2007
Hi,
I am trying to increase contrast in an image in C++ using the Image::level function. Somehow, this always results in a black image. I have a greyscale 12 bit image with min/max value around 1800/3800. My code is pretty straight forward:
image.level(m_minValue, m_maxValue);
I expected this to "stretch" my image, so that the whole 16 bits are used.
I tried to debug, and to me it seams that the white_point parameter is never used, it is set to 1.0. If I, inside the enhance.c LevelImage function, set the white_point variable to my max value during debugging, it works fine.
I am using the latest version (6.3.7).
Does anyone have a tip? Am I doing something wrong here, or is there a bug?
Regards,
E
More information about the Magick-users
mailing list