Mercurial > repos > imgteam > 2d_local_threshold
comparison auto_local_threshold.xml @ 0:a20c14eb5f98 draft
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/2d_auto_local_threshold/ commit f3903c908786b9b0ea5a46e9cc35ee025770ecda
author | imgteam |
---|---|
date | Thu, 18 Jul 2019 09:22:07 -0400 |
parents | |
children | c90b91f4a07b |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:a20c14eb5f98 |
---|---|
1 <tool id="ip_localthreshold" name="Local Threshold" version="0.0.1"> | |
2 <description>applies a local threshold algorithm to an image</description> | |
3 <requirements> | |
4 <requirement type="package" version="0.14.2">scikit-image</requirement> | |
5 <requirement type="package" version="1.15.4">numpy</requirement> | |
6 <requirement type="package" version="5.3.0">pillow</requirement> | |
7 <requirement type="package" version="0.15.1">tifffile</requirement> | |
8 </requirements> | |
9 <command detect_errors="aggressive"> | |
10 <![CDATA[ | |
11 python '$__tool_directory__/auto_local_threshold.py' '$input' '$output' $block_size $thresh_type $dark_background | |
12 ]]> | |
13 </command> | |
14 <inputs> | |
15 <param name="input" type="data" format="tiff" label="Source file" /> | |
16 <param name="thresh_type" type="select" label="Threshold Algorithm"> | |
17 <option value="gaussian" selected="True">Gaussian</option> | |
18 <option value="median">Median</option> | |
19 <option value="mean">Mean</option> | |
20 </param> | |
21 <param name="block_size" type="integer" value="5" label="Odd size of pixel neighborhood which is used to calculate the threshold value" /> | |
22 <param name="dark_background" type="boolean" checked="true" truevalue="True" falsevalue="False" label="Dark Background" /> | |
23 </inputs> | |
24 <outputs> | |
25 <data format="tiff" name="output" /> | |
26 </outputs> | |
27 <tests> | |
28 <test> | |
29 <param name="input" value="sample.tif"/> | |
30 <output name="output" value="out.tif" ftype="tiff" compare="sim_size"/> | |
31 <param name="thresh_type" value="gaussian"/> | |
32 <param name="block_size" value="429"/> | |
33 <param name="dark_backgroud" value="True"/> | |
34 </test> | |
35 </tests> | |
36 <help> | |
37 Applies a local threshold algorithm to an image. | |
38 </help> | |
39 <citations> | |
40 <citation type="doi">10.1016/j.jbiotec.2017.07.019</citation> | |
41 </citations> | |
42 </tool> |