Kamil Wencel wrote:
> 2. In order to change the way images are matched I have to fiddle
> around with the settings of Classical IDF.
> I think I have to tweak the settings in gift-config, right ? But where
> exactly shall I begin ? Wolfgang, you said
> something about a "configuring and hacking the gift" guide as a
> starting point. Where can we find it ?
>
Have a look at gift-config.mrml file. You can add new "algorithms" that
change the weighting of the four feature groups (local  (blocks) and
global colour, and local and global texture). You do this by creating
sub-algorithms that block all put one of the feature groups, and give an
appropriate weight to the remaining feature group. For example:

<!-- ############################# a-dms3  ########################### -->
<!-- Another test algorithm -->
<!-- try one with no texture features -->
<algorithm algorithm-id="a-dms3" algorithm-type="a-dms3"
algorithm-name="Visual only, Only colour"
collection-id="c-12-12-11-12-6-101-4-192-0" cui-base-type="multiple">
        <!-- sub-algorithm for colour histogram -->
        <algorithm algorithm-id="sub-3-1" algorithm-type="sub-3-1"
algorithm-name="sub-3-1" cui-block-color-histogram="no"
cui-block-color-blocks="yes" cui-block-texture-histogram="yes"
cui-block-texture-blocks="yes" cui-pr-percentage-of-features="100"
cui-base-type="inverted_file" cui-weighting-function="ClassicalIDF"
cui-weight="0.5"/>
        <!-- sub-algorithm for colour blocks -->
        <algorithm algorithm-id="sub-3-2" algorithm-type="sub-3-2"
algorithm-name="sub-3-2" cui-block-color-histogram="yes"
cui-block-color-blocks="no" cui-block-texture-histogram="yes"
cui-block-texture-blocks="yes" cui-base-type="inverted_file"
cui-weighting-function="ClassicalIDF" cui-weight="0.5"/>
        <!-- paradigm list - we place no restrictions at this time -->
        <query-paradigm-list>
                <query-paradigm/><!-- match anything -->
        </query-paradigm-list>
</algorithm>

(Make sure you copy the collection-id from an algorithm in your existing
gift-config.mrml - though in fact I think this is actually ignored in
the present implementation)

It is a little unfortunate that the both noun and verb "block" are used
here with completely different senses, i.e.

cui-block-color-blocks="no"

means don't ("no") ignore ("block") local colour features ("color-blocks")


Regards,

David


-- 
Dr. David McG. Squire, Senior Lecturer. On sabbatical in 2006.
Caulfield School of Information Technology, Monash University, Australia
CRICOS Provider No. 00008C       http://www.csse.monash.edu.au/~davids/



_______________________________________________
help-GIFT mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gift

Reply via email to