2
* SIOX: Simple Interactive Object Extraction
4
* For algorithm documentation refer to:
5
* G. Friedland, K. Jantz, L. Knipping, R. Rojas:
6
* "Image Segmentation by Uniform Color Clustering
7
* -- Approach and Benchmark Results",
8
* Technical Report B-05-07, Department of Computer Science,
9
* Freie Universitaet Berlin, June 2005.
10
* http://www.inf.fu-berlin.de/inst/pubs/tr-b-05-07.pdf
12
* See http://www.siox.org/ for more information.
14
* Algorithm idea by Gerald Friedland.
15
* This implementation is Copyright (C) 2005
16
* by Gerald Friedland <fland@inf.fu-berlin.de>
17
* and Kristian Jantz <jantz@inf.fu-berlin.de>.
19
* This program is free software; you can redistribute it and/or
20
* modify it under the terms of the GNU General Public License
21
* as published by the Free Software Foundation; either version 2
22
* of the License, or (at your option) any later version.
24
* This program is distributed in the hope that it will be useful,
25
* but WITHOUT ANY WARRANTY; without even the implied warranty of
26
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27
* GNU General Public License for more details.
29
* You should have received a copy of the GNU General Public License
30
* along with this program; if not, write to the Free Software
31
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
40
#define SIOX_DEFAULT_SMOOTHNESS 3
42
#define SIOX_DEFAULT_SENSITIVITY_L 0.64
43
#define SIOX_DEFAULT_SENSITIVITY_A 1.28
44
#define SIOX_DEFAULT_SENSITIVITY_B 2.56
46
/* FIXME: turn this into an enum */
47
#define SIOX_DRB_ADD 0
48
#define SIOX_DRB_SUBTRACT 1
51
typedef void (* SioxProgressFunc) (gpointer progress_data,
54
SioxState * siox_init (TileManager *pixels,
55
const guchar *colormap,
62
void siox_foreground_extract (SioxState *state,
63
SioxRefinementType refinement,
70
const gdouble sensitivity[3],
72
SioxProgressFunc progress_callback,
73
gpointer progress_data);
74
void siox_done (SioxState *state);
76
void siox_drb (SioxState *state,
85
#endif /* __SIOX_H__ */