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