comparison background_removal.xml @ 0:e2c6bedc6b73 draft

planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/background_removal commit 004112ac8c2ebcdb9763096df440227fda174ae3
author imgteam
date Mon, 15 Jul 2024 20:55:08 +0000
parents
children 6e9e98a7be4e
comparison
equal deleted inserted replaced
-1:000000000000 0:e2c6bedc6b73
1 <tool id="background_removal" name="Remove image background" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="20.05">
2 <description>with scikit-image</description>
3 <macros>
4 <import>creators.xml</import>
5 <import>tests.xml</import>
6 <token name="@TOOL_VERSION@">0.24.0</token>
7 <token name="@VERSION_SUFFIX@">0</token>
8 </macros>
9 <creator>
10 <expand macro="creators/rmassei"/>
11 </creator>
12 <requirements>
13 <requirement type="package" version="0.24.0">scikit-image</requirement>
14 </requirements>
15 <command detect_errors="aggressive">
16 <![CDATA[
17 python "$__tool_directory__/background_removal.py" $input_image $filter $radius $output
18 ]]>
19 </command>
20 <inputs>
21 <param name="input_image" type="data" format="tiff, jpg, jpeg, png, tif" label="Input Image"/>
22 <param name="filter" type="select" label="Select Filter">
23 <option value="rolling_ball">Rolling-ball algorithm</option>
24 <option value="dog">Difference of Gaussians</option>
25 <option value="top_hat">Top-hat filter</option>
26 </param>
27 <param name="radius" type="float" label="Radius" value="20"/>
28 </inputs>
29 <outputs>
30 <data name="output" format="tiff" label="Background substraction output"/>
31 </outputs>
32 <tests>
33 <!-- uint8 tests -->
34 <test>
35 <param name="input_image" value="input1_uint8.tif"/>
36 <param name="filter" value="dog"/>
37 <param name="radius" value="20"/>
38 <expand macro="tests/intensity_image_diff" name="output" value="input1_output_dog.tif" ftype="tiff"/>
39 </test>
40 <test>
41 <param name="input_image" value="input3_uint8.tif"/>
42 <param name="filter" value="top_hat"/>
43 <param name="radius" value="15"/>
44 <expand macro="tests/intensity_image_diff" name="output" value="input3_output_tophat.tif" ftype="tiff"/>
45 </test>
46 <!-- uint16 tests -->
47 <test>
48 <param name="input_image" value="input2_uint16.tif"/>
49 <param name="filter" value="rolling_ball"/>
50 <param name="radius" value="20"/>
51 <expand macro="tests/intensity_image_diff" name="output" value="input2_output_rb.tif" ftype="tiff"/>
52 </test>
53 <test>
54 <param name="input_image" value="input2_uint16.tif"/>
55 <param name="filter" value="dog"/>
56 <param name="radius" value="20"/>
57 <expand macro="tests/intensity_image_diff" name="output" value="input2_output_dog.tif" ftype="tiff"/>
58 </test>
59 </tests>
60 <help>
61 This tool applies different background removal algorithms to an image:
62
63 - Rolling-ball algorithm
64
65 - Difference of Gaussians
66
67 - Top-hat filter
68 </help>
69 <citations>
70 <citation type="doi">10.1109/MC.1983.1654163</citation>
71 </citations>
72 </tool>