annotate filter.xml @ 2:b2d9c92bc431 draft

planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
author imgteam
date Fri, 12 Dec 2025 21:18:04 +0000
parents e2542d0ac64f
children 53c55776a974
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
1 <tool id="ip_filter_standard" name="Apply 2-D image filter" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="20.05">
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
2 <description>with scipy</description>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
3 <macros>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
4 <import>creators.xml</import>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
5 <import>tests.xml</import>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
6 <token name="@TOOL_VERSION@">1.16.3</token>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
7 <token name="@VERSION_SUFFIX@">0</token>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
8 <xml name="select_axis">
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
9 <param name="axis" type="select" label="Direction">
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
10 <option value="1" selected="true">Horizontal</option>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
11 <option value="0">Vertical</option>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
12 </param>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
13 </xml>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
14 </macros>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
15 <creator>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
16 <expand macro="creators/bmcv"/>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
17 <expand macro="creators/kostrykin"/>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
18 </creator>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
19 <edam_operations>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
20 <edam_operation>operation_3443</edam_operation>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
21 </edam_operations>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
22 <xrefs>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
23 <xref type="bio.tools">galaxy_image_analysis</xref>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
24 <xref type="biii">scipy</xref>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
25 </xrefs>
0
96fe54355774 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/2d_simple_filter/ commit c3f4b766f03770f094fda6bda0a5882c0ebd4581
imgteam
parents:
diff changeset
26 <requirements>
2
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
27 <requirement type="package" version="@TOOL_VERSION@">scipy</requirement>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
28 <requirement type="package" version="2.3.5">numpy</requirement>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
29 <requirement type="package" version="0.25.2">scikit-image</requirement>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
30 <requirement type="package" version="2025.10.16">tifffile</requirement>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
31 <requirement type="package" version="0.5.2">giatools</requirement>
0
96fe54355774 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/2d_simple_filter/ commit c3f4b766f03770f094fda6bda0a5882c0ebd4581
imgteam
parents:
diff changeset
32 </requirements>
2
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
33 <command detect_errors="aggressive"><![CDATA[
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
34
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
35 python '$__tool_directory__/filter.py'
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
36
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
37 '$input'
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
38 '$output'
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
39 '$params'
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
40
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
41 ]]></command>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
42 <configfiles>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
43 <configfile name="params"><![CDATA[
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
44 {
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
45
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
46 ## =====================================================================
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
47 #if $filter.filter_type == "gaussian"
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
48 "sigma": $filter.sigma,
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
49 "order": $filter.derivative.order,
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
50
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
51 #if $filter.derivative.order != "0"
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
52 "axis": $filter.derivative.axis,
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
53 #end if
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
54
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
55 ## =====================================================================
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
56 #elif $filter.filter_type == "uniform"
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
57 "size": $filter.size,
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
58
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
59 ## =====================================================================
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
60 #elif $filter.filter_type == "median"
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
61 "radius": $filter.radius,
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
62
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
63 ## =====================================================================
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
64 #elif $filter.filter_type == "prewitt" or $filter.filter_type == "sobel"
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
65 "axis": $filter.axis,
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
66
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
67 ## =====================================================================
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
68 #end if
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
69
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
70 "filter_type": "$filter.filter_type"
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
71
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
72 }
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
73 ]]></configfile>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
74 </configfiles>
0
96fe54355774 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/2d_simple_filter/ commit c3f4b766f03770f094fda6bda0a5882c0ebd4581
imgteam
parents:
diff changeset
75 <inputs>
2
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
76 <param name="input" type="data" format="tiff,png" label="Input image"/>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
77 <conditional name="filter">
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
78 <param name="filter_type" type="select" label="Filter type">
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
79 <option value="gaussian" selected="True">Gaussian</option>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
80 <option value="uniform">Box filter (uniform filter)</option>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
81 <option value="median">Median</option>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
82 <option value="prewitt">Prewitt</option>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
83 <option value="sobel">Sobel</option>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
84 </param>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
85 <when value="gaussian">
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
86 <param name="sigma" type="float" value="3" min="0.1" label="Sigma"
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
87 help="The half width of the Gaussian bell (in pixels)."/>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
88 <conditional name="derivative">
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
89 <param name="order" type="select" label="Use a derivative?">
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
90 <option value="0">No derivative (mean filter)</option>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
91 <option value="1">1st-order derivative</option>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
92 <option value="2">2nd-order derivative</option>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
93 </param>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
94 <when value="0">
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
95 </when>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
96 <when value="1">
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
97 <expand macro="select_axis"/>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
98 </when>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
99 <when value="2">
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
100 <expand macro="select_axis"/>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
101 </when>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
102 </conditional>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
103 </when>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
104 <when value="uniform">
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
105 <param name="size" type="integer" min="2" value="3" label="Size"
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
106 help="Edge length of the neighborhood (square, in pixels)."/>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
107 </when>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
108 <when value="median">
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
109 <param name="radius" type="integer" min="2" value="3" label="Radius"
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
110 help="Radius of the neighborhood (circle, in pixels)." />
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
111 </when>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
112 <when value="prewitt">
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
113 <expand macro="select_axis"/>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
114 </when>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
115 <when value="sobel">
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
116 <expand macro="select_axis"/>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
117 </when>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
118 </conditional>
0
96fe54355774 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/2d_simple_filter/ commit c3f4b766f03770f094fda6bda0a5882c0ebd4581
imgteam
parents:
diff changeset
119 </inputs>
96fe54355774 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/2d_simple_filter/ commit c3f4b766f03770f094fda6bda0a5882c0ebd4581
imgteam
parents:
diff changeset
120 <outputs>
96fe54355774 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/2d_simple_filter/ commit c3f4b766f03770f094fda6bda0a5882c0ebd4581
imgteam
parents:
diff changeset
121 <data format="tiff" name="output" />
96fe54355774 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/2d_simple_filter/ commit c3f4b766f03770f094fda6bda0a5882c0ebd4581
imgteam
parents:
diff changeset
122 </outputs>
96fe54355774 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/2d_simple_filter/ commit c3f4b766f03770f094fda6bda0a5882c0ebd4581
imgteam
parents:
diff changeset
123 <tests>
2
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
124 <!-- Tests with uint8 TIFF input image -->
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
125 <test>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
126 <param name="input" value="input1_uint8.tiff"/>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
127 <conditional name="filter">
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
128 <param name="filter_type" value="gaussian"/>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
129 </conditional>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
130 <expand macro="tests/intensity_image_diff" name="output" value="input1_gaussian.tiff" ftype="tiff">
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
131 <!--
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
132
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
133 The input file `input1_uint8.tiff` has values ranging between 23 and 254, with a mean value of 63.67.
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
134
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
135 Below, we use an assertion in addition to the `image_diff` comparison, to ensure that the range of
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
136 values is preserved. The motiviation behind this is that the expectation images are usually checked
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
137 visually, which means that the `image_diff` comparison is likely to ensure that the brightness of
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
138 the image is correct, thus it's good to double-check the range of values (hence the comparably large
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
139 value for `eps`). This also concerns the median filter.
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
140
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
141 -->
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
142 <has_image_mean_intensity mean_intensity="63.67" eps="10"/>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
143 </expand>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
144 </test>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
145 <test>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
146 <param name="input" value="input1_uint8.tiff"/>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
147 <conditional name="filter">
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
148 <param name="filter_type" value="median"/>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
149 </conditional>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
150 <expand macro="tests/intensity_image_diff" name="output" value="input1_median.tiff" ftype="tiff">
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
151 <!-- See note for Gaussian filter above. -->
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
152 <has_image_mean_intensity mean_intensity="63.67" eps="10"/>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
153 </expand>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
154 </test>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
155 <test>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
156 <param name="input" value="input1_uint8.tiff"/>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
157 <conditional name="filter">
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
158 <param name="filter_type" value="prewitt"/>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
159 <param name="axis" value="1"/>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
160 </conditional>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
161 <expand macro="tests/intensity_image_diff" name="output" value="input1_prewitt_h.tiff" ftype="tiff"/>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
162 </test>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
163 <test>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
164 <param name="input" value="input1_uint8.tiff"/>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
165 <conditional name="filter">
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
166 <param name="filter_type" value="prewitt"/>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
167 <param name="axis" value="0"/>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
168 </conditional>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
169 <expand macro="tests/intensity_image_diff" name="output" value="input1_prewitt_v.tiff" ftype="tiff"/>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
170 </test>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
171 <test>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
172 <param name="input" value="input1_uint8.tiff"/>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
173 <conditional name="filter">
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
174 <param name="filter_type" value="sobel"/>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
175 <param name="axis" value="1"/>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
176 </conditional>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
177 <expand macro="tests/intensity_image_diff" name="output" value="input1_sobel_h.tiff" ftype="tiff"/>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
178 </test>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
179 <test>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
180 <param name="input" value="input1_uint8.tiff"/>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
181 <conditional name="filter">
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
182 <param name="filter_type" value="sobel"/>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
183 <param name="axis" value="0"/>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
184 </conditional>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
185 <expand macro="tests/intensity_image_diff" name="output" value="input1_sobel_v.tiff" ftype="tiff"/>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
186 </test>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
187 <!-- Tests with float TIFF input image -->
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
188 <test>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
189 <param name="input" value="input2_float.tiff"/>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
190 <conditional name="filter">
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
191 <param name="filter_type" value="gaussian"/>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
192 </conditional>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
193 <expand macro="tests/intensity_image_diff" name="output" value="input2_gaussian.tiff" ftype="tiff">
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
194 <!-- See note for Gaussian filter above. -->
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
195 <has_image_mean_intensity mean_intensity="0.25" eps="0.01"/>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
196 </expand>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
197 </test>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
198 <test>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
199 <param name="input" value="input2_float.tiff"/>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
200 <conditional name="filter">
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
201 <param name="filter_type" value="uniform"/>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
202 <param name="size" value="4"/>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
203 </conditional>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
204 <expand macro="tests/intensity_image_diff" name="output" value="input2_uniform.tiff" ftype="tiff">
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
205 <!-- See note for Gaussian filter above. -->
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
206 <has_image_mean_intensity mean_intensity="0.25" eps="0.01"/>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
207 </expand>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
208 </test>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
209 <!-- Tests with multi-channel image (RGB) -->
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
210 <test>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
211 <param name="input" value="scikit-image/retina.png"/>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
212 <conditional name="filter">
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
213 <param name="filter_type" value="gaussian"/>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
214 <param name="sigma" value="5"/>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
215 <conditional name="derivative">
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
216 <param name="order" value="0"/>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
217 </conditional>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
218 </conditional>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
219 <expand macro="tests/intensity_image_diff" name="output" value="retina_gaussian_order0.tiff" ftype="tiff"/>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
220 </test>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
221 <test>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
222 <param name="input" value="scikit-image/retina.png"/>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
223 <conditional name="filter">
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
224 <param name="filter_type" value="gaussian"/>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
225 <param name="sigma" value="3"/>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
226 <conditional name="derivative">
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
227 <param name="order" value="2"/>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
228 <param name="axis" value="0"/>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
229 </conditional>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
230 </conditional>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
231 <expand macro="tests/intensity_image_diff" name="output" value="retina_gaussian_order2_axis0.tiff" ftype="tiff"/>
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
232 </test>
0
96fe54355774 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/2d_simple_filter/ commit c3f4b766f03770f094fda6bda0a5882c0ebd4581
imgteam
parents:
diff changeset
233 </tests>
96fe54355774 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/2d_simple_filter/ commit c3f4b766f03770f094fda6bda0a5882c0ebd4581
imgteam
parents:
diff changeset
234 <help>
2
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
235
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
236 **Applies a standard, general-purpose 2-D filter to an image.**
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
237
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
238 Support for different image types:
0
96fe54355774 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/2d_simple_filter/ commit c3f4b766f03770f094fda6bda0a5882c0ebd4581
imgteam
parents:
diff changeset
239
2
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
240 - For 3-D images, the filter is applied to all z-slices of the image.
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
241 - For multi-channel images, the filter is applied to all channels of the image.
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
242 - For time-series images, the filter is also applied for all time steps.
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
243
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
244 Mean filters like the Gaussian filter, the box filter, or the median filter preserve both the brightness of the image, and
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
245 the range of values. This does not hold for the derivative variants of the Gaussian filter, which may produce negative values.
b2d9c92bc431 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_simple_filter/ commit a6fd77be465068f709a71d377900da99becf94d8
imgteam
parents: 1
diff changeset
246
0
96fe54355774 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/2d_simple_filter/ commit c3f4b766f03770f094fda6bda0a5882c0ebd4581
imgteam
parents:
diff changeset
247 </help>
96fe54355774 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/2d_simple_filter/ commit c3f4b766f03770f094fda6bda0a5882c0ebd4581
imgteam
parents:
diff changeset
248 <citations>
96fe54355774 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/2d_simple_filter/ commit c3f4b766f03770f094fda6bda0a5882c0ebd4581
imgteam
parents:
diff changeset
249 <citation type="doi">10.1016/j.jbiotec.2017.07.019</citation>
96fe54355774 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/2d_simple_filter/ commit c3f4b766f03770f094fda6bda0a5882c0ebd4581
imgteam
parents:
diff changeset
250 </citations>
96fe54355774 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/2d_simple_filter/ commit c3f4b766f03770f094fda6bda0a5882c0ebd4581
imgteam
parents:
diff changeset
251 </tool>