annotate auto_threshold.xml @ 5:1ae14e703e5b draft default tip

planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
author imgteam
date Sat, 03 Jan 2026 14:42:51 +0000
parents 7d80eb2411fb
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
1 <tool id="ip_threshold" name="Threshold image" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="20.05">
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
2 <description>with scikit-image</description>
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
3 <macros>
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
4 <import>creators.xml</import>
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
5 <import>tests.xml</import>
5
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
6 <token name="@TOOL_VERSION@">0.25.2</token>
4
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
7 <token name="@VERSION_SUFFIX@">0</token>
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
8 <xml name="inputs/offset">
5
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
9 <param name="offset" type="float" value="0" label="Offset"
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
10 help="Offset to be added to the automatically determined threshold value. Positive values will increase the threshold (and thus reduce the amount of values above the threshold)."/>
4
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
11 </xml>
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
12 </macros>
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
13 <creator>
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
14 <expand macro="creators/bmcv"/>
5
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
15 <expand macro="creators/kostrykin"/>
4
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
16 </creator>
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
17 <edam_operations>
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
18 <edam_operation>operation_3443</edam_operation>
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
19 </edam_operations>
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
20 <xrefs>
5
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
21 <xref type="bio.tools">galaxy_image_analysis</xref>
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
22 <xref type="bio.tools">giatools</xref>
4
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
23 <xref type="bio.tools">scikit-image</xref>
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
24 <xref type="biii">scikit-image</xref>
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
25 </xrefs>
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
26 <requirements>
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
27 <requirement type="package" version="@TOOL_VERSION@">scikit-image</requirement>
5
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
28 <requirement type="package" version="0.7.3">giatools</requirement>
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
29 <requirement type="package" version="0.12.2">ome-zarr</requirement>
4
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
30 </requirements>
5
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
31 <required_files>
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
32 <include type="literal" path="auto_threshold.py"/>
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
33 </required_files>
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
34 <command detect_errors="aggressive"><![CDATA[
4
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
35
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
36 python '$__tool_directory__/auto_threshold.py'
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
37
5
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
38 #if $input.extension == "zarr"
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
39 --input '$input.extra_files_path/$input.metadata.store_root'
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
40 #else
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
41 --input '$input'
4
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
42 #end if
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
43
5
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
44 --output ./out.tiff
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
45 --params '$params'
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
46 --verbose
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
47
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
48 ]]></command>
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
49 <configfiles>
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
50 <configfile name="params"><![CDATA[
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
51 {
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
52
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
53 #if str($th_method.method_id).startswith('loc_')
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
54 "block_size": $th_method.block_size,
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
55 #end if
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
56
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
57 #if $th_method.method_id != "manual"
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
58 "offset": $th_method.offset,
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
59
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
60 #else
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
61 "threshold1": $th_method.threshold1,
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
62 #if str($th_method.threshold2) != ""
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
63 "threshold2": $th_method.threshold2,
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
64 #else
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
65 "threshold2": null,
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
66 #end if
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
67
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
68 #end if
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
69
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
70 "method": "$th_method.method_id",
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
71 "invert": $invert_output
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
72
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
73 }
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
74 ]]></configfile>
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
75 </configfiles>
4
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
76 <inputs>
5
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
77 <param name="input" type="data" format="tiff,zarr,png,jpg" label="Input image"/>
4
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
78 <conditional name="th_method">
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
79 <param name="method_id" type="select" label="Thresholding method">
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
80 <option value="manual">Manual</option>
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
81 <option value="otsu" selected="True">Globally adaptive / Otsu</option>
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
82 <option value="li">Globally adaptive / Li's Minimum Cross Entropy</option>
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
83 <option value="isodata">Globally adaptive / Isodata</option>
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
84 <option value="yen">Globally adaptive / Yen</option>
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
85 <option value="loc_gaussian">Locally adaptive / Gaussian</option>
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
86 <option value="loc_median">Locally adaptive / Median</option>
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
87 <option value="loc_mean">Locally adaptive / Mean</option>
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
88 </param>
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
89 <when value="manual">
5
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
90 <param name="threshold1" type="float" value="0" label="Threshold value"/>
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
91 <param name="threshold2" type="float" value="" optional="true" label="Second threshold value for hysteresis thresholding"/>
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
92 <param name="offset" type="hidden" value="0"/>
4
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
93 </when>
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
94 <when value="otsu">
5
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
95 <expand macro="inputs/offset"/>
4
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
96 </when>
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
97 <when value="li">
5
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
98 <expand macro="inputs/offset"/>
4
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
99 </when>
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
100 <when value="isodata">
5
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
101 <expand macro="inputs/offset"/>
4
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
102 </when>
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
103 <when value="yen">
5
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
104 <expand macro="inputs/offset"/>
4
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
105 </when>
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
106 <when value="loc_gaussian">
5
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
107 <param name="block_size" type="integer" value="5" label="Odd size of pixel neighborhood for determining the threshold"/>
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
108 <expand macro="inputs/offset"/>
4
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
109 </when>
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
110 <when value="loc_median">
5
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
111 <param name="block_size" type="integer" value="5" label="Odd size of pixel neighborhood for determining the threshold"/>
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
112 <expand macro="inputs/offset"/>
4
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
113 </when>
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
114 <when value="loc_mean">
5
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
115 <param name="block_size" type="integer" value="5" label="Odd size of pixel neighborhood for determining the threshold"/>
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
116 <expand macro="inputs/offset"/>
4
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
117 </when>
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
118 </conditional>
5
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
119 <param name="invert_output" type="boolean" checked="false" label="Invert output labels"
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
120 help="Pixels are usually assigned the label 0 if the pixel value is below (or equal to) the threshold, and 255 if it is above the threshold. If this option is activated, pixels are assigned the label 255 if the pixel value is below (or equal to) the threshold, and 0 if it is above the threshold."/>
0
6fc65082d1e6 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/2d_auto_threshold/ commit bd6ef77515c4c15901b67f73738afbdd5faadae5
imgteam
parents:
diff changeset
121 </inputs>
6fc65082d1e6 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/2d_auto_threshold/ commit bd6ef77515c4c15901b67f73738afbdd5faadae5
imgteam
parents:
diff changeset
122 <outputs>
4
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
123 <data format="tiff" name="output" from_work_dir="out.tiff" />
0
6fc65082d1e6 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/2d_auto_threshold/ commit bd6ef77515c4c15901b67f73738afbdd5faadae5
imgteam
parents:
diff changeset
124 </outputs>
6fc65082d1e6 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/2d_auto_threshold/ commit bd6ef77515c4c15901b67f73738afbdd5faadae5
imgteam
parents:
diff changeset
125 <tests>
4
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
126 <!-- Tests for single-channel images (TIFF) -->
0
6fc65082d1e6 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/2d_auto_threshold/ commit bd6ef77515c4c15901b67f73738afbdd5faadae5
imgteam
parents:
diff changeset
127 <test>
5
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
128 <param name="input" value="input/sample.tiff"/>
4
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
129 <conditional name="th_method">
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
130 <param name="method_id" value="loc_gaussian"/>
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
131 <param name="block_size" value="51"/>
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
132 </conditional>
5
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
133 <expand macro="tests/binary_image_diff" name="output" value="output/out1.tiff" ftype="tiff"/>
4
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
134 </test>
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
135 <test>
5
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
136 <param name="input" value="input/sample.tiff"/>
4
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
137 <conditional name="th_method">
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
138 <param name="method_id" value="loc_gaussian"/>
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
139 <param name="block_size" value="51"/>
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
140 <param name="offset" value="1"/>
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
141 </conditional>
5
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
142 <expand macro="tests/binary_image_diff" name="output" value="output/out2.tiff" ftype="tiff"/>
4
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
143 </test>
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
144 <test>
5
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
145 <param name="input" value="input/sample.tiff"/>
4
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
146 <conditional name="th_method">
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
147 <param name="method_id" value="otsu"/>
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
148 </conditional>
5
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
149 <expand macro="tests/binary_image_diff" name="output" value="output/out3.tiff" ftype="tiff"/>
0
6fc65082d1e6 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/2d_auto_threshold/ commit bd6ef77515c4c15901b67f73738afbdd5faadae5
imgteam
parents:
diff changeset
150 </test>
6fc65082d1e6 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/2d_auto_threshold/ commit bd6ef77515c4c15901b67f73738afbdd5faadae5
imgteam
parents:
diff changeset
151 <test>
5
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
152 <param name="input" value="input/sample.tiff"/>
4
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
153 <param name="invert_output" value="True"/>
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
154 <conditional name="th_method">
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
155 <param name="method_id" value="manual"/>
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
156 <param name="threshold1" value="64"/>
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
157 </conditional>
5
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
158 <expand macro="tests/binary_image_diff" name="output" value="output/out4.tiff" ftype="tiff"/>
4
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
159 </test>
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
160 <test>
5
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
161 <param name="input" value="input/sample.tiff"/>
4
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
162 <conditional name="th_method">
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
163 <param name="method_id" value="manual"/>
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
164 <param name="threshold1" value="180"/>
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
165 <param name="threshold2" value="240"/>
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
166 </conditional>
5
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
167 <expand macro="tests/binary_image_diff" name="output" value="output/sample_manual_180_240.tiff" ftype="tiff"/>
4
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
168 </test>
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
169 <!-- Tests for multi-channel images (PNG) -->
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
170 <test>
5
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
171 <param name="input" value="input/rgb.png"/>
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
172 <conditional name="th_method">
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
173 <param name="method_id" value="otsu"/>
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
174 </conditional>
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
175 <expand macro="tests/binary_image_diff" name="output" value="output/rgb_otsu.tiff" ftype="tiff"/>
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
176 </test>
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
177 <!-- Tests for irregular files (TODO: clear up what this means) -->
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
178 <test>
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
179 <param name="input" value="input/sample2.tiff"/>
4
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
180 <conditional name="th_method">
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
181 <param name="method_id" value="otsu"/>
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
182 </conditional>
5
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
183 <expand macro="tests/binary_image_diff" name="output" value="output/out5.tiff" ftype="tiff"/>
4
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
184 </test>
5
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
185 <!-- Tests for exotic files -->
4
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
186 <test>
5
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
187 <param name="input" value="input/input5.jpg"/>
4
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
188 <conditional name="th_method">
5
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
189 <param name="method_id" value="li"/>
4
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
190 </conditional>
5
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
191 <expand macro="tests/binary_image_diff" name="output" value="output/input5_li.tiff" ftype="tiff"/>
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
192 </test>
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
193 <test>
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
194 <param name="input" value="input/input8_zyx.zarr"/>
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
195 <conditional name="th_method">
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
196 <param name="method_id" value="yen"/>
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
197 </conditional>
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
198 <expand macro="tests/binary_image_diff" name="output" value="output/input8_yen.tiff" ftype="tiff"/>
0
6fc65082d1e6 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/2d_auto_threshold/ commit bd6ef77515c4c15901b67f73738afbdd5faadae5
imgteam
parents:
diff changeset
199 </test>
6fc65082d1e6 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/2d_auto_threshold/ commit bd6ef77515c4c15901b67f73738afbdd5faadae5
imgteam
parents:
diff changeset
200 </tests>
6fc65082d1e6 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/2d_auto_threshold/ commit bd6ef77515c4c15901b67f73738afbdd5faadae5
imgteam
parents:
diff changeset
201 <help>
4
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
202
5
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
203 **Applies a standard thresholding algorithm to an image. Yields a binary image.**
4
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
204
5
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
205 The thresholding algorithm automatically determines a threshold value (unless manual thresholding is used). The input image is
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
206 then thresholded, by assigning white (pixel value 255) to image regions above the determined threshold, and black (pixel value 0)
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
207 to image regions below or equal to the determined threshold. For multi-channel images, each channel is processed separately,
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
208 which, for example, may also yield colors beyond black and white in case of RGB images.
4
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
209
5
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
210 The assignment of the pixel values 0 and 255 (i.e. black and white) to image regions below and above the threshold is inverted,
1ae14e703e5b planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 71f7ecabba78de48147d4a5e6ea380b6b70b16e8
imgteam
parents: 4
diff changeset
211 if the corresponding option is set.
4
7d80eb2411fb planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 01343602708de3cc7fa4986af9000adc36dd0651
imgteam
parents: 3
diff changeset
212
0
6fc65082d1e6 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/2d_auto_threshold/ commit bd6ef77515c4c15901b67f73738afbdd5faadae5
imgteam
parents:
diff changeset
213 </help>
6fc65082d1e6 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/2d_auto_threshold/ commit bd6ef77515c4c15901b67f73738afbdd5faadae5
imgteam
parents:
diff changeset
214 <citations>
6fc65082d1e6 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/2d_auto_threshold/ commit bd6ef77515c4c15901b67f73738afbdd5faadae5
imgteam
parents:
diff changeset
215 <citation type="doi">10.1016/j.jbiotec.2017.07.019</citation>
6fc65082d1e6 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/2d_auto_threshold/ commit bd6ef77515c4c15901b67f73738afbdd5faadae5
imgteam
parents:
diff changeset
216 </citations>
6fc65082d1e6 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/2d_auto_threshold/ commit bd6ef77515c4c15901b67f73738afbdd5faadae5
imgteam
parents:
diff changeset
217 </tool>