annotate morphological_operations.xml @ 2:4e25befab102 draft default tip

planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c86a1b93cb7732f7331a981d13465653cc1a2790
author imgteam
date Wed, 24 Apr 2024 08:12:39 +0000
parents ad795d260ba8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
1 <tool id="morphological_operations" name="Apply a morphological operation" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="23.0">
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
2 <description>with SciPy</description>
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
3 <macros>
1
ad795d260ba8 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c045f067a57e8308308cf6329060c7ccd3fc372f
imgteam
parents: 0
diff changeset
4 <import>creators.xml</import>
ad795d260ba8 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c045f067a57e8308308cf6329060c7ccd3fc372f
imgteam
parents: 0
diff changeset
5 <import>tests.xml</import>
0
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
6 <token name="@TOOL_VERSION@">1.12.0</token>
2
4e25befab102 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c86a1b93cb7732f7331a981d13465653cc1a2790
imgteam
parents: 1
diff changeset
7 <token name="@VERSION_SUFFIX@">1</token>
0
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
8 </macros>
1
ad795d260ba8 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c045f067a57e8308308cf6329060c7ccd3fc372f
imgteam
parents: 0
diff changeset
9 <creator>
ad795d260ba8 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c045f067a57e8308308cf6329060c7ccd3fc372f
imgteam
parents: 0
diff changeset
10 <expand macro="creators/bmcv"/>
ad795d260ba8 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c045f067a57e8308308cf6329060c7ccd3fc372f
imgteam
parents: 0
diff changeset
11 </creator>
0
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
12 <edam_operations>
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
13 <edam_operation>operation_3443</edam_operation>
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
14 </edam_operations>
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
15 <xrefs>
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
16 <xref type="biii">scipy</xref>
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
17 </xrefs>
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
18 <requirements>
1
ad795d260ba8 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c045f067a57e8308308cf6329060c7ccd3fc372f
imgteam
parents: 0
diff changeset
19 <requirement type="package" version="@TOOL_VERSION@">scipy</requirement>
0
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
20 <requirement type="package" version="0.22.0">scikit-image</requirement>
2
4e25befab102 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c86a1b93cb7732f7331a981d13465653cc1a2790
imgteam
parents: 1
diff changeset
21 <requirement type="package" version="0.1">giatools</requirement>
0
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
22 </requirements>
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
23 <command><![CDATA[
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
24
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
25 ## Inputs
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
26
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
27 python '$__tool_directory__/morphological_operations.py' '$image'
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
28 --operation $operation
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
29 --selem-shape $selem_shape
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
30 --selem-size $selem_size
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
31
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
32 ## Outputs
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
33
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
34 ./result.tiff
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
35
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
36 ]]>
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
37 </command>
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
38 <inputs>
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
39 <param name="image" type="data" format="png,tiff" label="Input image" />
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
40 <param label="Morphological operation" argument="--operation" type="select">
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
41 <option value="erosion" selected="True">Erosion</option>
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
42 <option value="dilation">Dilation</option>
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
43 <option value="opening">Opening</option>
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
44 <option value="closing">Closing</option>
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
45 <option value="fill_holes">Fill holes</option>
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
46 </param>
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
47 <param label="Structuring element" argument="--selem-shape" type="select">
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
48 <option value="disk" selected="True">Disk</option>
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
49 <option value="square">Square</option>
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
50 </param>
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
51 <param label="Structuring element size" argument="--selem-size" type="integer" min="1" max="256" value="1" help="The radius of the disk, or the width of the square, in pixels." />
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
52 </inputs>
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
53 <outputs>
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
54 <data format="tiff" name="result" from_work_dir="result.tiff" />
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
55 </outputs>
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
56 <tests>
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
57 <!-- Test binary operations (input images with two distinct values) -->
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
58 <test>
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
59 <param name="image" value="input1.tiff" />
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
60 <param name="operation" value="erosion" />
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
61 <param name="selem_shape" value="disk" />
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
62 <param name="selem_size" value="1" />
1
ad795d260ba8 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c045f067a57e8308308cf6329060c7ccd3fc372f
imgteam
parents: 0
diff changeset
63 <expand macro="tests/binary_image_diff" name="result" value="output1_erosion.tiff" ftype="tiff"/>
0
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
64 </test>
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
65 <test>
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
66 <param name="image" value="input1.tiff" />
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
67 <param name="operation" value="dilation" />
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
68 <param name="selem_shape" value="disk" />
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
69 <param name="selem_size" value="2" />
1
ad795d260ba8 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c045f067a57e8308308cf6329060c7ccd3fc372f
imgteam
parents: 0
diff changeset
70 <expand macro="tests/binary_image_diff" name="result" value="output1_dilation.tiff" ftype="tiff"/>
0
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
71 </test>
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
72 <test>
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
73 <param name="image" value="input1.tiff" />
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
74 <param name="operation" value="opening" />
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
75 <param name="selem_shape" value="square" />
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
76 <param name="selem_size" value="1" />
1
ad795d260ba8 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c045f067a57e8308308cf6329060c7ccd3fc372f
imgteam
parents: 0
diff changeset
77 <expand macro="tests/binary_image_diff" name="result" value="output1_opening.tiff" ftype="tiff"/>
0
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
78 </test>
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
79 <test>
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
80 <param name="image" value="input1.tiff" />
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
81 <param name="operation" value="closing" />
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
82 <param name="selem_shape" value="square" />
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
83 <param name="selem_size" value="2" />
1
ad795d260ba8 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c045f067a57e8308308cf6329060c7ccd3fc372f
imgteam
parents: 0
diff changeset
84 <expand macro="tests/binary_image_diff" name="result" value="output1_closing.tiff" ftype="tiff"/>
0
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
85 </test>
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
86 <!-- Test intensity-based operations (more than two distinct values) -->
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
87 <test>
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
88 <param name="image" value="input3.png" />
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
89 <param name="operation" value="erosion" />
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
90 <param name="selem_shape" value="disk" />
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
91 <param name="selem_size" value="1" />
1
ad795d260ba8 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c045f067a57e8308308cf6329060c7ccd3fc372f
imgteam
parents: 0
diff changeset
92 <expand macro="tests/intensity_image_diff" name="result" value="output3_erosion.tiff" ftype="tiff"/>
0
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
93 </test>
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
94 <test>
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
95 <param name="image" value="input3.png" />
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
96 <param name="operation" value="dilation" />
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
97 <param name="selem_shape" value="disk" />
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
98 <param name="selem_size" value="2" />
1
ad795d260ba8 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c045f067a57e8308308cf6329060c7ccd3fc372f
imgteam
parents: 0
diff changeset
99 <expand macro="tests/intensity_image_diff" name="result" value="output3_dilation.tiff" ftype="tiff"/>
0
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
100 </test>
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
101 <test>
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
102 <param name="image" value="input3.png" />
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
103 <param name="operation" value="opening" />
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
104 <param name="selem_shape" value="square" />
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
105 <param name="selem_size" value="1" />
1
ad795d260ba8 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c045f067a57e8308308cf6329060c7ccd3fc372f
imgteam
parents: 0
diff changeset
106 <expand macro="tests/intensity_image_diff" name="result" value="output3_opening.tiff" ftype="tiff"/>
0
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
107 </test>
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
108 <test>
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
109 <param name="image" value="input3.png" />
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
110 <param name="operation" value="closing" />
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
111 <param name="selem_shape" value="square" />
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
112 <param name="selem_size" value="2" />
1
ad795d260ba8 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c045f067a57e8308308cf6329060c7ccd3fc372f
imgteam
parents: 0
diff changeset
113 <expand macro="tests/intensity_image_diff" name="result" value="output3_closing.tiff" ftype="tiff"/>
0
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
114 </test>
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
115 <!-- Test multi-channel image (with two distinct values per channel) -->
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
116 <test>
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
117 <param name="image" value="input2.png" />
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
118 <param name="operation" value="fill_holes" />
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
119 <param name="selem_shape" value="disk" />
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
120 <param name="selem_size" value="1" />
1
ad795d260ba8 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c045f067a57e8308308cf6329060c7ccd3fc372f
imgteam
parents: 0
diff changeset
121 <expand macro="tests/intensity_image_diff" name="result" value="output2_fill_holes.tiff" ftype="tiff"/>
0
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
122 </test>
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
123 </tests>
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
124 <help>
1
ad795d260ba8 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c045f067a57e8308308cf6329060c7ccd3fc372f
imgteam
parents: 0
diff changeset
125
ad795d260ba8 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c045f067a57e8308308cf6329060c7ccd3fc372f
imgteam
parents: 0
diff changeset
126 **Applies a morphological operation to a 2-D image.**
ad795d260ba8 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c045f067a57e8308308cf6329060c7ccd3fc372f
imgteam
parents: 0
diff changeset
127
0
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
128 For multi-channel images, the operation is applied to each channel separately.
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
129
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
130 The following operations are supported:
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
131
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
132 - **Erosion:** Shrink bright areas.
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
133 - **Dilation:** Grow bright areas.
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
134 - **Opening:** Erosion followed by Dilation. Erases tiny bright spots.
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
135 - **Closing:** Dilation followed by Erosion. Erases tiny dark holes.
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
136 - **Fill holes:** Fills the holes (dark areas) in binary images.
1
ad795d260ba8 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c045f067a57e8308308cf6329060c7ccd3fc372f
imgteam
parents: 0
diff changeset
137
0
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
138 </help>
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
139 <citations>
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
140 <citation type="doi">10.1038/s41592-019-0686-2</citation>
f10112b317a1 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c6d2a4fb19b54c804029ae3d52eb9fb2619e4265
imgteam
parents:
diff changeset
141 </citations>
1
ad795d260ba8 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/morphological_operations commit c045f067a57e8308308cf6329060c7ccd3fc372f
imgteam
parents: 0
diff changeset
142 </tool>