9
|
1 /*
|
|
2 * GQview
|
|
3 * (C) 2004 John Ellis
|
|
4 *
|
|
5 * Author: John Ellis
|
|
6 *
|
|
7 * This software is released under the GNU General Public License (GNU GPL).
|
|
8 * Please read the included file COPYING for more information.
|
|
9 * This software comes with no warranty of any kind, use at your own risk!
|
|
10 */
|
|
11
|
|
12
|
|
13 #ifndef SIMILAR_H
|
|
14 #define SIMILAR_H
|
|
15
|
|
16
|
|
17 typedef struct _ImageSimilarityData ImageSimilarityData;
|
|
18 struct _ImageSimilarityData
|
|
19 {
|
|
20 guint8 avg_r[1024];
|
|
21 guint8 avg_g[1024];
|
|
22 guint8 avg_b[1024];
|
|
23
|
|
24 gint filled;
|
|
25 };
|
|
26
|
|
27
|
|
28 ImageSimilarityData *image_sim_new(void);
|
|
29 void image_sim_free(ImageSimilarityData *sd);
|
|
30
|
|
31 void image_sim_fill_data(ImageSimilarityData *sd, GdkPixbuf *pixbuf);
|
|
32 ImageSimilarityData *image_sim_new_from_pixbuf(GdkPixbuf *pixbuf);
|
|
33
|
|
34 gdouble image_sim_compare(ImageSimilarityData *a, ImageSimilarityData *b);
|
|
35 gdouble image_sim_compare_fast(ImageSimilarityData *a, ImageSimilarityData *b, gdouble min);
|
|
36
|
|
37
|
|
38 void image_sim_alternate_set(gint enable);
|
|
39 gint image_sim_alternate_enabled(void);
|
|
40 void image_sim_alternate_processing(ImageSimilarityData *sd);
|
|
41
|
|
42
|
|
43 #endif
|
|
44
|