Do not show colorization progress when using quick render mode
[colorize.git] / lib / colorize.h
1 #ifndef ___COLORIZE_H___
2 #define ___COLORIZE_H___
3
4 struct colorize {
5         /* input stuff */
6         const darray_t *image;
7         const darray_t *image_mark;
8         const darray_t *flow;
9         const darray_t *flow_i;
10         int inner_iter;
11         int outer_iter;
12         int scalexyz;
13
14         /* internal stuff */
15         int w, h, k, comp, max_depth;
16         unsigned char **nb_list;
17         darray_t **values;
18         darray_t **marks;
19         darray_t *init;
20         darray_t **flows;
21         darray_t **flows_i;
22         darray_t **flows_xy;
23 };
24
25 int colorize_prepare(struct colorize *col, int quick, int alloc);
26 int colorize_solve(struct colorize *col, int quick, char **feat_names);
27 void colorize_free(struct colorize *col);
28
29 int colorize(const darray_t *image, const darray_t *image_mark, const darray_t *flow, const darray_t *flow_i, int inner_iter, int outer_iter, int quick, int scalexyz, char **feat_names, struct colorize **_col);
30 #endif