summaryrefslogtreecommitdiffstats
path: root/plug-ins/selection-to-path/fit.h
diff options
context:
space:
mode:
Diffstat (limited to 'plug-ins/selection-to-path/fit.h')
-rw-r--r--plug-ins/selection-to-path/fit.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/plug-ins/selection-to-path/fit.h b/plug-ins/selection-to-path/fit.h
new file mode 100644
index 0000000..f009c9a
--- /dev/null
+++ b/plug-ins/selection-to-path/fit.h
@@ -0,0 +1,54 @@
+/* fit.h: convert the pixel representation to splines.
+ *
+ * Copyright (C) 1992 Free Software Foundation, Inc.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3, or (at your option)
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
+ */
+
+#ifndef FIT_H
+#define FIT_H
+
+#include "pxl-outline.h"
+#include "spline.h"
+
+
+/* See fit.c for descriptions of these variables, all of which can be
+ set using options. */
+extern real align_threshold;
+extern real corner_always_threshold;
+extern unsigned corner_surround;
+extern real corner_threshold;
+extern real error_threshold;
+extern unsigned filter_alternative_surround;
+extern real filter_epsilon;
+extern unsigned filter_iteration_count;
+extern real filter_percent;
+extern unsigned filter_surround;
+extern boolean keep_knees;
+extern real line_reversion_threshold;
+extern real line_threshold;
+extern real reparameterize_improvement;
+extern real reparameterize_threshold;
+extern real subdivide_search;
+extern unsigned subdivide_surround;
+extern real subdivide_threshold;
+extern unsigned tangent_surround;
+
+
+/* Fit splines and lines to LIST. */
+extern spline_list_array_type fitted_splines (pixel_outline_list_type list);
+void fit_set_params(SELVALS *);
+void fit_set_default_params(SELVALS *);
+
+#endif /* not FIT_H */