about summary refs log tree commit diff
path: root/converter/other/pamtosvg/fit.h
blob: 529da5c720357c2c704d1a79d1043941f6190aaf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/* fit.h: convert the pixel representation to splines. */

#ifndef FIT_H_INCLUDED
#define FIT_H_INCLUDED

#include "autotrace.h"
#include "image-proc.h"
#include "pxl-outline.h"
#include "spline.h"
#include "exception.h"

/* See fit.c for descriptions of these variables, all of which can be
   set using options. 
*/
typedef at_fitting_opts_type fitting_opts_type;

void
fit_outlines_to_splines(pixel_outline_list_type  const pixelOutlineList,
                        fitting_opts_type *      const fittingOptsP,
                        distance_map_type *      const dist,
                        unsigned short           const width,
                        unsigned short           const height,
                        at_exception_type *      const exception,
                        at_progress_func               notifyProgress, 
                        void *                   const progressData,
                        at_testcancel_func             testCancel,
                        void *                   const testcancelData,
                        spline_list_array_type * const splineListArrayP);

/* Get a new set of fitting options */
fitting_opts_type
new_fitting_opts(void);

#endif