<?xml version='1.0' encoding='UTF-8'?>
<tool id="imagej2_find_edges" name="Find edges" version="@WRAPPER_VERSION@.0">
    <description></description>
    <macros>
        <import>imagej2_macros.xml</import>
    </macros>
    <expand macro="fiji_requirements" />
    <command>
<![CDATA[
    python $__tool_directory__/imagej2_find_edges.py
    --input "$input"
    --input_datatype $input.ext
    --jython_script $__tool_directory__/imagej2_find_edges_jython_script.py
    --output_datatype $output.ext
    --output "$output"
]]>
    </command>
    <inputs>
        <param format="bmp,eps,gif,jpg,pcx,pgm,png,psd,tiff" name="input" type="data" label="Select image"/>
    </inputs>
    <outputs>
        <data name="output" format_source="input" label="${tool.name} on ${on_string}"/>
    </outputs>
    <tests>
        <test>
            <param name="input" value="blobs.gif" />
            <output name="output" file="blobs_find_edges.gif" compare="sim_size" />
        </test>
    </tests>
    <help>

**What it does**

Uses a Sobel edge detector to highlight sharp changes in intensity in the active image.
The two 3x3 convolution kernels shown below are used to generate vertical and horizontal
derivatives.  The final image is produced by combining the two derivatives using the square
root of the sum of the squares.

``1  2  1     1  0 -1``

``0  0  0     2  0 -2``

``-1 -2 -1    1  0 -1``

    </help>
    <expand macro="fiji_headless_citations" />
</tool>
