From: Good Guy Date: Mon, 29 Feb 2016 23:37:57 +0000 (-0700) Subject: fix to histogram_bezier polynomial X-Git-Url: http://git.cinelerra-gg.org/git/?p=goodguy%2Fhistory.git;a=commitdiff_plain;h=1c762fccb1d90053abf84f0fa81c28a1a13808c7;hp=27f1d9cace8459ed7026f82726cdf8fbac790e75 fix to histogram_bezier polynomial --- diff --git a/cinelerra-5.0/plugins/histogram_bezier/bistogram.C b/cinelerra-5.0/plugins/histogram_bezier/bistogram.C index 6799e316..9e34e016 100644 --- a/cinelerra-5.0/plugins/histogram_bezier/bistogram.C +++ b/cinelerra-5.0/plugins/histogram_bezier/bistogram.C @@ -342,7 +342,7 @@ float HistogramMain::calculate_linear(float input, float dy = y2 - y1; float delx = input - x1; output = (grad2 * dx + grad1 * dx - 2*dy) / (dx * dx * dx) * delx * delx * delx + - (dx * dx) * (3*dy - 2* grad1*dx - grad2*dx) / (dx * dx) * delx * delx + grad1*delx + y1; + (3*dy - 2* grad1*dx - grad2*dx) / (dx * dx) * delx * delx + grad1*delx + y1; } else if (config.smoothMode == HISTOGRAM_BEZIER) {