<?xml version='1.0' encoding='UTF-8'?>
<tool id="imagej2_shadows" name="Add shadow effect" version="@WRAPPER_VERSION@.0">
    <description></description>
    <macros>
        <import>imagej2_macros.xml</import>
    </macros>
    <expand macro="fiji_requirements" />
    <command>
<![CDATA[
    python $__tool_directory__/imagej2_shadows.py
    --input "$input"
    --input_datatype $input.ext
    --direction $direction
    --jython_script $__tool_directory__/imagej2_shadows_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"/>
        <param name="direction" type="select" label="Direction" help="Light will appear to come from the selected direction">
            <option value="East" selected="True">East</option>
            <option value="North">North</option>
            <option value="Northeast">Northeast</option>
            <option value="Northwest">Northwest</option>
            <option value="South">South</option>
            <option value="Southeast">Southeast</option>
            <option value="Southwest">Southwest</option>
            <option value="West">West</option>
        </param>
    </inputs>
    <outputs>
        <data name="output" format_source="input" label="${tool.name} on ${on_string}: Light from ${direction}"/>
    </outputs>
    <tests>
        <test>
            <param name="input" value="blobs.gif" />
            <param name="direction" value="Northwest" />
            <output name="output" file="blobs_northwest.gif" compare="sim_size" />
        </test>
    </tests>
    <help>

**What it does**

<![CDATA[

Produces a shadow effect, with light appearing to come from the selected direction (East, North, Northeast,
Northwest, South, Southeast, Southwest and West). The underlying commands use Convolve 3 × 3, ImageJ’s 3 × 3
convolution function.

]]>

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