fix to histogram_bezier polynomial
authorGood Guy <good1.2guy@gmail.com>
Mon, 29 Feb 2016 23:37:57 +0000 (16:37 -0700)
committerGood Guy <good1.2guy@gmail.com>
Mon, 29 Feb 2016 23:37:57 +0000 (16:37 -0700)
cinelerra-5.0/plugins/histogram_bezier/bistogram.C

index 6799e316e8ea0f2f1f2a3eb82573aa0b15e75ebc..9e34e016ddca680cde72e400dab9bf5225f9a83a 100644 (file)
@@ -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)
                  {