From 1c762fccb1d90053abf84f0fa81c28a1a13808c7 Mon Sep 17 00:00:00 2001 From: Good Guy Date: Mon, 29 Feb 2016 16:37:57 -0700 Subject: [PATCH] fix to histogram_bezier polynomial --- cinelerra-5.0/plugins/histogram_bezier/bistogram.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.26.2