annotate auto_threshold.xml @ 8:699a5e9146b3 draft default tip

planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit c86a1b93cb7732f7331a981d13465653cc1a2790
author imgteam
date Wed, 24 Apr 2024 08:11:33 +0000
parents e5c8e7e72373
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
1 <tool id="ip_threshold" name="Threshold image" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="20.05">
4
3df9f0a4bf34 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 6b687746bdb3d5d1fb11ecffd6dd1bf42dc2c38d
imgteam
parents: 3
diff changeset
2 <description>with scikit-image</description>
5
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
3 <macros>
7
e5c8e7e72373 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit c045f067a57e8308308cf6329060c7ccd3fc372f
imgteam
parents: 6
diff changeset
4 <import>creators.xml</import>
e5c8e7e72373 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit c045f067a57e8308308cf6329060c7ccd3fc372f
imgteam
parents: 6
diff changeset
5 <import>tests.xml</import>
5
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
6 <token name="@TOOL_VERSION@">0.18.1</token>
8
699a5e9146b3 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit c86a1b93cb7732f7331a981d13465653cc1a2790
imgteam
parents: 7
diff changeset
7 <token name="@VERSION_SUFFIX@">3</token>
7
e5c8e7e72373 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit c045f067a57e8308308cf6329060c7ccd3fc372f
imgteam
parents: 6
diff changeset
8 <xml name="inputs/offset">
e5c8e7e72373 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit c045f067a57e8308308cf6329060c7ccd3fc372f
imgteam
parents: 6
diff changeset
9 <param name="offset" type="float" value="0" label="Offset" 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)." />
e5c8e7e72373 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit c045f067a57e8308308cf6329060c7ccd3fc372f
imgteam
parents: 6
diff changeset
10 </xml>
5
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
11 </macros>
7
e5c8e7e72373 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit c045f067a57e8308308cf6329060c7ccd3fc372f
imgteam
parents: 6
diff changeset
12 <creator>
e5c8e7e72373 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit c045f067a57e8308308cf6329060c7ccd3fc372f
imgteam
parents: 6
diff changeset
13 <expand macro="creators/bmcv"/>
e5c8e7e72373 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit c045f067a57e8308308cf6329060c7ccd3fc372f
imgteam
parents: 6
diff changeset
14 </creator>
4
3df9f0a4bf34 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 6b687746bdb3d5d1fb11ecffd6dd1bf42dc2c38d
imgteam
parents: 3
diff changeset
15 <edam_operations>
3df9f0a4bf34 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 6b687746bdb3d5d1fb11ecffd6dd1bf42dc2c38d
imgteam
parents: 3
diff changeset
16 <edam_operation>operation_3443</edam_operation>
3df9f0a4bf34 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 6b687746bdb3d5d1fb11ecffd6dd1bf42dc2c38d
imgteam
parents: 3
diff changeset
17 </edam_operations>
3df9f0a4bf34 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 6b687746bdb3d5d1fb11ecffd6dd1bf42dc2c38d
imgteam
parents: 3
diff changeset
18 <xrefs>
3df9f0a4bf34 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 6b687746bdb3d5d1fb11ecffd6dd1bf42dc2c38d
imgteam
parents: 3
diff changeset
19 <xref type="bio.tools">scikit-image</xref>
3df9f0a4bf34 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 6b687746bdb3d5d1fb11ecffd6dd1bf42dc2c38d
imgteam
parents: 3
diff changeset
20 <xref type="biii">scikit-image</xref>
3df9f0a4bf34 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 6b687746bdb3d5d1fb11ecffd6dd1bf42dc2c38d
imgteam
parents: 3
diff changeset
21 </xrefs>
3df9f0a4bf34 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 6b687746bdb3d5d1fb11ecffd6dd1bf42dc2c38d
imgteam
parents: 3
diff changeset
22 <requirements>
7
e5c8e7e72373 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit c045f067a57e8308308cf6329060c7ccd3fc372f
imgteam
parents: 6
diff changeset
23 <requirement type="package" version="@TOOL_VERSION@">scikit-image</requirement>
3
0c777d708acc "planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/2d_auto_threshold/ commit b1b3c63ab021aa77875c3b04127f6836024812f9"
imgteam
parents: 1
diff changeset
24 <requirement type="package" version="2020.10.1">tifffile</requirement>
8
699a5e9146b3 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit c86a1b93cb7732f7331a981d13465653cc1a2790
imgteam
parents: 7
diff changeset
25 <requirement type="package" version="0.1">giatools</requirement>
4
3df9f0a4bf34 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 6b687746bdb3d5d1fb11ecffd6dd1bf42dc2c38d
imgteam
parents: 3
diff changeset
26 </requirements>
3df9f0a4bf34 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 6b687746bdb3d5d1fb11ecffd6dd1bf42dc2c38d
imgteam
parents: 3
diff changeset
27 <command detect_errors="aggressive">
3df9f0a4bf34 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 6b687746bdb3d5d1fb11ecffd6dd1bf42dc2c38d
imgteam
parents: 3
diff changeset
28 <![CDATA[
3df9f0a4bf34 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 6b687746bdb3d5d1fb11ecffd6dd1bf42dc2c38d
imgteam
parents: 3
diff changeset
29 python '$__tool_directory__/auto_threshold.py'
3df9f0a4bf34 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 6b687746bdb3d5d1fb11ecffd6dd1bf42dc2c38d
imgteam
parents: 3
diff changeset
30 '$input'
3df9f0a4bf34 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 6b687746bdb3d5d1fb11ecffd6dd1bf42dc2c38d
imgteam
parents: 3
diff changeset
31 ./out.tif
5
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
32 '$th_method.method_id'
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
33 '$th_method.block_size'
7
e5c8e7e72373 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit c045f067a57e8308308cf6329060c7ccd3fc372f
imgteam
parents: 6
diff changeset
34 '$th_method.offset'
5
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
35 '$th_method.threshold'
6
8bccb36e055a planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit cb3d628f4c91e996e10dcb35b1168332e692293a
imgteam
parents: 5
diff changeset
36 $invert_output
4
3df9f0a4bf34 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 6b687746bdb3d5d1fb11ecffd6dd1bf42dc2c38d
imgteam
parents: 3
diff changeset
37 ]]>
3df9f0a4bf34 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 6b687746bdb3d5d1fb11ecffd6dd1bf42dc2c38d
imgteam
parents: 3
diff changeset
38 </command>
3df9f0a4bf34 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 6b687746bdb3d5d1fb11ecffd6dd1bf42dc2c38d
imgteam
parents: 3
diff changeset
39 <inputs>
3
0c777d708acc "planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/2d_auto_threshold/ commit b1b3c63ab021aa77875c3b04127f6836024812f9"
imgteam
parents: 1
diff changeset
40 <param name="input" type="data" format="tiff,png" label="Input image" />
5
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
41 <conditional name="th_method">
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
42 <param name="method_id" type="select" label="Thresholding method">
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
43 <option value="manual">Manual</option>
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
44 <option value="otsu" selected="True">Globally adaptive / Otsu</option>
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
45 <option value="li">Globally adaptive / Li's Minimum Cross Entropy</option>
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
46 <option value="isodata">Globally adaptive / Isodata</option>
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
47 <option value="yen">Globally adaptive / Yen</option>
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
48 <option value="loc_gaussian">Locally adaptive / Gaussian</option>
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
49 <option value="loc_median">Locally adaptive / Median</option>
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
50 <option value="loc_mean">Locally adaptive / Mean</option>
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
51 </param>
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
52 <when value="manual">
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
53 <param name="threshold" type="float" value="0" label="Threshold value" />
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
54 <param name="block_size" type="hidden" value="0" />
7
e5c8e7e72373 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit c045f067a57e8308308cf6329060c7ccd3fc372f
imgteam
parents: 6
diff changeset
55 <param name="offset" type="hidden" value="0" />
5
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
56 </when>
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
57 <when value="otsu">
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
58 <param name="threshold" type="hidden" value="0" />
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
59 <param name="block_size" type="hidden" value="0" />
7
e5c8e7e72373 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit c045f067a57e8308308cf6329060c7ccd3fc372f
imgteam
parents: 6
diff changeset
60 <expand macro="inputs/offset" />
5
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
61 </when>
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
62 <when value="li">
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
63 <param name="threshold" type="hidden" value="0" />
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
64 <param name="block_size" type="hidden" value="0" />
7
e5c8e7e72373 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit c045f067a57e8308308cf6329060c7ccd3fc372f
imgteam
parents: 6
diff changeset
65 <expand macro="inputs/offset" />
5
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
66 </when>
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
67 <when value="isodata">
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
68 <param name="threshold" type="hidden" value="0" />
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
69 <param name="block_size" type="hidden" value="0" />
7
e5c8e7e72373 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit c045f067a57e8308308cf6329060c7ccd3fc372f
imgteam
parents: 6
diff changeset
70 <expand macro="inputs/offset" />
5
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
71 </when>
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
72 <when value="yen">
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
73 <param name="threshold" type="hidden" value="0" />
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
74 <param name="block_size" type="hidden" value="0" />
7
e5c8e7e72373 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit c045f067a57e8308308cf6329060c7ccd3fc372f
imgteam
parents: 6
diff changeset
75 <expand macro="inputs/offset" />
5
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
76 </when>
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
77 <when value="loc_gaussian">
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
78 <param name="threshold" type="hidden" value="0" />
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
79 <param name="block_size" type="integer" value="5" label="Odd size of pixel neighborhood for determining the threshold" />
7
e5c8e7e72373 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit c045f067a57e8308308cf6329060c7ccd3fc372f
imgteam
parents: 6
diff changeset
80 <expand macro="inputs/offset" />
5
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
81 </when>
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
82 <when value="loc_median">
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
83 <param name="threshold" type="hidden" value="0" />
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
84 <param name="block_size" type="integer" value="5" label="Odd size of pixel neighborhood for determining the threshold" />
7
e5c8e7e72373 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit c045f067a57e8308308cf6329060c7ccd3fc372f
imgteam
parents: 6
diff changeset
85 <expand macro="inputs/offset" />
5
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
86 </when>
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
87 <when value="loc_mean">
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
88 <param name="threshold" type="hidden" value="0" />
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
89 <param name="block_size" type="integer" value="5" label="Odd size of pixel neighborhood for determining the threshold" />
7
e5c8e7e72373 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit c045f067a57e8308308cf6329060c7ccd3fc372f
imgteam
parents: 6
diff changeset
90 <expand macro="inputs/offset" />
5
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
91 </when>
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
92 </conditional>
6
8bccb36e055a planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit cb3d628f4c91e996e10dcb35b1168332e692293a
imgteam
parents: 5
diff changeset
93 <param name="invert_output" type="boolean" checked="false" truevalue="--invert_output" falsevalue="" label="Invert output labels" 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
d4da97f51700 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/2d_auto_threshold/ commit c3f4b766f03770f094fda6bda0a5882c0ebd4581
imgteam
parents:
diff changeset
94 </inputs>
d4da97f51700 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/2d_auto_threshold/ commit c3f4b766f03770f094fda6bda0a5882c0ebd4581
imgteam
parents:
diff changeset
95 <outputs>
3
0c777d708acc "planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/2d_auto_threshold/ commit b1b3c63ab021aa77875c3b04127f6836024812f9"
imgteam
parents: 1
diff changeset
96 <data format="tiff" name="output" from_work_dir="out.tif" />
0
d4da97f51700 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/2d_auto_threshold/ commit c3f4b766f03770f094fda6bda0a5882c0ebd4581
imgteam
parents:
diff changeset
97 </outputs>
d4da97f51700 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/2d_auto_threshold/ commit c3f4b766f03770f094fda6bda0a5882c0ebd4581
imgteam
parents:
diff changeset
98 <tests>
7
e5c8e7e72373 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit c045f067a57e8308308cf6329060c7ccd3fc372f
imgteam
parents: 6
diff changeset
99 <!-- Tests for single-channel images -->
0
d4da97f51700 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/2d_auto_threshold/ commit c3f4b766f03770f094fda6bda0a5882c0ebd4581
imgteam
parents:
diff changeset
100 <test>
d4da97f51700 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/2d_auto_threshold/ commit c3f4b766f03770f094fda6bda0a5882c0ebd4581
imgteam
parents:
diff changeset
101 <param name="input" value="sample.tif"/>
5
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
102 <param name="method_id" value="loc_gaussian"/>
7
e5c8e7e72373 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit c045f067a57e8308308cf6329060c7ccd3fc372f
imgteam
parents: 6
diff changeset
103 <param name="block_size" value="51"/>
5
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
104 <param name="invert_output" value="False"/>
7
e5c8e7e72373 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit c045f067a57e8308308cf6329060c7ccd3fc372f
imgteam
parents: 6
diff changeset
105 <expand macro="tests/binary_image_diff" name="output" value="out1.tif" ftype="tiff"/>
e5c8e7e72373 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit c045f067a57e8308308cf6329060c7ccd3fc372f
imgteam
parents: 6
diff changeset
106 </test>
e5c8e7e72373 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit c045f067a57e8308308cf6329060c7ccd3fc372f
imgteam
parents: 6
diff changeset
107 <test>
e5c8e7e72373 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit c045f067a57e8308308cf6329060c7ccd3fc372f
imgteam
parents: 6
diff changeset
108 <param name="input" value="sample.tif"/>
e5c8e7e72373 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit c045f067a57e8308308cf6329060c7ccd3fc372f
imgteam
parents: 6
diff changeset
109 <param name="method_id" value="loc_gaussian"/>
e5c8e7e72373 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit c045f067a57e8308308cf6329060c7ccd3fc372f
imgteam
parents: 6
diff changeset
110 <param name="block_size" value="51"/>
e5c8e7e72373 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit c045f067a57e8308308cf6329060c7ccd3fc372f
imgteam
parents: 6
diff changeset
111 <param name="offset" value="1"/>
e5c8e7e72373 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit c045f067a57e8308308cf6329060c7ccd3fc372f
imgteam
parents: 6
diff changeset
112 <param name="invert_output" value="False"/>
e5c8e7e72373 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit c045f067a57e8308308cf6329060c7ccd3fc372f
imgteam
parents: 6
diff changeset
113 <expand macro="tests/binary_image_diff" name="output" value="out2.tif" ftype="tiff"/>
0
d4da97f51700 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/2d_auto_threshold/ commit c3f4b766f03770f094fda6bda0a5882c0ebd4581
imgteam
parents:
diff changeset
114 </test>
d4da97f51700 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/2d_auto_threshold/ commit c3f4b766f03770f094fda6bda0a5882c0ebd4581
imgteam
parents:
diff changeset
115 <test>
d4da97f51700 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/2d_auto_threshold/ commit c3f4b766f03770f094fda6bda0a5882c0ebd4581
imgteam
parents:
diff changeset
116 <param name="input" value="sample.tif"/>
5
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
117 <param name="method_id" value="otsu"/>
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
118 <param name="invert_output" value="False"/>
7
e5c8e7e72373 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit c045f067a57e8308308cf6329060c7ccd3fc372f
imgteam
parents: 6
diff changeset
119 <expand macro="tests/binary_image_diff" name="output" value="out3.tif" ftype="tiff"/>
5
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
120 </test>
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
121 <test>
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
122 <param name="input" value="sample.tif"/>
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
123 <param name="method_id" value="manual"/>
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
124 <param name="threshold" value="64"/>
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
125 <param name="invert_output" value="True"/>
7
e5c8e7e72373 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit c045f067a57e8308308cf6329060c7ccd3fc372f
imgteam
parents: 6
diff changeset
126 <expand macro="tests/binary_image_diff" name="output" value="out4.tif" ftype="tiff"/>
e5c8e7e72373 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit c045f067a57e8308308cf6329060c7ccd3fc372f
imgteam
parents: 6
diff changeset
127 </test>
8
699a5e9146b3 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit c86a1b93cb7732f7331a981d13465653cc1a2790
imgteam
parents: 7
diff changeset
128 <!-- Tests for irregular files -->
699a5e9146b3 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit c86a1b93cb7732f7331a981d13465653cc1a2790
imgteam
parents: 7
diff changeset
129 <test>
699a5e9146b3 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit c86a1b93cb7732f7331a981d13465653cc1a2790
imgteam
parents: 7
diff changeset
130 <param name="input" value="sample2.tif"/>
699a5e9146b3 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit c86a1b93cb7732f7331a981d13465653cc1a2790
imgteam
parents: 7
diff changeset
131 <param name="method_id" value="otsu"/>
699a5e9146b3 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit c86a1b93cb7732f7331a981d13465653cc1a2790
imgteam
parents: 7
diff changeset
132 <param name="invert_output" value="False"/>
699a5e9146b3 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit c86a1b93cb7732f7331a981d13465653cc1a2790
imgteam
parents: 7
diff changeset
133 <expand macro="tests/binary_image_diff" name="output" value="out5.tif" ftype="tiff"/>
699a5e9146b3 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit c86a1b93cb7732f7331a981d13465653cc1a2790
imgteam
parents: 7
diff changeset
134 </test>
7
e5c8e7e72373 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit c045f067a57e8308308cf6329060c7ccd3fc372f
imgteam
parents: 6
diff changeset
135 <!-- Tests for multi-channel images -->
e5c8e7e72373 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit c045f067a57e8308308cf6329060c7ccd3fc372f
imgteam
parents: 6
diff changeset
136 <test expect_failure="true">
e5c8e7e72373 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit c045f067a57e8308308cf6329060c7ccd3fc372f
imgteam
parents: 6
diff changeset
137 <param name="input" value="rgb.png"/>
0
d4da97f51700 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/2d_auto_threshold/ commit c3f4b766f03770f094fda6bda0a5882c0ebd4581
imgteam
parents:
diff changeset
138 </test>
d4da97f51700 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/2d_auto_threshold/ commit c3f4b766f03770f094fda6bda0a5882c0ebd4581
imgteam
parents:
diff changeset
139 </tests>
d4da97f51700 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/2d_auto_threshold/ commit c3f4b766f03770f094fda6bda0a5882c0ebd4581
imgteam
parents:
diff changeset
140 <help>
7
e5c8e7e72373 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit c045f067a57e8308308cf6329060c7ccd3fc372f
imgteam
parents: 6
diff changeset
141
e5c8e7e72373 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit c045f067a57e8308308cf6329060c7ccd3fc372f
imgteam
parents: 6
diff changeset
142 **Applies a standard thresholding algorithm to a 2-D single-channel image. Yields a binary image.**
5
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
143
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
144 The thresholding algorithm automatically determines a threshold value (unless manual thresholding is used).
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
145 The input image is then thresholded, by assigning white (pixel value 255) to image regions above the determined threshold,
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
146 and black (pixel value 0) to image regions below or equal to the determined threshold.
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
147
7db4fc31dbee planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit 8b9f24cbfaf54f140705f0bf4b6732269bd401da
imgteam
parents: 4
diff changeset
148 The assignment of black and white to image regions below and above the threshold is inverted, if the corresponding option is set.
7
e5c8e7e72373 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_auto_threshold/ commit c045f067a57e8308308cf6329060c7ccd3fc372f
imgteam
parents: 6
diff changeset
149
0
d4da97f51700 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/2d_auto_threshold/ commit c3f4b766f03770f094fda6bda0a5882c0ebd4581
imgteam
parents:
diff changeset
150 </help>
d4da97f51700 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/2d_auto_threshold/ commit c3f4b766f03770f094fda6bda0a5882c0ebd4581
imgteam
parents:
diff changeset
151 <citations>
d4da97f51700 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/2d_auto_threshold/ commit c3f4b766f03770f094fda6bda0a5882c0ebd4581
imgteam
parents:
diff changeset
152 <citation type="doi">10.1016/j.jbiotec.2017.07.019</citation>
d4da97f51700 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/2d_auto_threshold/ commit c3f4b766f03770f094fda6bda0a5882c0ebd4581
imgteam
parents:
diff changeset
153 </citations>
d4da97f51700 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/2d_auto_threshold/ commit c3f4b766f03770f094fda6bda0a5882c0ebd4581
imgteam
parents:
diff changeset
154 </tool>