]> mj.ucw.cz Git - libucw.git/blob - cf/images
21e4968f867670d8272a50cb6b06bab91fc4e3b0
[libucw.git] / cf / images
1 # Configuration of the image library (included by cf/sherlock)
2
3 ######## General parameters #####################################################
4
5 ImageLib {
6
7 # Default tracing level (0 to disable)
8 Trace           0
9
10 # Limits for image allocation. ImageMaxDim must be less than 1<<16.
11 ImageMaxDim     0xffff
12 ImageMaxBytes   256M
13
14 }
15
16 ######## Image signatures #######################################################
17
18 ImageSig {
19
20 # Sherlock use regions based image comparision to search similar images.
21 # To enable this feature, enable imagesig analyser to extract
22 # various regions features needed for comparisions. Sets of these features
23 # are called "image signature" and there are stored in attributes 'H'.
24
25 # Signatures are later processed by chewer to build an effective
26 # search structure finally used by images. See Indexer and Search
27 # sections for more options.
28
29
30 # Minimum image size to apply segmentation. Smaller images are always
31 # compared with simple "average" method (see ImageSig.CompareMethod).
32 MinWidth        16
33 MinHeight       16
34
35 # List of subdivision thresholds in first phase of segmentation.
36 # Lower the values to increase average number of regions and vice versa.
37 PreQuantThresholds      6 12 15 20 25 25 30 30 40 40 50 50 60 60 60
38
39 # Settings for second phase of segmentation - usually not so important.
40 # We use iterative algorithm to improve average error from the first phase.
41 # We stop the process after PostQuantMaxSteps or if we get only PostQuantThreshold
42 # percentual improvement in comparision with the previous step.
43 PostQuantMinSteps       2
44 PostQuantMaxSteps       10
45 PostQuantThreshold      1
46
47 # BorderBonus and BorderSize parameters can increase or decrease the weight
48 # of image pixels near the borders. Weight of all pixels more than BorderSize * MIN(cols, rows)
49 # pixels far from the edges is 128. Then this value continuously decrese/increse up to 128+BorderSize.
50 BorderSize              0.4
51 BorderBonus             -50
52
53 # Scaling constants for computation of normalized i-th order inertia features (I1, I2, I3).
54 InertiaScale            2 0.5 0.05
55
56 # Threshold for detecting textured images (see images/sig-txt.c for details).
57 # Decrease the threshold if you want less detected textures,
58 # set it to zero to disable the algorithm completely.
59 TexturedThreshold       0.32
60
61 # Signatures comparision method (integrated|fuzzy|average):
62 #
63 #   integrated
64 #       based on: James Z. Wang, Jia Li and Gio Wiederhold,
65 #       "SIMPLIcity: Semantics-Sensitive Integrated Matching for Picture Libraries",
66 #       IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 23, no. 9, pp. 947-963, 2001.
67 #
68 #   fuzzy (unstable and unbalanced parameters)
69 #       based on: Yixin Chen and James Z. Wang,
70 #       "A Region-Based Fuzzy Feature Matching Approach to Content-Based Image Retrieval",
71 #       IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 24, no. 9, pp. 1252-1267, 2002.
72 #
73 #   average
74 #       Simple distance of image features averages (ignores segmentation).
75 #
76 CompareMethod           integrated
77
78 # Array of multiplicative constants in feature vectors distance computation
79 # (L, u, v, LH, HL, HH, I1, I2, I3, X, Y). Each one must be an integer in range 0..15, default is 4.
80 CompareFeaturesWeights  4 6 6 4 4 4 4 4 4 4 4
81
82 }
83
84 ######## Duplicates finder ######################################################
85
86 ImageDup {
87 # Image duplicates do not work yet.
88 }
89