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
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to