public void setStrokeMax(float strokeMax) { curves.setStrokeMax(strokeMax); }
public void setStrokeMin(float strokeMin) { curves.setStrokeMin(strokeMin); }
@Override public BufferedImage filter(BufferedImage src, BufferedImage dest) { if (dest == null) { dest = createCompatibleDestImage(src, null); double y3 = (i + 2 < cp) ? yPoints[i + 2] : 2 * yPoints[i + 1] - yPoints[i]; for (int j = 0; j < subsections; j++) { xPointsSpline[i * subsections + j] = (int) catmullRomSpline(x0, x1, x2, x3, 1.0 / subsections * j); yPointsSpline[i * subsections + j] = (int) catmullRomSpline(y0, y1, y2, y3, 1.0 / subsections * j);
private double catmullRomSpline(double x0, double x1, double x2, double x3, double t) { double a1 = (x2 - x0) / 2; double a2 = (x3 - x1) / 2; return hermiteSpline(x1, a1, x2, a2, t); }
public void setColorFactory(ColorFactory colorFactory) { curves.setColorFactory(colorFactory); }
public void setStrokeMax(float strokeMax) { curves.setStrokeMax(strokeMax); }
public void setStrokeMin(float strokeMin) { curves.setStrokeMin(strokeMin); }