<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSPY v5 rel. 3 U 
    (http://www.xmlspy.com) by Isabelle Guyon (Clopinet) -->
<!DOCTYPE server_plugin SYSTEM "server_plugin_.dtd">

<server_plugin 
    name="bint" 
    author="Veenhuis,Christian" 
    version="0.1" 
    created="2003-04-02-00-00" 
    numInputs="1" 
    numOutputs="1">

    <description> 
        Binarizes the given image with threshold 127 
    </description>

    <vars>
        <var name="threshold"/>
    </vars>

    <call>
        <location> plugins/binarize/binarize.exe </location>
        <invocation>
            <use_input number="0"/>
            <use_output number="0"/>
            <use_var name="threshold" />
        </invocation>
    </call>

    <protocol>
        <to_server>
            <transfer_input number="0"/>
            <transfer_var name="threshold"/>
        </to_server>
        <call_plugin />
        <to_client>
            <transfer_output number="0"/>
        </to_client>
    </protocol>

    <errors>
        <error code="-1" msg="Wrong number of arguments"/>
        <error code="-2" msg="Unknown image format"/>
        <error code="-3" msg="Couldn't read image"/>
        <error code="-4" msg="Couldn't write image"/>
        <error code="-5" msg="Threshold invalid ([0;255])"/>
    </errors>
</server_plugin>
