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