From: cristy Date: Sat, 25 May 2013 13:19:06 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~3644 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e128ac5f55b30ae17a7feb1d0502a86558bdff70;p=imagemagick --- diff --git a/MagickCore/enhance.c b/MagickCore/enhance.c index 23ca341e8..5fce46bee 100644 --- a/MagickCore/enhance.c +++ b/MagickCore/enhance.c @@ -2350,7 +2350,8 @@ static inline double LevelPixel(const double black_point, scale; scale=(white_point != black_point) ? 1.0/(white_point-black_point) : 1.0; - level_pixel=QuantumRange*gamma_pow(scale*((double) pixel-black_point),gamma); + level_pixel=QuantumRange*gamma_pow(scale*((double) pixel-black_point), + 1.0/gamma); return(level_pixel); }