]> mj.ucw.cz Git - libucw.git/blob - images/config.c
- use shape features in new comparision algorithm
[libucw.git] / images / config.c
1 /*
2  *      Image Library -- Configuration
3  *
4  *      (c) 2006 Pavel Charvat <pchar@ucw.cz>
5  */
6
7 #undef LOCAL_DEBUG
8
9 #include "lib/lib.h"
10 #include "lib/conf.h"
11 #include "images/images.h"
12 #include "images/signature.h"
13
14 #include <string.h>
15
16 uns image_sig_min_width;
17 uns image_sig_min_height;
18 uns *image_sig_prequant_thresholds;
19 uns image_sig_postquant_min_steps;
20 uns image_sig_postquant_max_steps;
21 uns image_sig_postquant_threshold;
22 double image_sig_textured_threshold;
23 uns image_sig_compare_method;
24
25 static struct cf_section sig_config = {
26   CF_ITEMS{
27     CF_UNS("MinWidth", &image_sig_min_width),
28     CF_UNS("MinHeight", &image_sig_min_height),
29     CF_UNS_DYN("PreQuantThresholds", &image_sig_prequant_thresholds, CF_ANY_NUM),
30     CF_UNS("PostQuantMinSteps", &image_sig_postquant_min_steps),
31     CF_UNS("PostQuantMaxSteps", &image_sig_postquant_max_steps),
32     CF_UNS("PostQuantThreshold", &image_sig_postquant_threshold),
33     CF_DOUBLE("TexturedThreshold", &image_sig_textured_threshold),
34     CF_UNS("CompareMethod", &image_sig_compare_method),
35     CF_END
36   }
37 };
38
39 static void CONSTRUCTOR
40 images_init_config(void)
41 {
42   cf_declare_section("ImageSig", &sig_config, 0);
43 }